Comment 1 for bug 1086688

Revision history for this message
wangpan (hzwangpan) wrote :

    def finish_revert_resize(self, context, instance, reservations=None,
                             migration=None, migration_id=None):
            ......
            instance = self._instance_update(context,
                                        instance['uuid'],
                                        host=migration['source_compute']) # the instance type isn't update
            ......
            old_instance_type = migration['old_instance_type_id']
            instance_type = instance_types.get_instance_type(old_instance_type)

     def get_guest_config(self, instance, network_info, image_meta, rescue=None,
                         block_device_info=None):
        ......
        inst_type = instance['instance_type'] # so the instance type here is the resized one, not the original before resizing.