Re: targetcli do not show iscsi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Luigi,

Thanks for that additional feedback.

On 10/01/2014 02:35 PM, Luigi Tarenga wrote:
Hi Jerome,
I confirm I have a centos 6.5 x86_64 with custom kernel and I'm using
python2.7 compiled
from source too (since this works for targetcli-fb)

Excellent.

I reinstalled everything (from your git repos) with:
make cleanall
make release
cd dist
tar xvf xxxx.tar.gz
cd xxxx
./setup.py build
./setup.py install

Great.

I left the LIO configured from a the former fb version:
[...]
(between the 2 test I removed the -fb version to avoid mixing libs)

Good.

now I had to make some little mod to the init script because it seems
to target centos7/rhel7:
so this is the patch I used for target.init:
--- target.init    2014-07-31 19:07:30.000000000 +0200
+++ target.init.custom    2014-10-01 14:17:57.343006241 +0200
@@ -9,7 +9,7 @@
 ### END INIT INFO

 # PATH should only include /usr/* if it runs after the mountnfs.sh
script
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
+#PATH=/sbin:/usr/sbin:/bin:/usr/bin
 DESC="The Linux SCSI Target"
 NAME=target
 DAEMON=/usr/bin/targetcli
@@ -25,10 +25,24 @@
 [ -r /etc/default/$NAME ] && . /etc/default/$NAME

 # Load the VERBOSE setting and other rcS variables
-. /lib/init/vars.sh
+#. /lib/init/vars.sh

 # Define LSB log_* functions - requires lsb-base (>= 3.2-14)
-. /lib/lsb/init-functions
+#. /lib/lsb/init-functions
+
+alias python="python2.7"
+
+log_failure_msg () {
+   echo "$@"
+}
+
+log_action_msg () {
+   echo "$@"
+}
+
+log_warning_msg () {
+   echo "$@"
+}


and this is the output when I start it:
# ./target.init.custom start
Possible config migration detected, saving the  running target to
/etc/target/scsi_target.lio
Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
  File "/usr/local/lib/python2.7/site-packages/rtslib/config.py", line
562, in load_live
    source=source, allow_new_attrs=True)
  File "/usr/local/lib/python2.7/site-packages/rtslib/config.py", line
190, in _load_parse_tree
    token = self.validate_obj(token, cur)
  File "/usr/local/lib/python2.7/site-packages/rtslib/config.py", line
385, in validate_obj
    raise ConfigError("Unknown object type: %s" % obj_type)
rtslib.config.ConfigError: Unknown object type: storage
The Linux SCSI Target looks properly installed
The configfs filesystem is already mounted
Core module target_core_mod already loaded
Failed to load core module target_core_pscsi
Could not start The Linux SCSI Target

OK, I'll setup a lab and dig into this.
Will Keep you posted, thanks for the patch :-)

PS: should we keep linux-scsi ML in cc?

Good point. I removed it.

Best Regards,
--
Jerome
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux