From 4a7ac33d9f6fa50bf609a7a7f6c034bc35105cc2 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 c133a1c..9bf130c 100644 --- a/attachment_swift/models/ir_attachment.py +++ b/attachment_swift/models/ir_attachment.py @@ -59,6 +59,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 a1c88a5..ce3f5e6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,8 +2,8 @@ boto3==1.9.102 redis==2.10.5 python-json-logger==0.1.5 statsd==3.2.1 -python-swiftclient==3.7.0 -python-keystoneclient==3.19.0 +python-swiftclient==3.9.0 +python-keystoneclient==3.22.0 keystoneauth1==3.14.0 # error with 5.x (ConstructorError: could not determine a constructor for the tag '!record') PyYAML==4.2b4