Leonardo Bruno Lopes
2012-Oct-30 00:05 UTC
[Pkg-xen-devel] Bug#691805: xcp-storage-managers: Wrong path in iSCSI storage driver script
Package: xcp-storage-managers Version: 0.1.1-2 Severity: important Dear Maintainer, I can not create an iSCSI storage resource using the following command: xe sr-create host-uuid=<my-host-uuid> content-type=user name-label="LVM over iSCSI SR"> shared=true device-config:target=192.168.10.100 device-config:targetIQN=<here-target-iqn> device-config:SCSIid=<my-scsi-id> type=lvhdoiscsi (Note that I created a symlink ln -s /usr/lib/xcp/sm/LVHDoISCSISR.py /usr/lib/xcp/sm/LVHDoISCSISR so the driver 'lvhdoiscsi' could be recognised.) This command should print the UUID of the new SR in STDOUT if it has created the SR successfully, but It failed with these messages, among others: There was an SR backend failure. status: non-zero exit stdout: stderr: Traceback (most recent call last): File "/usr/lib/xcp/sm/LVHDoISCSISR", line 384, in <module> SRCommand.run(LVHDoISCSISR, DRIVER_INFO) File "/usr/lib/xcp/sm/SRCommand.py", line 261, in run sr = driver(cmd, cmd.sr_uuid) File "/usr/lib/xcp/sm/SR.py", line 136, in __init__ self.load(sr_uuid) File "/usr/lib/xcp/sm/LVHDoISCSISR", line 153, in load self._LUNprint(sr_uuid) File "/usr/lib/xcp/sm/LVHDoISCSISR", line 183, in _LUNprint self.iscsi.attach(sr_uuid) File "/usr/lib/xcp/sm/ISCSISR.py", line 274, in attach iscsilib.ensure_daemon_running_ok(self.localIQN) File "/usr/lib/xcp/sm/iscsilib.py", line 315, in ensure_daemon_running_ok if not is_iscsi_daemon_running(): File "/usr/lib/xcp/sm/iscsilib.py", line 198, in is_iscsi_daemon_running (rc,stdout,stderr) = util.doexec(cmd) File "/usr/lib/xcp/sm/util.py", line 129, in doexec proc = subprocess.Popen(args,stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE,close_fds=True) File "/usr/lib/python2.7/subprocess.py", line 679, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory So I figured out that the SR creator script was trying to execute some binary using a wrongpath. Comparing the /usr/lib/xcp/sm/iscsilib.py script from the xcp-storage-managers Debian package with its equivalent script shipped with XCP CentOS-based distro I could confirm that they are the same. What I did was to alter line 198 of the /usr/lib/xcp/sm/iscsilib.py file from cmd = ["/sbin/pidof", "-s", "/sbin/iscsid"] to cmd = ["/bin/pidof", "-s", "/usr/sbin/iscsid"] to reflect the actual path of the 'iscsid' binary in Debian. However, I think it's more 'debianistic' to get this path each time the script runs (something like 'which iscsid') or make it configurable by some variable or config file. Thanks in advance! -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores) Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages xcp-storage-managers depends on: ii blktap-utils 2.0.90-1 ii libc6 2.13-35 ii libxenstore3.0 4.1.3-2 ii python 2.7.3~rc2-1 ii python2.7 2.7.3~rc2-2.1 ii uuid-runtime 2.20.1-5.2 Versions of packages xcp-storage-managers recommends: ii lvm2 2.02.95-4 ii nfs-common 1:1.2.6-3 xcp-storage-managers suggests no packages. -- no debconf information
Debian Bug Tracking System
2012-Nov-05 07:21 UTC
[Pkg-xen-devel] Bug#691805: marked as done (xcp-storage-managers: Wrong path in iSCSI storage driver script)
Your message dated Mon, 05 Nov 2012 07:17:33 +0000 with message-id <E1TVGw9-0001UZ-Qa at franck.debian.org> and subject line Bug#691805: fixed in xcp-storage-managers 0.1.1-3 has caused the Debian Bug report #691805, regarding xcp-storage-managers: Wrong path in iSCSI storage driver script to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner at bugs.debian.org immediately.) -- 691805: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691805 Debian Bug Tracking System Contact owner at bugs.debian.org with problems -------------- next part -------------- An embedded message was scrubbed... From: Leonardo Bruno Lopes <leobruno at gmail.com> Subject: xcp-storage-managers: Wrong path in iSCSI storage driver script Date: Mon, 29 Oct 2012 22:05:47 -0200 Size: 4863 URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20121105/adc2f068/attachment-0002.mht> -------------- next part -------------- An embedded message was scrubbed... From: Thomas Goirand <zigo at debian.org> Subject: Bug#691805: fixed in xcp-storage-managers 0.1.1-3 Date: Mon, 05 Nov 2012 07:17:33 +0000 Size: 4591 URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20121105/adc2f068/attachment-0003.mht>
Apparently Analagous Threads
- Bug#691808: xcp-storage-managers: Another wrong binary path + wrong parameter in storage managers backend
- XCP Debi an - ISCSI support?
- Bug#717575: xcp-storage-managers: Wrong path of pidof in /usr/lib/xcp/sm/iscsilib.py
- xcp-storage-managers_0.1.1-3_amd64.changes ACCEPTED into unstable
- Bug#687319: xcp-storage-managers: CDROM VDIs don't hotplug in guests because ISO SRs are misconfigured