← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1785318] Re: evacuate rebuild claim will not use any image_meta so it can miss numa_topology claims

 

** Also affects: nova/rocky
   Importance: Undecided
       Status: New

** Changed in: nova/rocky
       Status: New => Triaged

** Changed in: nova/rocky
       Status: Triaged => In Progress

** Changed in: nova/rocky
   Importance: Undecided => Medium

** Changed in: nova/rocky
     Assignee: (unassigned) => Matt Riedemann (mriedem)

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

Title:
  evacuate rebuild claim will not use any image_meta so it can miss
  numa_topology claims

Status in OpenStack Compute (nova):
  In Progress
Status in OpenStack Compute (nova) ocata series:
  Triaged
Status in OpenStack Compute (nova) pike series:
  Triaged
Status in OpenStack Compute (nova) queens series:
  Triaged
Status in OpenStack Compute (nova) rocky series:
  In Progress

Bug description:
  I found this in the starlingx diff for nova:

  https://github.com/starlingx-staging/stx-
  nova/commit/71acfeae0d1c59fdc77704527d763bd85a276f9a#diff-
  afb9c0c0ca5276c7eacd987bbf51d8e6R447

  For volume-backed instances, the instance image_meta comes from the
  volume_image_metadata in the volume for the root bdm, the API figures
  that out here:

  https://github.com/openstack/nova/blob/4c37ff72e5446c835a48d569dd5a1416fcd36c71/nova/compute/api.py#L1099

  https://github.com/openstack/nova/blob/4c37ff72e5446c835a48d569dd5a1416fcd36c71/nova/compute/api.py#L1568

  Then during an evacuate of a volume-backed instance, the rebuild_claim
  in the ResourceTracker won't actually get the proper image_meta
  because of this code in ComputeManager.rebuild_instance:

  https://github.com/openstack/nova/blob/4c37ff72e5446c835a48d569dd5a1416fcd36c71/nova/compute/manager.py#L2985

  The only thing in the claims code that cares about image_meta is for
  calculating numa_topology claims:

  https://github.com/openstack/nova/blob/4c37ff72e5446c835a48d569dd5a1416fcd36c71/nova/compute/claims.py#L295

  I'm not even totally sure if evacuate fully works with an instance
  using numa topology, but this can't help.

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


References