Activity log for bug #1432925

Date Who What changed Old value New value Message
2015-03-17 03:34:20 Tina Tang bug added bug
2015-03-17 03:35:03 Tina Tang description The multi attach feature removed the instance_uuid field from the Volume object. However VNX driver is using this field to determine whether a volume is attached to a VM when do the volume retype. Now there is an exception thrown in the VNX driver as below: 1310849 2015-03-16 12:47:54.522 74387 ERROR cinder.volume.manager [-] Volume 53335089-b054-4f3e-aa03-19a5ece2a724: driver error when trying to retype, fallin g back to generic mechanism. 1310850 2015-03-16 12:47:54.523 74387 ERROR cinder.volume.manager [-] 'Volume' object has no attribute 'instance_uuid' 1310851 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager Traceback (most recent call last): 1310852 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/manager.py", line 1621, in retype 1310853 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager host) 1310854 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrappe r 1310855 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager return f(*args, **kwargs) 1310856 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/emc/emc_cli_iscsi.py", line 93, in retype 1310857 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager return self.cli.retype(ctxt, volume, new_type, diff, host) 1310858 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/emc/emc_vnx_cli.py", line 1977, in retype 1310859 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager volume, host, new_type)) 1310860 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/emc/emc_vnx_cli.py", line 1907, in _is_vali d_for_storage_assisted_migration 1310861 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager and self._get_original_status(volume) == 'in-use': 1310862 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/emc/emc_vnx_cli.py", line 1859, in _get_ori ginal_status 1310863 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager if (volume['instance_uuid'] is None and 1310864 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/models.py", line 54, in _ _getitem__ 1310865 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager return getattr(self, key) 1310866 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager AttributeError: 'Volume' object has no attribute 'instance_uuid' The multi attach feature removed the instance_uuid field from the Volume object. However VNX driver is using this field to determine whether a volume is attached to a VM when do the volume retype. https://review.openstack.org/#/c/85847/47/cinder/db/sqlalchemy/models.py Now there is an exception thrown in the VNX driver as below: 1310849 2015-03-16 12:47:54.522 74387 ERROR cinder.volume.manager [-] Volume 53335089-b054-4f3e-aa03-19a5ece2a724: driver error when trying to retype, fallin g back to generic mechanism. 1310850 2015-03-16 12:47:54.523 74387 ERROR cinder.volume.manager [-] 'Volume' object has no attribute 'instance_uuid' 1310851 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager Traceback (most recent call last): 1310852 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/manager.py", line 1621, in retype 1310853 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager host) 1310854 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrappe r 1310855 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager return f(*args, **kwargs) 1310856 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/emc/emc_cli_iscsi.py", line 93, in retype 1310857 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager return self.cli.retype(ctxt, volume, new_type, diff, host) 1310858 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/emc/emc_vnx_cli.py", line 1977, in retype 1310859 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager volume, host, new_type)) 1310860 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/emc/emc_vnx_cli.py", line 1907, in _is_vali d_for_storage_assisted_migration 1310861 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager and self._get_original_status(volume) == 'in-use': 1310862 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/emc/emc_vnx_cli.py", line 1859, in _get_ori ginal_status 1310863 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager if (volume['instance_uuid'] is None and 1310864 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/models.py", line 54, in _ _getitem__ 1310865 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager return getattr(self, key) 1310866 2015-03-16 12:47:54.523 74387 TRACE cinder.volume.manager AttributeError: 'Volume' object has no attribute 'instance_uuid'
2015-03-17 03:38:40 Tina Tang cinder: assignee Tina Tang (tina-tang)
2015-03-17 07:26:56 OpenStack Infra cinder: status New In Progress
2015-03-19 00:35:42 Jay Bryant cinder: importance Undecided Medium
2015-03-19 05:12:12 OpenStack Infra cinder: status In Progress Fix Committed
2015-03-20 08:01:22 Thierry Carrez cinder: status Fix Committed Fix Released
2015-03-20 08:01:22 Thierry Carrez cinder: milestone kilo-3
2015-04-30 09:51:34 Thierry Carrez cinder: milestone kilo-3 2015.1.0