Commit Graph
7 Commits
Author SHA1 Message Date
Mussie SirakandPatrick Tombez 04fba0fdc4 Use keystoneauth v3 for Swift attachments 2020-03-04 10:26:37 +01:00
Guewen Baconnier 5a0c554749 attachment_swift: share a session for all connections
OVH's Swift applies a rate limit on the authentication.

attachment_swift authenticates again each time it has to read/write an
attachment. When running upgrades on upgrades of files or installing a
new DB, at some point, we get rejected with HTTP 429.

This commit introduces a shared storage for Swift Session. All
connections will reuses the same authentication token created the first
time a connection needs a Session.

Note: needs python-swiftclient>=3.7.0 to have
https://github.com/openstack/python-swiftclient/commit/1971ef880ff225379d4a91f00f89f323a1605eeb
2019-05-09 10:09:44 +02:00
Guewen Baconnier adfc398e0b Propagage region_name to swift connection
Otherwise, the bucket will be in the incorrect region
2018-03-16 09:11:33 +01:00
Guewen Baconnier 7999386273 Fix tests
When there is no write container setup, no write/delete actions are
done.
2017-11-10 08:52:53 +01:00
Thierry Ducrest d79646d108 Add mocking in Swift tests 2017-11-09 11:33:36 +01:00
Thierry DucrestandGuewen Baconnier fea698057a Create base_attachment_object_storage to extract common code to store implementations 2017-09-01 11:14:21 +02:00
Thierry Ducrest beea07d44f Add implementation of reading writing on the Swift object store 2017-08-30 09:01:00 +02:00