Commit Graph
161 Commits
Author SHA1 Message Date
Akim Juillerat ca0ff1f439 Merge commit 'refs/pull/122/head' of github.com:camptocamp/odoo-cloud-platform into merge-branch-2543-bssmb-233_set_public_read_acl_on_s3_objects-e76770d5 2019-12-16 11:09:27 +01:00
Vincent RenavilleandGitHub 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
Denis LeemannandGitHub 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
Guewen BaconnierandGitHub 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 BaconnierandGitHub 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 BaconnierandGitHub 8ecd50b293 Revert "[12.0] [IMP] monitoring_status: check the db is reachable" 2019-10-29 17:32:32 +01:00
Simone OrsiandGitHub 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
CharlineDumontetandGitHub 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 Baconnierandsebalix 19126ee4f0 Update base_attachment_object_storage/models/ir_attachment.py 2019-08-09 15:47:40 +02:00
Guewen Baconnierandsebalix 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 BaconnierandGitHub 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 OrsiandGitHub 0686ae7ec4 Update main.py 2019-08-02 09:14:16 +02:00
Simone OrsiandGitHub 764a77ff60 Update main.py 2019-08-02 08:30:49 +02:00
Simone OrsiandGitHub 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 OrsiandGitHub 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 JuilleratandGitHub 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
Guewen Baconnier 339876236e Add missing variable in documentation example 2019-05-07 15:51:36 +02:00
Yannick VaucherandGitHub 486f15095f Merge pull request #53 from p-tombez/12.0-fix_s3_name_check
Fix S3 bucket name check to allow numbers
2019-05-01 16:24:28 +02:00
Patrick Tombez dc0029cfda Fix S3 bucket name check to allow numbers 2019-04-24 12:08:42 +02:00
Simone OrsiandGitHub affe86d5aa Merge pull request #51 from yvaucher/fix-aws-host-empty
Fix use of aws where hostname is not required
2019-04-17 15:24:37 +02:00
Yannick Vaucher 8ccddefd06 Fix use of aws where hostname is not required
This fixes an error with endpoint computed as https://None while
we want to let boto compute the AWS endpoint
2019-04-17 14:51:46 +02:00
Yannick VaucherandGitHub c3310cbd9f Merge pull request #45 from Numigi/12.0-monitoring_log_requests_dispatch_classmethod
12.0: monitorin_log_request: _dispatch is a classmethod
2019-04-16 15:10:11 +02:00
Jordi Riera 060975fdfb monitorin_log_request: _dispatch is a classmethod 2019-04-15 17:55:03 -04:00
Yannick VaucherandGitHub b05413f020 Merge pull request #49 from grindtildeath/12.0_add_base_fileurl_field
[12.0] Add base_fileurl_field
2019-04-08 17:04:53 +02:00
Akim JuilleratandGitHub 9df4251b3c Merge pull request #50 from grindtildeath/12.0_hostname_scheme
[12.0] Add https scheme if not present in AWS_HOST env var
2019-04-03 15:53:44 +02:00
Akim Juillerat 58d526d8cf Add https scheme if not present in AWS_HOST env var
With boto (odoo < 12.0) we use an hostname as AWS_HOST.
However with boto3, the connection must be initialized using an
URL containing a scheme (e.g https://)
This commit ensures we can use a simple hostname for odoo >= v12.0
without the need of specifying the scheme in the env var.
2019-04-03 14:48:53 +02:00
Akim Juillerat 959702b2d3 fixup! fixup! [12.0] Add base_fileurl_field 2019-04-02 14:07:30 +02:00
Akim Juillerat dd776de71b Make pylint happy 2019-03-14 15:16:54 +01:00
Akim Juillerat fa522a29e7 Update .travis.yml 2019-03-13 20:07:21 +01:00
Akim Juillerat 979e76c353 fixup! [12.0] Add base_fileurl_field 2019-03-13 20:04:41 +01:00
Yannick VaucherandAkim Juillerat 2d8d1f808b Update base_fileurl_field/fields.py
Co-Authored-By: grindtildeath <akim.juillerat@camptocamp.com>
2019-03-13 19:18:07 +01:00
Akim Juillerat d83aca68e6 [12.0] Add base_fileurl_field 2019-03-13 19:18:07 +01:00
Yannick VaucherandGitHub a7207cc3e7 Merge pull request #48 from grindtildeath/12.0_improvements
12.0 attachment_s3 improvements
2019-03-12 09:09:04 +01:00
Akim Juillerat 626c157964 [IMP]: Allow to use context Key as storage key 2019-03-11 15:39:53 +01:00
Akim Juillerat 498aae2f53 [IMP]: Allow to pass storage as a context key 2019-03-11 15:39:53 +01:00
Akim Juillerat c61cf6c4e5 attachment_s3: Migrate to boto3 2019-03-11 15:39:53 +01:00
Guewen BaconnierandGitHub 8b9e7b1ffe Merge pull request #41 from jcoux/fix_check_stack_name
Fix the check stack name for project with digit at first character
2018-12-03 10:56:46 +01:00
Guewen Baconnier a9c2f64fca Add setuptools files 2018-12-03 10:09:33 +01:00