summaryrefslogtreecommitdiff
path: root/nova/context.py
diff options
context:
space:
mode:
authorSundar Nadathur <sundar.nadathur@intel.com>2019-01-16 00:31:01 -0800
committerSundar Nadathur <sundar.nadathur@intel.com>2020-03-21 12:03:37 -0700
commitc071741d565950ba0a6b43f7b66aad0bdbaf1dff (patch)
tree869a6c80739e40bc57d4eaca319221384e62dc21 /nova/context.py
parent53775aa81957b4c78045e631027c5576a5ab5693 (diff)
downloadnova-c071741d565950ba0a6b43f7b66aad0bdbaf1dff.tar.gz
ksa auth conf and client for Cyborg access
Framework for communication with the Cyborg API. - Standard keystoneauth1 config options for setting up authentication in the [cyborg] section of nova*.conf. - A new nova.accelerator.cyborg module containing a get_client method to return a client containing a keystoneauth1 adapter pointing to the Cyborg service with user- and service- based authentication. - Requirements updates to pull in the os-service-types release containing the 'accelerator' service type. Change-Id: Iee0766269d61948ad701911e8b0e5e24d3d6eb04 Blueprint: nova-cyborg-interaction
Diffstat (limited to 'nova/context.py')
-rw-r--r--nova/context.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/context.py b/nova/context.py
index 76c0086f63..90aaa14a39 100644
--- a/nova/context.py
+++ b/nova/context.py
@@ -118,7 +118,8 @@ class RequestContext(context.RequestContext):
# Only include required parts of service_catalog
self.service_catalog = [s for s in service_catalog
if s.get('type') in ('image', 'block-storage', 'volumev3',
- 'key-manager', 'placement', 'network')]
+ 'key-manager', 'placement', 'network',
+ 'accelerator')]
else:
# if list is empty or none
self.service_catalog = []