← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1417667] [NEW] migration/evacuation/rebuild/resize of instance with dedicated cpus needs to recalculate cpus on destination

 

Public bug reported:

I'm running nova trunk, commit 752954a.

I configured a flavor with two vcpus and extra specs
"hw:cpu_policy=dedicated" in order to enable vcpu pinning.

I booted up a number of instances such that there was one instance
affined to host cpus 12 and 13 on compute-0, and another instance
affined to cpus 12 and 13 on compute-2.  (As reported by "virsh vcpupin"
and "virsh dumpxml".)

I then triggered a live migration of one instance from compute-0 to
compute-2.  This resulted in both instances being affined to host cpus
12 and 13 on compute-2.

The "hw:cpu_policy=dedicated" extra spec is intended to provide
dedicated host cpus for the instance.  In order to provide this, on a
live migration (or cold migration, or rebuild, or evacuation, or resize,
etc.) nova needs to ensure that the instance is affined to host cpus
that are not currently being used by other instances.

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: compute

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

Title:
  migration/evacuation/rebuild/resize of instance with dedicated cpus
  needs to recalculate cpus on destination

Status in OpenStack Compute (Nova):
  New

Bug description:
  I'm running nova trunk, commit 752954a.

  I configured a flavor with two vcpus and extra specs
  "hw:cpu_policy=dedicated" in order to enable vcpu pinning.

  I booted up a number of instances such that there was one instance
  affined to host cpus 12 and 13 on compute-0, and another instance
  affined to cpus 12 and 13 on compute-2.  (As reported by "virsh
  vcpupin" and "virsh dumpxml".)

  I then triggered a live migration of one instance from compute-0 to
  compute-2.  This resulted in both instances being affined to host cpus
  12 and 13 on compute-2.

  The "hw:cpu_policy=dedicated" extra spec is intended to provide
  dedicated host cpus for the instance.  In order to provide this, on a
  live migration (or cold migration, or rebuild, or evacuation, or
  resize, etc.) nova needs to ensure that the instance is affined to
  host cpus that are not currently being used by other instances.

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


Follow ups

References