Commit Graph
7 Commits
Author SHA1 Message Date
Yannick Vaucher 328f9e08c1 attachment_swift: Restore 9.0 compat in test
Restore import to openerp and py2.7 compat
2021-12-07 10:42:11 +01:00
Akim Juillerat e68423bc54 Fix authentication to Keystone v3
- Use newer version from python lib.
 - Define project_domain_id + user_domain_id in auth
2020-03-09 13:10:23 +01:00
Mussie SirakandPatrick Tombez d319b42fce Use keystoneauth v3 for Swift attachments 2020-03-04 11:09:55 +01:00
Guewen Baconnier 4e919d85cb 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-02 16:13:04 +02:00
Guewen Baconnier 85d32e44c6 Add missing variable in documentation example 2019-05-02 15:29:16 +02:00
jcoux 7fc296d73e Backport OVH modules from 10.0 2018-10-29 13:45:20 +01:00
jcoux c6a0e7c1f5 Get OVH modules from 10.0 2018-10-29 11:10:49 +01:00