Public bug reported:
Reproduction Steps:
Nova: 29.2.1.dev18
Placement: 11.0.0.rc2.dev2
1. Enable the PCI in Placement feature.
2. Create a VM with a single GPU device and verify normal operation. The output
displays as follows:
openstack resource provider allocation show 61cef01f-7770-4743-ac97-229d0d9a9430
+--------------------------------------+------------+--------------------------------+----------------------------------+----------------------------------+
| resource_provider | generation | resources
| project_id | user_id |
+--------------------------------------+------------+--------------------------------+----------------------------------+----------------------------------+
| ac6452b3-c0aa-4b87-ac57-49d446be9ac8 | 258 | {'VCPU': 4, 'MEMORY_MB':
8192} | 2acc91b9d108423c879b5e1e63dd7082 | ff3c683a30f242d0b9a481018b00cb63 |
| 4f78748e-ddc1-4b6d-84be-c1c11f86a40c | 81 | {'CUSTOM_PCI_10DE_2684':
1} | 2acc91b9d108423c879b5e1e63dd7082 | ff3c683a30f242d0b9a481018b00cb63 |
+--------------------------------------+------------+--------------------------------+----------------------------------+----------------------------------+
3. Perform migration.
nova migrate 61cef01f-7770-4743-ac97-229d0d9a9430 --host gpu1-70-47
Expected Result:
The VM should acquire one PCI hostdev, with a single allocation recorded in
both the Nova database and Placement.
Actual Result:
The VM acquires one hostdev, and the Nova database shows one allocation, but
two allocations are recorded in Placement.
openstack resource provider allocation show 61cef01f-7770-4743-ac97-229d0d9a9430
+--------------------------------------+------------+--------------------------------+----------------------------------+----------------------------------+
| resource_provider | generation | resources
| project_id | user_id |
+--------------------------------------+------------+--------------------------------+----------------------------------+----------------------------------+
| a0a3f951-50b6-4754-899c-2e72bb71977c | 212 | {'VCPU': 4, 'MEMORY_MB':
8192} | 2acc91b9d108423c879b5e1e63dd7082 | ff3c683a30f242d0b9a481018b00cb63 |
| 74fe5407-3ff2-41ab-a28d-6a4d9623d861 | 97 | {'CUSTOM_PCI_10DE_2684':
1} | 2acc91b9d108423c879b5e1e63dd7082 | ff3c683a30f242d0b9a481018b00cb63 |
| 1e83ce8a-59c5-47db-aac9-f43a851d7ac8 | 82 | {'CUSTOM_PCI_10DE_2684':
1} | 2acc91b9d108423c879b5e1e63dd7082 | ff3c683a30f242d0b9a481018b00cb63 |
+--------------------------------------+------------+--------------------------------+----------------------------------+----------------------------------+
** Affects: nova
Importance: Undecided
Status: New
--
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/2114153
Title:
Migrating a VM with a single GPU device, where the placement has
allocated multiple.
Status in OpenStack Compute (nova):
New
Bug description:
Reproduction Steps:
Nova: 29.2.1.dev18
Placement: 11.0.0.rc2.dev2
1. Enable the PCI in Placement feature.
2. Create a VM with a single GPU device and verify normal operation. The
output displays as follows:
openstack resource provider allocation show
61cef01f-7770-4743-ac97-229d0d9a9430
+--------------------------------------+------------+--------------------------------+----------------------------------+----------------------------------+
| resource_provider | generation | resources
| project_id | user_id |
+--------------------------------------+------------+--------------------------------+----------------------------------+----------------------------------+
| ac6452b3-c0aa-4b87-ac57-49d446be9ac8 | 258 | {'VCPU': 4,
'MEMORY_MB': 8192} | 2acc91b9d108423c879b5e1e63dd7082 |
ff3c683a30f242d0b9a481018b00cb63 |
| 4f78748e-ddc1-4b6d-84be-c1c11f86a40c | 81 |
{'CUSTOM_PCI_10DE_2684': 1} | 2acc91b9d108423c879b5e1e63dd7082 |
ff3c683a30f242d0b9a481018b00cb63 |
+--------------------------------------+------------+--------------------------------+----------------------------------+----------------------------------+
3. Perform migration.
nova migrate 61cef01f-7770-4743-ac97-229d0d9a9430 --host gpu1-70-47
Expected Result:
The VM should acquire one PCI hostdev, with a single allocation recorded in
both the Nova database and Placement.
Actual Result:
The VM acquires one hostdev, and the Nova database shows one allocation, but
two allocations are recorded in Placement.
openstack resource provider allocation show
61cef01f-7770-4743-ac97-229d0d9a9430
+--------------------------------------+------------+--------------------------------+----------------------------------+----------------------------------+
| resource_provider | generation | resources
| project_id | user_id |
+--------------------------------------+------------+--------------------------------+----------------------------------+----------------------------------+
| a0a3f951-50b6-4754-899c-2e72bb71977c | 212 | {'VCPU': 4,
'MEMORY_MB': 8192} | 2acc91b9d108423c879b5e1e63dd7082 |
ff3c683a30f242d0b9a481018b00cb63 |
| 74fe5407-3ff2-41ab-a28d-6a4d9623d861 | 97 |
{'CUSTOM_PCI_10DE_2684': 1} | 2acc91b9d108423c879b5e1e63dd7082 |
ff3c683a30f242d0b9a481018b00cb63 |
| 1e83ce8a-59c5-47db-aac9-f43a851d7ac8 | 82 |
{'CUSTOM_PCI_10DE_2684': 1} | 2acc91b9d108423c879b5e1e63dd7082 |
ff3c683a30f242d0b9a481018b00cb63 |
+--------------------------------------+------------+--------------------------------+----------------------------------+----------------------------------+
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2114153/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp