When a Xen instance is resized with volumes attached it goes to an ERROR state, with the following error in the logs
['SR_OPERATION_NOT_SUPPORTED', 'OpaqueRef:b96e08b6-c3ad-2e4e-f093-cdc33677b435']
File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 204, in decorated_function
return function(self, context, instance_uuid, *args, **kwargs)
File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 1533, in resize_instance
self._set_instance_error_state(context, instance_uuid)
File "/usr/lib/python2.6/contextlib.py", line 23, in __exit__
self.gen.next()
File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 1528, in resize_instance
image)
File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 1503, in _resize_instance
instance_type_ref, self._legacy_nw_info(network_info))
File "/usr/lib/python2.6/dist-packages/nova/virt/xenapi/driver.py", line 234, in migrate_disk_and_power_off
dest, instance_type)
File "/usr/lib/python2.6/dist-packages/nova/virt/xenapi/vmops.py", line 742, in migrate_disk_and_power_off
self._session, instance, vm_ref, label) as vdi_uuids:
File "/usr/lib/python2.6/contextlib.py", line 16, in __enter__
return self.gen.next()
File "/usr/lib/python2.6/dist-packages/nova/virt/xenapi/vm_utils.py", line 490, in snapshot_attached_here
session, instance, vm_ref, label)
File "/usr/lib/python2.6/dist-packages/nova/virt/xenapi/vm_utils.py", line 512, in _create_snapshot
template_vm_ref = session.call_xenapi('VM.snapshot', vm_ref, label)
File "/usr/lib/python2.6/dist-packages/nova/virt/xenapi/driver.py", line 589, in call_xenapi
return session.xenapi_request(method, args)
File "/usr/local/lib/python2.6/dist-packages/XenAPI.py", line 133, in xenapi_request
result = _parse_result(getattr(self, methodname)(*full_params))
File "/usr/local/lib/python2.6/dist-packages/XenAPI.py", line 203, in _parse_result
raise Failure(result['ErrorDescription'])
Fix proposed to branch: master /review. openstack. org/11906
Review: https:/