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.
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) : 'instance_ type'] # so the instance type here is the resized one, not the original before resizing.
......
inst_type = instance[