From df6c2aec0b70429f3942afefa78eb3fc29ac8d83 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 2f3c509..9ed3397 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 9d0c28d..ae4bf9d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,8 +2,8 @@ boto==2.42.0 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