← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1370885] Re: The log info is error in the method '_sync_instance_power_state'

 

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

** Changed in: nova
    Milestone: None => juno-rc1

-- 
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/1370885

Title:
  The log info is error in the method '_sync_instance_power_state'

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  In the method '_sync_instance_power_state', the log info is wrong.

  if self.host != db_instance.host:
              # on the sending end of nova-compute _sync_power_state
              # may have yielded to the greenthread performing a live
              # migration; this in turn has changed the resident-host
              # for the VM; However, the instance is still active, it
              # is just in the process of migrating to another host.
              # This implies that the compute source must relinquish
              # control to the compute destination.
              LOG.info(_("During the sync_power process the "
                         "instance has moved from "
                         "host %(src)s to host %(dst)s") %
                         {'src': self.host,
                          'dst': db_instance.host},
                       instance=db_instance)
              return

  The 'src' value should be 'db_instance.host'and the 'dst' value should
  be the 'self.host'.  The method '_post_live_migration' should be
  invoked after the live migration completes and it is used to update
  the database.

  In the situation, the instance has been migrated to another host
  successfully and the database has not been updated. The
  '_sync_instance_power_state' method is executed. Nova can list it in
  the dst host with the driver and the data in the database should be
  the source host.

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


References