Commit Graph
10 Commits
Author SHA1 Message Date
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
jcouxandGitHub bf2f5dcb20 [10.0] Fix connection errors when we read attachment 2017-12-22 07:47:54 +01:00
Guewen Baconnier abe34fcaa2 Return empty result on file read error
This is how the core implementation works
2017-09-20 15:42:25 +02:00
Guewen Baconnier cbef735c76 Abstract object storage in attachment_s3
Using the base_attachment_object_storage module, the same way
attachment_swift is done. Fixed a few issues along the way in
attachment_swift.
2017-09-20 15:42:25 +02:00
Guewen Baconnier 81196a8058 Various small changes after review 2017-09-20 12:43:38 +02:00
Thierry DucrestandGuewen Baconnier dd8f2fc5c8 Add auth v2.0 for swift connection 2017-09-20 12:43:38 +02: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
Thierry Ducrest 017e1c7bd9 Create the module for Swift attachment 2017-08-25 16:34:12 +02:00