Merge "Propose FPGA and PGPU resource classes"
This commit is contained in:
commit
0dd643be96
|
@ -68,6 +68,10 @@ STANDARDS = [
|
||||||
# host with memory encrypted at the hardware level. See
|
# host with memory encrypted at the hardware level. See
|
||||||
# http://specs.openstack.org/openstack/nova-specs/specs/train/approved/amd-sev-libvirt-support.html
|
# http://specs.openstack.org/openstack/nova-specs/specs/train/approved/amd-sev-libvirt-support.html
|
||||||
'MEM_ENCRYPTION_CONTEXT',
|
'MEM_ENCRYPTION_CONTEXT',
|
||||||
|
# An accelerator (the "VF" that can be attached to the guest) from an FPGA.
|
||||||
|
'FPGA',
|
||||||
|
# A physical GPU for compute offload.
|
||||||
|
'PGPU',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Namespace used for custom resource classes
|
# Namespace used for custom resource classes
|
||||||
|
|
|
@ -44,8 +44,8 @@ class TestOs_resource_classes(base.TestCase):
|
||||||
of the STANDARDS list, otherwise database ids will get confused
|
of the STANDARDS list, otherwise database ids will get confused
|
||||||
in the placement service.
|
in the placement service.
|
||||||
"""
|
"""
|
||||||
expected_last_class = rc.MEM_ENCRYPTION_CONTEXT
|
expected_last_class = rc.PGPU
|
||||||
expected_length = 16
|
expected_length = 18
|
||||||
self.assertEqual(expected_last_class, rc.STANDARDS[-1])
|
self.assertEqual(expected_last_class, rc.STANDARDS[-1])
|
||||||
self.assertEqual(expected_length, len(rc.STANDARDS))
|
self.assertEqual(expected_length, len(rc.STANDARDS))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue