Merge "Propose FPGA and PGPU resource classes"

This commit is contained in:
Zuul 2019-07-15 16:03:35 +00:00 committed by Gerrit Code Review
commit 0dd643be96
2 changed files with 6 additions and 2 deletions

View File

@ -68,6 +68,10 @@ STANDARDS = [
# host with memory encrypted at the hardware level. See
# http://specs.openstack.org/openstack/nova-specs/specs/train/approved/amd-sev-libvirt-support.html
'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

View File

@ -44,8 +44,8 @@ class TestOs_resource_classes(base.TestCase):
of the STANDARDS list, otherwise database ids will get confused
in the placement service.
"""
expected_last_class = rc.MEM_ENCRYPTION_CONTEXT
expected_length = 16
expected_last_class = rc.PGPU
expected_length = 18
self.assertEqual(expected_last_class, rc.STANDARDS[-1])
self.assertEqual(expected_length, len(rc.STANDARDS))