[Openstack] Essex volume attach issue on Debian Wheezy

Alberto Molina Coballes alb.molina at gmail.com
Wed Dec 5 17:47:12 UTC 2012

Hi all,

We're facing an issue attaching a volume to a running instance in an Essex
deployment on Debian Wheezy.

nova-volume is installed on the cloud controller, but nova-network is installed
on the computes nodes in a multi_host setup.

The relevant configuration parameters in nova.conf are (nexentastor-ce is used
for volume storage):


Volumes can be created properly:

$ nova volume-create --display_name demovol1 1
$ nova volume-list
| ID |   Status  | Display Name | Size | Volume Type | Attached to |
| 1  | available | demovol1     | 1    | None        |             |

But attaching to a volume fails with no error:

$ nova volume-attach 63abfd8a-...-...-... 1 /dev/vdc

and the volume still remains available.

It seems that the problem is related to these logs found in the compute node (nova-compute.log):

TRACE nova.rpc.amqp ProcessExecutionError: Unexpected error while running command.
TRACE nova.rpc.amqp Command: sudo nova-rootwrap iscsiadm -m node -T iqn.1986-03.com.sun:02:nova-volume-0000001 -p
TRACE nova.rpc.amqp Exit code: 1
TRACE nova.rpc.amqp Stdout: ''
TRACE nova.rpc.amqp 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'

Trying to execute this command from the command line (as nova user):

nova at calisto:~$ sudo nova-rootwrap iscsiadm -m node -T iqn.1986-03.com.sun:02:nova-volume-0000001 -p
Traceback (most recent call last):
  File "/usr/bin/nova-rootwrap", line 69, in <module>
  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

Whereas executing the same command as root without "sudo nova-rootwrap" seems to
work ok:

root at calisto:~# iscsiadm -m node -T iqn.1986-03.com.sun:02:nova-volume-0000001 -p
# BEGIN RECORD 2.0-873
node.name = iqn.1986-03.com.sun:02:nova-volume-0000001
node.tpgt = 1
node.startup = manual

Any tips on this?



More information about the Openstack mailing list