[Openstack] create volume hangs at creating.

Jay Pipes jaypipes at gmail.com
Wed Jun 27 15:19:56 UTC 2012


On 06/27/2012 06:45 AM, Milind wrote:
> Hi,
>
> I am still facing this problem following is the log.

I actually don't see any errors in the log file contents below (you can 
ignore the silly AssertionError thing about threading.pyc).

Perhaps you could try executing the underlying volume creation commands 
as root and see if you get any output or if things just hang? From what 
I can tell, those commands would be:

sudo lvcreate -L 1G -n volume-00000001 nova-volumes
sudo tgtadm --op new --lld=iscsi --mode=target --tid=1 
--targetname=iqn.2010-10.org.openstack:volume-00000001

Also remember that your nova-volumes volume group must have enough size 
in it to create this volume!

Best,
-jay

> 2012-06-27 16:13:10 DEBUG nova.manager [-] Running periodic task
> VolumeManager._publish_service_capabilities from (pid=17850)
> periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
> 2012-06-27 16:13:10 DEBUG nova.manager [-] Running periodic task
> VolumeManager._report_driver_status from (pid=17850) periodic_tasks
> /usr/lib/python2.7/dist-packages/nova/manager.py:152
> 2012-06-27 16:14:10 DEBUG nova.manager [-] Running periodic task
> VolumeManager._publish_service_capabilities from (pid=17850)
> periodic_tasks /usr/lib/python2.7/dist-packages/nova/manager.py:152
> 2012-06-27 16:14:10 DEBUG nova.manager [-] Running periodic task
> VolumeManager._report_driver_status from (pid=17850) periodic_tasks
> /usr/lib/python2.7/dist-packages/nova/manager.py:152
> 2012-06-27 16:14:36 DEBUG nova.rpc.amqp [-] received {u'_context_roles':
> [u'admin'], u'_context_request_id':
> u'req-07220301-c87c-40e3-a211-cc4725bcacd3', u'_context_read_deleted':
> u'no', u'args': {u'volume_id': 1, u'snapshot_id': None},
> u'_context_auth_token': '<SANITIZED>', u'_context_is_admin': True,
> u'_context_project_id': u'68124ec3a778447093eba446aa896105',
> u'_context_timestamp': u'2012-06-27T10:44:36.284391',
> u'_context_user_id': u'434a94c6f63e43289702353f410ab693', u'method':
> u'create_volume', u'_context_remote_address': u'10.253.59.152'} from
> (pid=17850) _safe_log
> /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160
> 2012-06-27 16:14:36 DEBUG nova.rpc.amqp
> [req-07220301-c87c-40e3-a211-cc4725bcacd3
> 434a94c6f63e43289702353f410ab693 68124ec3a778447093eba446aa896105]
> unpacked context: {'user_id': u'434a94c6f63e43289702353f410ab693',
> 'roles': [u'admin'], 'timestamp': '2012-06-27T10:44:36.284391',
> 'auth_token': '<SANITIZED>', 'remote_address': u'10.253.59.152',
> 'is_admin': True, 'request_id':
> u'req-07220301-c87c-40e3-a211-cc4725bcacd3', 'project_id':
> u'68124ec3a778447093eba446aa896105', 'read_deleted': u'no'} from
> (pid=17850) _safe_log
> /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160
> 2012-06-27 16:14:36 INFO nova.volume.manager
> [req-07220301-c87c-40e3-a211-cc4725bcacd3
> 434a94c6f63e43289702353f410ab693 68124ec3a778447093eba446aa896105]
> volume volume-00000001: creating
> 2012-06-27 16:14:36 DEBUG nova.volume.manager
> [req-07220301-c87c-40e3-a211-cc4725bcacd3
> 434a94c6f63e43289702353f410ab693 68124ec3a778447093eba446aa896105]
> volume volume-00000001: creating lv of size 1G from (pid=17850)
> create_volume /usr/lib/python2.7/dist-packages/nova/volume/manager.py:120
> 2012-06-27 16:14:36 DEBUG nova.utils
> [req-07220301-c87c-40e3-a211-cc4725bcacd3
> 434a94c6f63e43289702353f410ab693 68124ec3a778447093eba446aa896105]
> Running cmd (subprocess): sudo nova-rootwrap lvcreate -L 1G -n
> volume-00000001 nova-volumes from (pid=17850) 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
> 2012-06-27 16:14:36 DEBUG nova.volume.manager
> [req-07220301-c87c-40e3-a211-cc4725bcacd3
> 434a94c6f63e43289702353f410ab693 68124ec3a778447093eba446aa896105]
> volume volume-00000001: creating export from (pid=17850) create_volume
> /usr/lib/python2.7/dist-packages/nova/volume/manager.py:131
> 2012-06-27 16:14:41 DEBUG nova.utils
> [req-07220301-c87c-40e3-a211-cc4725bcacd3
> 434a94c6f63e43289702353f410ab693 68124ec3a778447093eba446aa896105]
> Running cmd (subprocess): sudo nova-rootwrap tgtadm --op new --lld=iscsi
> --mode=target --tid=1
> --targetname=iqn.2010-10.org.openstack:volume-00000001 from (pid=17850)
> 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
>
>
>
> Regards,
> Milind
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>





More information about the Openstack mailing list