From e14a4049bcdf6af9583d091df9ce21eec90eb0b5 Mon Sep 17 00:00:00 2001 From: Dmitrii Shcherbakov Date: Fri, 19 Nov 2021 11:26:46 +0300 Subject: [PATCH] Add a trait for remote_managed port-capable nodes Instances with VNIC_TYPE_SMARTNIC port need PCI devices tagged as "remote_managed" in the PCI whitelist, however, not all compute drivers may support the necessary functionality or have the necessary devices. A new trait is added in order to allow a pre-filter based on it to be implemented to avoid considering compute hosts that do not support "remote_managed" ports. Implements: blueprint integration-with-off-path-network-backends Needed-By: I168d3ccc914f25a3d4255c9b319ee6b91a2f66e2 Change-Id: If5a4c81084ff9f9f8fecf9fa4cd62fc98e3efcd9 Task: 44048 Story: 2009706 --- os_traits/compute/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/os_traits/compute/__init__.py b/os_traits/compute/__init__.py index bb9b86c..178ec9f 100644 --- a/os_traits/compute/__init__.py +++ b/os_traits/compute/__init__.py @@ -35,4 +35,7 @@ TRAITS = [ # The compute manager supports the `socket` value for the # hw_pci_numa_affinity_policy image property/flavor extra spec. 'SOCKET_PCI_NUMA_AFFINITY', + # The compute manager supports handling remote_managed PCI devices + # associated with SmartNIC DPUs. + 'REMOTE_MANAGED_PORTS' ]