When enabling auto_disk_config and resizing an instance down, the xenapi driver will fail with this exception:
Traceback:
File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 189, in decorated_function
return function(self, context, instance_uuid, *args, **kwargs)
File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 1354, 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 1349, in resize_instance
instance_type_ref, self._legacy_nw_info(network_info))
File "/usr/lib/python2.6/dist-packages/nova/virt/xenapi/connection.py", line 237, in migrate_disk_and_power_off
dest, instance_type)
File "/usr/lib/python2.6/dist-packages/nova/virt/xenapi/vmops.py", line 771, in migrate_disk_and_power_off
instance_type)
File "/usr/lib/python2.6/dist-packages/nova/virt/xenapi/vm_utils.py", line 470, in resize_disk
new_ref = cls.create_vdi(session, sr_ref, instance, 'root',
NameError: global name 'instance' is not defined
Fix proposed to branch: master /review. openstack. org/6934
Review: https:/