diff options
author | Sylvain Bauza <sbauza@redhat.com> | 2021-07-22 11:23:52 +0200 |
---|---|---|
committer | Sean Mooney <work@seanmooney.info> | 2021-08-27 14:52:01 +0100 |
commit | 9be996c696e91e82d11d81db72ffb4cc151598b6 (patch) | |
tree | 2eeb705ce6ca5bbe543a7372a52312ea61951cf8 /nova/tests/functional/libvirt/test_reshape.py | |
parent | 2b847085c8aa19a8fee9bed471e2b609482f67e7 (diff) | |
download | nova-9be996c696e91e82d11d81db72ffb4cc151598b6.tar.gz |
Expose the mdev class
It's the last functional change for the series,
we will expose this new option after using it.
doc changes will be addressed in a follow up patch.
Change-Id: Ibccbb93352f93dba7e15e1f77be9ee0fc466fee0
Implements: blueprint generic-mdevs
Diffstat (limited to 'nova/tests/functional/libvirt/test_reshape.py')
-rw-r--r-- | nova/tests/functional/libvirt/test_reshape.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nova/tests/functional/libvirt/test_reshape.py b/nova/tests/functional/libvirt/test_reshape.py index 7a7a3d953d..5c73ffbf5f 100644 --- a/nova/tests/functional/libvirt/test_reshape.py +++ b/nova/tests/functional/libvirt/test_reshape.py @@ -64,17 +64,17 @@ class VGPUReshapeTests(base.ServersTestBase): fakelibvirt.FakeMdevDevice( dev_name='mdev_4b20d080_1b54_4048_85b3_a6a62d165c01', type_id=fakelibvirt.NVIDIA_11_VGPU_TYPE, - parent=fakelibvirt.PGPU1_PCI_ADDR), + parent=fakelibvirt.MDEVCAP_DEV1_PCI_ADDR), 'mdev_4b20d080_1b54_4048_85b3_a6a62d165c02': fakelibvirt.FakeMdevDevice( dev_name='mdev_4b20d080_1b54_4048_85b3_a6a62d165c02', type_id=fakelibvirt.NVIDIA_11_VGPU_TYPE, - parent=fakelibvirt.PGPU2_PCI_ADDR), + parent=fakelibvirt.MDEVCAP_DEV2_PCI_ADDR), 'mdev_4b20d080_1b54_4048_85b3_a6a62d165c03': fakelibvirt.FakeMdevDevice( dev_name='mdev_4b20d080_1b54_4048_85b3_a6a62d165c03', type_id=fakelibvirt.NVIDIA_11_VGPU_TYPE, - parent=fakelibvirt.PGPU3_PCI_ADDR), + parent=fakelibvirt.MDEVCAP_DEV3_PCI_ADDR), } # start a compute with vgpu support disabled so the driver will @@ -181,9 +181,9 @@ class VGPUReshapeTests(base.ServersTestBase): # which ones are used. usages = {} pgpu_uuid_to_name = {} - for pci_device in [fakelibvirt.PGPU1_PCI_ADDR, - fakelibvirt.PGPU2_PCI_ADDR, - fakelibvirt.PGPU3_PCI_ADDR]: + for pci_device in [fakelibvirt.MDEVCAP_DEV1_PCI_ADDR, + fakelibvirt.MDEVCAP_DEV2_PCI_ADDR, + fakelibvirt.MDEVCAP_DEV3_PCI_ADDR]: gpu_rp_uuid = self.placement.get( '/resource_providers?name=compute1_%s' % pci_device).body[ 'resource_providers'][0]['uuid'] |