From bdc942a27248eeb0ad9b674f099d671e88792d54 Mon Sep 17 00:00:00 2001 From: Sundar Nadathur Date: Fri, 13 Dec 2019 08:46:25 -0800 Subject: [PATCH] Add a trait that compute manager can handle accelerator requests. When a Cyborg device profile name is present in the flavor, the conductor will initiate creation and binding of accelerator requests, and the compute manager must wait for the ARQ binding notifications. In a deployment where the conductor is new, but one or more compute managers are older than the needed version, this flow will break. To prevent that: (a) the compute manager publishes this trait, and (b) the scheduler factors this trait in the Placement query, so that older compute nodes are not included in allocation candidates. Change-Id: I6dc00248b54f3a8a5d5dae284d2182df5ba550ab --- os_traits/compute/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os_traits/compute/__init__.py b/os_traits/compute/__init__.py index 1e90cd1..0a48f64 100644 --- a/os_traits/compute/__init__.py +++ b/os_traits/compute/__init__.py @@ -30,4 +30,6 @@ TRAITS = [ 'SAME_HOST_COLD_MIGRATE', # The virt driver supports rescuing boot from volume instances. 'RESCUE_BFV', + # The compute manager supports handling accelerator requests. + 'ACCELERATORS', ]