← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1170596] Re: Live migration fails when the instance booted from volume has no image.

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1170596

Title:
  Live migration fails when the instance booted from volume has no
  image.

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) grizzly series:
  Fix Committed

Bug description:
  The details of bug are described below.

  
  1. Boot the instance from volume without specifying image.
   # nova boot --flavor 1 --key_name key1 --block_device_mapping vda=<volume-uuid>::5:0 testVM1

  2. Do live-migration the instance without specifying destination.
   # nova live-migration <instance-uuid>

  3. An ImageNotFound error occured in nova-scheduler, Because nova-scheduler try to get image 
  in _live_migration_dest_check method(/usr/lib/python2.7/dist-packages/nova/scheduler/driver.py)

  
  ------------------------------------------------------------------------------------
      def _live_migration_dest_check(self, context, instance_ref, dest,
                                     ignore_hosts=None):
          """Live migration check routine (for destination host).

          :param context: security context
          :param instance_ref: nova.db.sqlalchemy.models.Instance object
          :param dest: destination host
          :param ignore_hosts: hosts that should be avoided as dest host
          """

          # If dest is not specified, have scheduler pick one.
          if dest is None:
              instance_type = instance_types.extract_instance_type(instance_ref)
      ★  image = self.image_service.show(context, instance_ref['image_ref']) ★
              request_spec = {'instance_properties': instance_ref,
                              'instance_type': instance_type,
                              'instance_uuids': [instance_ref['uuid']],
                              'image': image}
              filter_properties = {'ignore_hosts': ignore_hosts}
              return self.select_hosts(context, request_spec,
                                       filter_properties)[0]
  ------------------------------------------------------------------------------------

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1170596/+subscriptions