yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #95332
[Bug 2097729] [NEW] Pci_requests numa_policy lost due to cold migration
Public bug reported:
There are two places where pci_requests are recorded:
nova_api.request_specs and nova.intance_extras.
In cold migrate actions, when it started, the dest host will refresh
ResourceTracker. However, in the move_claim function of the
ResourceTracker, flavor.pci_affinity_policy will not be used, This will
ultimately result in the numa_policy in the pci_requests of
'nova.instance_extras' being reset to legacy
```python
# get pci_affinity_policy in flaovr
pci_affinity_policy = new_instance_type.get('extra_specs', {}).get('hw:pci_numa_affinity_policy')
LOG.info("lyc _move_claim pci_affinity_policy:%s", pci_affinity_policy)
# Pass pci_affinity_policy as a parameter to the function
new_pci_requests = pci_request.get_pci_requests_from_flavor(new_instance_type, affinity_policy=pci_affinity_policy)
```
** Affects: nova
Importance: Undecided
Status: New
** Tags: cold-migration numa pci
--
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/2097729
Title:
Pci_requests numa_policy lost due to cold migration
Status in OpenStack Compute (nova):
New
Bug description:
There are two places where pci_requests are recorded:
nova_api.request_specs and nova.intance_extras.
In cold migrate actions, when it started, the dest host will refresh
ResourceTracker. However, in the move_claim function of the
ResourceTracker, flavor.pci_affinity_policy will not be used, This
will ultimately result in the numa_policy in the pci_requests of
'nova.instance_extras' being reset to legacy
```python
# get pci_affinity_policy in flaovr
pci_affinity_policy = new_instance_type.get('extra_specs', {}).get('hw:pci_numa_affinity_policy')
LOG.info("lyc _move_claim pci_affinity_policy:%s",
pci_affinity_policy)
# Pass pci_affinity_policy as a parameter to the function
new_pci_requests = pci_request.get_pci_requests_from_flavor(new_instance_type, affinity_policy=pci_affinity_policy)
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2097729/+subscriptions