From 3ae07695e4f9d6db22eeb83b894c49ce3b03de6a Mon Sep 17 00:00:00 2001 From: Sharmin Choksey Date: Wed, 1 Mar 2017 19:30:43 -0800 Subject: [PATCH] Fixes Keystone v3 401 authentication failures Change-Id: I8edaf653b39502959e8850e82cfa193608889e38 Partially-Closes-Bug: #1669238 --- cloudpulse/openstack/api/keystone_session.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cloudpulse/openstack/api/keystone_session.py b/cloudpulse/openstack/api/keystone_session.py index f42cc5b..afc6aa4 100644 --- a/cloudpulse/openstack/api/keystone_session.py +++ b/cloudpulse/openstack/api/keystone_session.py @@ -34,10 +34,10 @@ def _get_kssession(): elif cfg.CONF.keystone_authtoken.auth_uri[-1:] == '3': client = v3_client kwargs['project_name'] = cfg.CONF.keystone_authtoken.project_name - kwargs['user_domain_id'] = cfg.CONF.keystone_authtoken.user_domain_id - kwargs[ - 'project_domain_id'] = (cfg.CONF.keystone_authtoken. - project_domain_id) + kwargs['user_domain_name'] = \ + cfg.CONF.keystone_authtoken.user_domain_name + kwargs['project_domain_name'] = \ + cfg.CONF.keystone_authtoken.project_domain_name else: raise Exception('Unknown keystone version!')