Error while creating nova volume

Asked by Hussain Pirosha

I am a beginner on OpenStack and have been facing an issue while creating nova volume.

Following is the detail from the log file, when I try to create a volume using the dashboard.

2013-01-10 18:26:06 INFO nova.volume.manager [req-74095105-5e97-4db7-9b2f-d4fb693ad7c8 1633911a91934151a24121aa692b2ffd 1f68913d314348809796cbf2406c8ee8] volume volume-0000000c: creating
2013-01-10 18:26:06 DEBUG nova.volume.manager [req-74095105-5e97-4db7-9b2f-d4fb693ad7c8 1633911a91934151a24121aa692b2ffd 1f68913d314348809796cbf2406c8ee8] volume volume-0000000c: creating lv of size 1G from (pid=6205) create_volume /usr/lib/python2.7/dist-packages/nova/volume/manager.py:120
2013-01-10 18:26:06 DEBUG nova.utils [req-74095105-5e97-4db7-9b2f-d4fb693ad7c8 1633911a91934151a24121aa692b2ffd 1f68913d314348809796cbf2406c8ee8] Running cmd (subprocess): sudo nova-rootwrap lvcreate -L 1G -n volume-0000000c nova-volumes from (pid=6205) execute /usr/lib/python2.7/dist-packages/nova/utils.py:219
Exception AssertionError: AssertionError() in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
2013-01-10 18:26:06 DEBUG nova.volume.manager [req-74095105-5e97-4db7-9b2f-d4fb693ad7c8 1633911a91934151a24121aa692b2ffd 1f68913d314348809796cbf2406c8ee8] volume volume-0000000c: creating export from (pid=6205) create_volume /usr/lib/python2.7/dist-packages/nova/volume/manager.py:131
2013-01-10 18:26:06 DEBUG nova.utils [req-74095105-5e97-4db7-9b2f-d4fb693ad7c8 1633911a91934151a24121aa692b2ffd 1f68913d314348809796cbf2406c8ee8] Running cmd (subprocess): sudo nova-rootwrap ietadm --op new --tid=1 --params Name=iqn.2010-10.org.openstack:volume-0000000c from (pid=6205) execute /usr/lib/python2.7/dist-packages/nova/utils.py:219
Exception AssertionError: AssertionError() in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
2013-01-10 18:26:06 DEBUG nova.utils [req-74095105-5e97-4db7-9b2f-d4fb693ad7c8 1633911a91934151a24121aa692b2ffd 1f68913d314348809796cbf2406c8ee8] Result was 1 from (pid=6205) execute /usr/lib/python2.7/dist-packages/nova/utils.py:235
2013-01-10 18:26:06 ERROR nova.rpc.amqp [req-74095105-5e97-4db7-9b2f-d4fb693ad7c8 1633911a91934151a24121aa692b2ffd 1f68913d314348809796cbf2406c8ee8] Exception during message handling
2013-01-10 18:26:06 TRACE nova.rpc.amqp Traceback (most recent call last):
2013-01-10 18:26:06 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _process_data
2013-01-10 18:26:06 TRACE nova.rpc.amqp rval = node_func(context=ctxt, **node_args)
2013-01-10 18:26:06 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/volume/manager.py", line 138, in create_volume
2013-01-10 18:26:06 TRACE nova.rpc.amqp volume_ref['id'], {'status': 'error'})
2013-01-10 18:26:06 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2013-01-10 18:26:06 TRACE nova.rpc.amqp self.gen.next()
2013-01-10 18:26:06 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/volume/manager.py", line 132, in create_volume
2013-01-10 18:26:06 TRACE nova.rpc.amqp model_update = self.driver.create_export(context, volume_ref)
2013-01-10 18:26:06 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/volume/driver.py", line 300, in create_export
2013-01-10 18:26:06 TRACE nova.rpc.amqp self.tgtadm.new_target(iscsi_name, iscsi_target)
2013-01-10 18:26:06 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/volume/iscsi.py", line 130, in new_target
2013-01-10 18:26:06 TRACE nova.rpc.amqp **kwargs)
2013-01-10 18:26:06 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/volume/iscsi.py", line 51, in _run
2013-01-10 18:26:06 TRACE nova.rpc.amqp self._execute(self._cmd, *args, run_as_root=True, **kwargs)
2013-01-10 18:26:06 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 242, in execute
2013-01-10 18:26:06 TRACE nova.rpc.amqp cmd=' '.join(cmd))
2013-01-10 18:26:06 TRACE nova.rpc.amqp ProcessExecutionError: Unexpected error while running command.
2013-01-10 18:26:06 TRACE nova.rpc.amqp Command: sudo nova-rootwrap ietadm --op new --tid=1 --params Name=iqn.2010-10.org.openstack:volume-0000000c
2013-01-10 18:26:06 TRACE nova.rpc.amqp Exit code: 1
2013-01-10 18:26:06 TRACE nova.rpc.amqp Stdout: ''
2013-01-10 18:26:06 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'
2013-01-10 18:26:06 TRACE nova.rpc.amqp

Pls help.

Also following is the summary of pvdisplay command

  --- Physical volume ---
  PV Name /dev/sda6
  VG Name nova-volumes
  PV Size 182.47 GiB / not usable 1.00 MiB
  Allocatable yes
  PE Size 4.00 MiB
  Total PE 46713
  Free PE 46457
  Allocated PE 256
  PV UUID TNzck1-HLhP-x5cZ-ADbp-tpMS-fHv8-aZaHMw

Thanks,
Hussain

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Hussain Pirosha
Solved:
Last query:
Last reply:
Revision history for this message
Keith Tobin (keith-tobin) said :
#1

What OS have you installing openstack on, my reason for asking is you are missing a file 'ietadm' and this file is used on Ubuntu.
If you are not using ubuntu then install package for 'tgtadm' and changed the following line in config file to use 'tgtadm' instead of 'ietadm'.

iscsi_helper=tgtadm

If you are using ubuntu then install the 'ieadtm' packager or install the 'tgtadm' package but change the following line in config

iscsi_helper=tgtadm

this error happened because during the creation of the volume target the code was unable to execute 'ietadm'. This 'ietadm' tool is used for managing iscsi targets, but only available on ubuntu, to the best of my knowledge.

http://manpages.ubuntu.com/manpages/hardy/man8/ietadm.8.html

Keith

Revision history for this message
Hussain Pirosha (hussain-pirosha) said :
#2

Thanks, I am able to proceed ahead now.