From d44ff57e6c0ff1b73c3da24829be8dd62d9ef3d4 Mon Sep 17 00:00:00 2001 From: Akim Juillerat Date: Fri, 6 Mar 2020 12:35:22 +0100 Subject: [PATCH] Fix authentication to Keystone v3 - Use newer version from python lib. - Define project_domain_id + user_domain_id in auth --- attachment_swift/models/ir_attachment.py | 2 ++ requirements.txt | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/attachment_swift/models/ir_attachment.py b/attachment_swift/models/ir_attachment.py index bf3b2ac..7f20bed 100644 --- a/attachment_swift/models/ir_attachment.py +++ b/attachment_swift/models/ir_attachment.py @@ -60,6 +60,8 @@ class SwiftSessionStore(object): password=password, project_name=project_name, auth_url=auth_url, + project_domain_id='default', + user_domain_id='default', ) session = keystoneauth1.session.Session( auth=auth, diff --git a/requirements.txt b/requirements.txt index b62181e..119dd74 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ boto==2.42.0 redis==2.10.5 python-json-logger==0.1.5 -python-swiftclient==3.4.0 -python-keystoneclient==3.13.0 +python-swiftclient==3.9.0 +python-keystoneclient==3.22.0