[Openstack-devel] Bug#695791: nova-compute: wrong path to iscsiadm in a rootwrap filter
Alberto Molina Coballes
alb.molina at gmail.com
Wed Dec 12 18:14:24 UTC 2012
Package: nova-compute
Version: 2012.1.1-10
Severity: important
Dear Maintainer,
Current path to iscsiadm in /usr/share/pyshared/nova/rootwrap/compute.py
is wrong at line 116:
filters.CommandFilter("/sbin/iscsiadm", "root"),
While correct path must be
filters.CommandFilter("/usr/bin/iscsiadm", "root"),
This error causes a compute node is not able to attach a volume, because
nova-rootwrap don't find iscsiadm as you can see at
/var/log/nova/nova-compute.log:
2012-12-10 12:12:15 TRACE nova.compute.manager [instance: 1e725bbc-ed94-45a0-a275-0817f4af8ab2] Command: sudo nova-rootwrap iscsiadm -m node -T iqn.2010-10.org.openstack:volume-00000022 -p 192.168.222.1:3260
2012-12-10 12:12:15 TRACE nova.compute.manager [instance: 1e725bbc-ed94-45a0-a275-0817f4af8ab2] Exit code: 1
2012-12-10 12:12:15 TRACE nova.compute.manager [instance: 1e725bbc-ed94-45a0-a275-0817f4af8ab2] Stdout: ''
2012-12-10 12:12:15 TRACE nova.compute.manager [instance: 1e725bbc-ed94-45a0-a275-0817f4af8ab2] Stderr: 'Traceback (most recent call last):\n File "/usr/bin/nova-rootwrap", line 69, in <module>\n env=filtermatch.get_environment(userargs))\n File "/usr/lib/python2.7/subprocess.py", line 679, in __init__\n errread, errwrite)\n File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child\n raise child_exception\nOSError: [Errno 2] No such file or directory\n'
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/24 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages nova-compute depends on:
ii adduser 3.113+nmu3
ii curl 7.26.0-1
ii ebtables 2.0.10.4-1
ii gawk 1:4.0.1+dfsg-2
ii iptables 1.4.14-3
ii kpartx 0.4.9+git0.4dfdaf2b-6
ii lsb-base 4.1+Debian8
ii nova-common 2012.1.1-10
ii nova-compute-kvm [nova-compute-hypervisor] 2012.1.1-10
ii open-iscsi 2.0.873-3
ii parted 2.3-11
ii python 2.7.3~rc2-1
ii qemu-utils 1.1.2+dfsg-2
ii vlan 1.9-3
nova-compute recommends no packages.
nova-compute suggests no packages.
-- no debconf information
More information about the Openstack-devel
mailing list