Launch instance from image (as new volume) fails when giving different size to volume (NoneType' object has no attribute 'update_volume_group_info)

Bug #1234303 reported by Dafna Ron
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned

Bug Description

I tried running a new instance from image (create new volume)
if device size remains 1 we can launch the instance and create the volume.
but if I change the device size to 30 we fail creating the volume with the following error:

2013-09-25 17:31:16.469 27155 ERROR cinder.openstack.common.rpc.amqp [req-762c88c8-cdbb-47b3-bd36-904f547cd9c5 None None] Exception during message handling
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp Traceback (most recent call last):
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/openstack/common/rpc/amqp.py", line 441, in _process_data
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp **args)
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/openstack/common/rpc/dispatcher.py", line 148, in dispatch
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, **kwargs)
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 756, in publish_service_capabilities
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp self._report_driver_status(context)
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 748, in _report_driver_status
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp volume_stats = self.driver.get_volume_stats(refresh=True)
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 669, in get_volume_stats
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp self._update_volume_stats()
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 677, in _update_volume_stats
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp self.vg.update_volume_group_info()
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp AttributeError: 'NoneType' object has no attribute 'update_volume_group_info'
2013-09-25 17:31:16.469 27155 TRACE cinder.openstack.common.rpc.amqp
2013-10-02 13:56:08.968 8386 ERROR cinder.openstack.common.rpc.amqp [req-dd5d102a-5d8f-45ac-8ab0-8aa534a02eb5 None None] Exception during message handling
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp Traceback (most recent call last):
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/openstack/common/rpc/amqp.py", line 441, in _process_data
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp **args)
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/openstack/common/rpc/dispatcher.py", line 148, in dispatch
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, **kwargs)
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 756, in publish_service_capabilities
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp self._report_driver_status(context)
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 748, in _report_driver_status
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp volume_stats = self.driver.get_volume_stats(refresh=True)
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 669, in get_volume_stats
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp self._update_volume_stats()
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 677, in _update_volume_stats
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp self.vg.update_volume_group_info()
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp AttributeError: 'NoneType' object has no attribute 'update_volume_group_info'
2013-10-02 13:56:08.968 8386 TRACE cinder.openstack.common.rpc.amqp
2013-10-02 13:56:09.964 8386 ERROR cinder.brick.local_dev.lvm [req-c86406a3-c450-430b-836f-65f53a4dd6a2 None None] Unable to locate Volume Group cinder-volumes
2013-10-02 13:56:09.964 8386 ERROR cinder.service [req-c86406a3-c450-430b-836f-65f53a4dd6a2 None None] Unhandled exception
2013-10-02 13:56:09.964 8386 TRACE cinder.service Traceback (most recent call last):
2013-10-02 13:56:09.964 8386 TRACE cinder.service File "/usr/lib/python2.6/site-packages/cinder/service.py", line 228, in _start_child
2013-10-02 13:56:09.964 8386 TRACE cinder.service self._child_process(wrap.server)
2013-10-02 13:56:09.964 8386 TRACE cinder.service File "/usr/lib/python2.6/site-packages/cinder/service.py", line 205, in _child_process
2013-10-02 13:56:09.964 8386 TRACE cinder.service launcher.run_server(server)
2013-10-02 13:56:09.964 8386 TRACE cinder.service File "/usr/lib/python2.6/site-packages/cinder/service.py", line 96, in run_server
2013-10-02 13:56:09.964 8386 TRACE cinder.service server.start()
2013-10-02 13:56:09.964 8386 TRACE cinder.service File "/usr/lib/python2.6/site-packages/cinder/service.py", line 385, in start
2013-10-02 13:56:09.964 8386 TRACE cinder.service self.manager.init_host()
2013-10-02 13:56:09.964 8386 TRACE cinder.service File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 170, in init_host
2013-10-02 13:56:09.964 8386 TRACE cinder.service self.driver.check_for_setup_error()
2013-10-02 13:56:09.964 8386 TRACE cinder.service File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 92, in check_for_setup_error
2013-10-02 13:56:09.964 8386 TRACE cinder.service raise exception.VolumeBackendAPIException(data=message)
2013-10-02 13:56:09.964 8386 TRACE cinder.service VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Volume Group cinder-volumes does not exist
2013-10-02 13:56:09.964 8386 TRACE cinder.service

I know its an attribute issue but just in case someone asks...

[root@nott-vdsa images(keystone_admin)]# vgs
  VG #PV #LV #SN Attr VSize VFree
  cinder-volumes 1 1 0 wz--n- 3.19g 2.19g
  vg0 1 2 0 wz--n- 232.69g 0

Revision history for this message
John Griffith (john-griffith) wrote :

Strange, according to this the second time your ran the command the vg member object of your volume driver was not intialized.

Can you please list the commands and steps you performed that lead to this?

If you just did:
    'cinder create --image-id xxxx 1'

Followed by:
    'cinder create --image-id xxxx 30'

I don't see how this is possible, unless you have multiple backend drivers configured, or there were some other operations inbetween there that you performed.

Mike Perez (thingee)
summary: - lauch instance from image (as new volume) fails when giving different
+ Launch instance from image (as new volume) fails when giving different
size to volume (NoneType' object has no attribute
'update_volume_group_info)
Revision history for this message
Dafna Ron (dron-3) wrote :

actually I run this from horizon not the cli :)

go to horizon -> instances -> launch instance -> select 'boot from image (create a new volume).

Revision history for this message
Rushi Agrawal (rushiagr) wrote :

I too am not able to reproduce the issue with latest devstack. It throws an error 'no valid host found' on c-sch screen, which is expected, but can't find anywhere this message in any log. I'm marking this as invalid. Please try it out with latest devstack, and report back if you still see this issue..

Changed in cinder:
status: New → Invalid
Revision history for this message
Eric Harney (eharney) wrote :

I suspect this was bug 1221874.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.