Merge ~cjwatson/launchpad:librarian-keystone-v3 into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: da7ed5fa603fff0ab11ade8d8fc8e13b4d621a1d
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:librarian-keystone-v3
Merge into: launchpad:master
Diff against target: 52 lines (+7/-4)
3 files modified
lib/lp/services/config/schema-lazr.conf (+3/-0)
lib/lp/services/librarianserver/swift.py (+2/-2)
lib/lp/testing/swift/fixture.py (+2/-2)
Reviewer Review Type Date Requested Status
Cristian Gonzalez (community) Approve
Review via email: mp+404470@code.launchpad.net

Commit message

librarian: Allow selecting a different OS_AUTH_VERSION

To post a comment you must log in.
Revision history for this message
Cristian Gonzalez (cristiangsp) wrote :

Looks good!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/lib/lp/services/config/schema-lazr.conf b/lib/lp/services/config/schema-lazr.conf
index 752093f..7ead01c 100644
--- a/lib/lp/services/config/schema-lazr.conf
+++ b/lib/lp/services/config/schema-lazr.conf
@@ -1257,6 +1257,9 @@ os_password: none
1257# datatype: string1257# datatype: string
1258os_tenant_name: none1258os_tenant_name: none
12591259
1260# datatype: string
1261os_auth_version: 2.0
1262
12601263
1261# Mailman configuration. Most of this is configured in1264# Mailman configuration. Most of this is configured in
1262# https://git.launchpad.net/lp-mailman instead; the entries here are only1265# https://git.launchpad.net/lp-mailman instead; the entries here are only
diff --git a/lib/lp/services/librarianserver/swift.py b/lib/lp/services/librarianserver/swift.py
index 23344c0..c05a702 100644
--- a/lib/lp/services/librarianserver/swift.py
+++ b/lib/lp/services/librarianserver/swift.py
@@ -1,4 +1,4 @@
1# Copyright 2013-2019 Canonical Ltd. This software is licensed under the1# Copyright 2013-2021 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4"""Move files from Librarian disk storage into Swift."""4"""Move files from Librarian disk storage into Swift."""
@@ -412,7 +412,7 @@ class ConnectionPool:
412 user=config.librarian_server.os_username,412 user=config.librarian_server.os_username,
413 key=config.librarian_server.os_password,413 key=config.librarian_server.os_password,
414 tenant_name=config.librarian_server.os_tenant_name,414 tenant_name=config.librarian_server.os_tenant_name,
415 auth_version='2.0',415 auth_version=config.librarian_server.os_auth_version,
416 )416 )
417417
418418
diff --git a/lib/lp/testing/swift/fixture.py b/lib/lp/testing/swift/fixture.py
index 55cf8f3..3359380 100644
--- a/lib/lp/testing/swift/fixture.py
+++ b/lib/lp/testing/swift/fixture.py
@@ -1,4 +1,4 @@
1# Copyright 2013-2017 Canonical Ltd. This software is licensed under the1# Copyright 2013-2021 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4"""Mock Swift test fixture."""4"""Mock Swift test fixture."""
@@ -86,7 +86,7 @@ class SwiftFixture(TacTestFixture):
86 """Return a valid connection to our mock Swift"""86 """Return a valid connection to our mock Swift"""
87 connection_kwargs = {87 connection_kwargs = {
88 "authurl": config.librarian_server.os_auth_url,88 "authurl": config.librarian_server.os_auth_url,
89 "auth_version": "2.0",89 "auth_version": config.librarian_server.os_auth_version,
90 "tenant_name": config.librarian_server.os_tenant_name,90 "tenant_name": config.librarian_server.os_tenant_name,
91 "user": config.librarian_server.os_username,91 "user": config.librarian_server.os_username,
92 "key": config.librarian_server.os_password,92 "key": config.librarian_server.os_password,

Subscribers

People subscribed via source and target branches

to status/vote changes: