Guewen Baconnier
607268bd4f
Delete S3 file only when bucket is the current one
2016-11-14 08:29:13 +01:00
Guewen Baconnier
779aa03c57
Explicit attachment_s3 must be started in --load
2016-11-10 16:14:19 +01:00
Guewen Baconnier
92880deeab
Explicit session_redis must be started in --load
2016-11-10 16:14:19 +01:00
Guewen Baconnier
78ac4d306e
Document --load option
2016-11-10 16:14:19 +01:00
Guewen Baconnier
110ec2399d
Add logging when deleting file on the object storage
2016-11-07 10:11:23 +01:00
Guewen Baconnier
7f262799cf
Do not care if an attachment could not be deleted
2016-11-07 09:50:26 +01:00
Guewen Baconnier
8400c0f34e
Set statsd customer
2016-11-04 13:39:50 +01:00
Guewen Baconnier
f643c19fba
Do not fail when an attachment cannot be read
...
It would be blocking and a missing attachment might be a minor issue.
Only warn when such a file is missing.
2016-11-04 13:38:31 +01:00
Guewen Baconnier and GitHub
80ac235c28
Merge pull request #3 from guewen/grafana-statsd
...
Add statsd addon
2016-11-04 10:35:25 +01:00
Guewen Baconnier
65e9bad4e5
Add monitoring_statsd in cloud_platform
2016-11-04 10:30:10 +01:00
Guewen Baconnier
d53ef3de37
Add statsd metrics addon
2016-11-04 10:30:10 +01:00
Guewen Baconnier and GitHub
23634feb46
Merge pull request #2 from guewen/logging-json
...
Add logging_json
2016-11-04 10:20:20 +01:00
Guewen Baconnier
bed41d6719
Add requirements.txt
2016-11-03 17:37:00 +01:00
Guewen Baconnier
e5c1afb09e
Fix server_environment_files error
2016-11-03 17:07:47 +01:00
Guewen Baconnier
3c8b74369b
Make pylint happy
2016-11-03 16:58:36 +01:00
Guewen Baconnier
3fd26cb894
Fix travis configuration
2016-11-03 16:46:42 +01:00
Guewen Baconnier
7eafdd75f4
Add oca-dependencies
2016-11-03 16:24:47 +01:00
Guewen Baconnier
b5f00c26dc
Fix pep8
2016-11-02 10:29:02 +01:00
Guewen Baconnier
ec1f3fc61a
Add logging_json
...
Output odoo logs as json
2016-11-02 10:10:05 +01:00
Guewen Baconnier
46231b3365
Fix pep8
2016-11-02 09:55:36 +01:00
Guewen Baconnier
1d4f76de2b
Migrate attachments s3 to new pattern
...
So remove the compatibility code altogether
2016-11-01 08:55:00 +01:00
Guewen Baconnier
963b65e99d
Storage should be 's3'
2016-10-31 17:23:20 +01:00
Guewen Baconnier
ab0fa598ca
Adapt cloud_platform setup for 73aaff6
...
Following the changes in attachment_s3
2016-10-31 14:05:58 +01:00
Guewen Baconnier
73aaff62fc
Rework attachment_s3:
...
* store the S3 uri in the 'store_fname' (s3://bucket/key)
* the read-only mode is now built-in, as we store the bucket name, if a
instance is started with a different bucket or another filestore
method, it will continue to read the previous attachments on their
stored bucket, but new attachments will be stored on the new one
* remove config in ir.config_parameter, it makes all the stuff more
complex and we don't use them (config file would be more interesting)
* automatically migrate the attachments on loading of the server, so
if an ir.attachment has been created during the module
upgrade/initialization before attachment_s3 is loaded, it will be sent
to S3 as soon as it's loaded
2016-10-31 13:57:20 +01:00
Guewen Baconnier
fde2688b27
Do not require REDIS on dev environment
2016-10-28 12:06:51 +02:00
Guewen Baconnier
202d37f08b
Relax rules for the redis prefix
...
If we run 2 instances with the 'integration' server_env, we want 2
the ability to use different prefixes.
2016-10-25 13:26:26 +02:00
Guewen Baconnier
6eb25377fb
Remove extra parameter
2016-10-25 12:09:27 +02:00
Guewen Baconnier
e286a0da1a
Allow different bucket name than *-odoo-prod
...
Only force it if the server-env is 'prod'. When we have no production
yet, the integration will have its own bucket.
2016-10-25 10:16:26 +02:00
Guewen Baconnier
fedfbb199e
Allow s3 on non-prod environment
...
But force it to be readonly
2016-10-25 09:55:29 +02:00
Guewen Baconnier
fb7c07a47c
Install session_redis and monitoring_status
2016-10-25 09:39:28 +02:00
Guewen Baconnier
952a35854e
Add monitoring_status, new route for health checks
2016-10-25 09:39:03 +02:00
Guewen Baconnier
982285b298
Add a cloud_platform 'profile' addon
...
* When installed, it pulls the addons required for Odoo to run on the
Cloud Platform.
* It provides a method to configure Odoo at the installation.
* It checks if the environment variables are correct according the the
'server environment'
* And add documentation
2016-10-25 09:38:48 +02:00
Guewen Baconnier
63daa99cdd
Add session_redis
2016-10-24 17:12:27 +02:00
Guewen Baconnier
9ca3f87614
Remove the bin_size return
...
When we return a bin_size (such as 28672), the web client does not
accept it as as bin size and try to use it as value for the b64 src of
the image. Though, returning the image as b64 in all cases does seem to
be supported.
2016-10-24 17:12:27 +02:00
Guewen Baconnier
ec59d275e2
Add read-only mode that fallbacks on the database
2016-10-24 17:12:27 +02:00
Guewen Baconnier
7825661a1a
Add attachment_s3
2016-10-24 17:12:27 +02:00
Guewen Baconnier
2f00f776e8
Fix queries without status_code
2016-10-10 13:34:10 +02:00
Guewen Baconnier
c8f330321b
Add possibility to add a filter
...
But still output everything
2016-08-31 16:58:39 +02:00
Guewen Baconnier
838b9721f2
Add blacklist for monitored requests
2016-08-31 16:30:57 +02:00
Guewen Baconnier
c6c18194e4
Add monitoring_log_requests
...
Addons that logs requests for usage analysis
2016-08-31 16:08:28 +02:00
Guewen Baconnier
8e3f231cea
Add base files
2016-08-31 15:31:44 +02:00
Guewen Baconnier
c412ef7544
Initial commit
2016-08-31 15:31:39 +02:00