Denis Leemann
69a1d75861
Merge commit 'refs/pull/121/head' of github.com:camptocamp/odoo-cloud-platform into merge-branch-2543-master-99f318df
2020-03-30 10:46:22 +02:00
Denis Leemann
e1513f0e59
Merge commit 'refs/pull/122/head' of github.com:camptocamp/odoo-cloud-platform into merge-branch-2543-master-99f318df
2020-03-30 10:46:21 +02:00
Akim Juillerat
123947100b
[FIX] attachment_s3: Close fileobjects after usage
2020-03-18 13:22:02 +01:00
Akim Juillerat
bd3be08203
[IMP] attachment_s3: Consider bin_size context key
...
When bin_size context key is set, read operations on attachments
are supposed to return the size of the attachment and not its content
2020-03-18 12:51:48 +01:00
Akim Juillerat and GitHub
20a8493a63
Merge pull request #165 from grindtildeath/12.0-fix_auth_to_keystone_v3
...
[12.0] attachment_swift: Fix authentication to Keystone v3
2020-03-09 13:32:56 +01:00
Akim Juillerat
4a7ac33d9f
Fix authentication to Keystone v3
...
- Use newer version from python lib.
- Define project_domain_id + user_domain_id in auth
2020-03-09 12:07:59 +01:00
Patrick Tombez and GitHub
6d92bd626b
Merge pull request #152 from p-tombez/12.0-keystoneauth_v3
...
[12.0] Use keystoneauth v3 for Swift attachments
2020-03-04 10:45:41 +01:00
Mussie Sirak and Patrick Tombez
8ac54f4773
Use keystoneauth v3 for Swift attachments
2020-03-04 10:23:59 +01:00
Akim Juillerat and GitHub
cca48fb020
Merge pull request #141 from grindtildeath/12.0_dev_s3_attachments
...
[12.0] Require AWS_BUCKETNAME for prod and integration environments only
2020-02-26 14:40:13 +01:00
Akim Juillerat
928faced58
Require AWS_BUCKETNAME for prod, integration and labs environments only
...
AWS_BUCKETNAME is only needed in order to write on the bucket, but
read-only access should be allowed for other environments.
Fixes bug introduced by 6c3b610610
2020-02-25 17:19:48 +01:00
Yannick Vaucher and GitHub
312a4001c4
Merge pull request #116 from yvaucher/aws-bucketname-unstrctured
...
Add AWS_BUCKETNAME_UNSTRUCTURED to by-pass check
2020-02-25 16:27:46 +01:00
Yannick Vaucher
a6533576f2
Swift same by-pass structured store location
2020-02-25 15:36:19 +01:00
Akim Juillerat
985fa50158
Support minio.io for DEV without error
2020-02-11 17:34:42 +01:00
Akim Juillerat
4d04588125
fixup! fixup! attachment_s3: Add set ACL function
2020-01-31 12:42:30 +01:00
Patrick Tombez and GitHub
ccbae04ae0
Merge pull request #135 from p-tombez/12.0-anon_redis_session
...
[12.0] Add anonymous redis session expiration configuration
2020-01-31 11:14:56 +01:00
Patrick Tombez
c139b4da0a
Add anonymous redis session expiration configuration
2020-01-29 16:31:38 +01:00
Akim Juillerat
6de4ced0f5
fixup! attachment_s3: Add set ACL function
2020-01-29 12:45:39 +01:00
Guewen Baconnier and GitHub
d544a881f8
Merge pull request #125 from acsone/12.0-fix-pythonjsonlogger-setup
...
[FIX] pythonjsonlogger external dependency in setup.py
2020-01-14 16:17:42 +01:00
Stéphane Bidoul (ACSONE)
1c5a5088b6
[FIX] pythonjsonlogger external dependency in setup.py
2019-12-21 12:09:43 +01:00
1ad9a198a2
Update attachment_s3/models/ir_attachment.py
...
Co-Authored-By: Patrick Tombez <35060345+p-tombez@users.noreply.github.com >
2019-12-16 13:39:17 +01:00
Akim Juillerat
609a039481
fixup! base_fileurl_field: add acl_public_read slot
2019-12-16 11:06:07 +01:00
Vincent Renaville and GitHub
ed7c246493
Merge pull request #79 from sebalix/12.0-add-force-storage-special-fields
...
[12.0] Add method to force storage of special attachments to DB
2019-12-12 15:52:43 +01:00
Akim Juillerat
8f902ed7ea
attachment_s3: Add set ACL function
2019-12-12 14:43:51 +01:00
Akim Juillerat
727b4dd9b1
base_fileurl_field: add acl_public_read slot
2019-12-12 14:40:57 +01:00
Denis Leemann and GitHub
0ea58439f6
Merge pull request #117 from leemannd/description_added
...
Add description to model
2019-12-09 16:06:53 +01:00
Denis Leemann
07f7b3b19f
Add description to model
...
This removes the useless warning at startup
2019-12-09 15:06:55 +01:00
Yannick Vaucher
7be1cebeeb
Add AWS_BUCKETNAME_UNSTRUCTURED to by-pass check
...
Curently the name of the bucket is cross checked with the
running environment. In rare case you can have a bucket name
that doesn't match the structure <project>-odoo-<env> in place.
2019-12-05 15:33:54 +01:00
Guewen Baconnier and GitHub
7a6adaffec
Merge pull request #105 from camptocamp/revert-100-12.0-monitoring_check_db_connection
...
Revert "[12.0] [IMP] monitoring_status: check the db is reachable"
2019-11-18 13:50:32 +01:00
Guewen Baconnier and GitHub
1a907eea02
Merge pull request #110 from guewen/add-support-running-env-labs
...
[12.0] Add support of 'labs' RUNNING_ENV in cloud_platform
2019-11-18 13:41:06 +01:00
Guewen Baconnier
d04e7d558f
Add an advice in error message
2019-11-18 13:07:54 +01:00
Guewen Baconnier
6c3b610610
Add support of 'labs' RUNNING_ENV in cloud_platform
...
The labs env can be anything starting by 'labs', such as
'labs-logistics', 'labs-finance', ...
* At install, s3/swift is set as default storage
* However, unlike prod/integration, the storage is not forced to be an
object storage
* Redis is required
* When the storage is set on s3/swift, then the bucket name is mandatory
(otherwise, there is no place where to create the files...)
The redis prefix regex match is relaxed: anything starting by a project
name, then '-odoo-', then any combination of letters, digits, and dashes
is accepted (so a prefix my-project9-odoo-labs-web3 is valid).
2019-11-18 13:07:54 +01:00
Guewen Baconnier and GitHub
8ecd50b293
Revert "[12.0] [IMP] monitoring_status: check the db is reachable"
2019-10-29 17:32:32 +01:00
Simone Orsi and GitHub
eb91ecf352
Merge pull request #100 from gurneyalex/12.0-monitoring_check_db_connection
...
[12.0] [IMP] monitoring_status: check the db is reachable
2019-10-28 08:13:11 +01:00
Alexandre Fayolle
f83e502d72
[IMP] monitoring_status: check the db is reachable
...
make a real SQL query on GET /monitoring/status and return a 503
if the query failed.
2019-10-25 16:25:31 +02:00
CharlineDumontet and GitHub
9655641f22
Merge pull request #80 from Tonow-c2c/change_re_check_prod
...
cloud_platform: support client name w/ number
2019-09-09 09:25:55 +02:00
Tonow-c2c
6b87b1c604
cloud_platform: support client name w/ number
2019-09-08 15:48:23 +02:00
sebalix
493e49ba00
attachment_s3: remove old migration script
2019-08-09 16:05:06 +02:00
Guewen Baconnier and sebalix
19126ee4f0
Update base_attachment_object_storage/models/ir_attachment.py
2019-08-09 15:47:40 +02:00
Guewen Baconnier and sebalix
2f8fcedd88
Add method to force storage of special attachments to DB
...
Some attachments (e.g. image_small, image_medium) are stored in DB
instead of the object storage for faster access.
In some situations, we may have pushed all these files on the Object
Storage (migration from a filesystem to object storage) and want to
bring back these attachments from the object storage to the database.
This method is not called anywhere but can be called by RPC or scripts.
2019-08-09 15:47:40 +02:00
Guewen Baconnier and GitHub
84e00f5f14
Merge pull request #73 from camptocamp/simahawk-patch-1
...
monitoring_status filter: ignore HTTP version
2019-08-09 09:54:33 +02:00
Simone Orsi and GitHub
0686ae7ec4
Update main.py
2019-08-02 09:14:16 +02:00
Simone Orsi and GitHub
764a77ff60
Update main.py
2019-08-02 08:30:49 +02:00
Simone Orsi and GitHub
9cf63f60a5
Merge pull request #72 from simahawk/12-imp
...
cloud_platform: support client name w/ multiple `-`
2019-07-30 15:52:43 +02:00
Simone Orsi
50cb368704
cloud_platform: support client name w/ multiple -
2019-07-30 14:20:12 +02:00
Simone Orsi and GitHub
379141112c
Merge pull request #65 from guewen/filter-monitoring-status-log
...
[12.0] Filter /monitoring/status werkzeug logs
2019-07-12 11:58:09 +02:00
Guewen Baconnier
ad3a962931
Filter /monitoring/status werkzeug logs
...
With healtchecks, they constitute 95% of our logs. Let's stop wasting
resources and shut them up.
2019-07-12 10:07:20 +02:00
Akim Juillerat and GitHub
665976930b
Merge pull request #58 from guewen/12.0-swift-auth-session
...
[12.0] attachment_swift: share a session for all connections
2019-05-20 15:44:47 +02:00
Guewen Baconnier
580eff0062
Override dependencies with different name and pin versions
...
The name of the libs and python packages are different, Odoo expects
the inner python package in the manifest, but setuptools cannot find the
libs in pypi, overrides them with the libs names.
2019-05-09 10:10:58 +02:00
Guewen Baconnier
d032e518ba
Pin PyYAML version because 5.x does not work with Odoo
...
It would raise ConstructorError: could not determine a constructor for the tag '!record'
2019-05-09 10:10:58 +02:00
Guewen Baconnier
c6456a58f7
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:10:58 +02:00