Commit Graph

46 Commits

Author SHA1 Message Date
Martin Chacon Piza 91022f3e80 Remove project content on master branch
This is step 2b of repository deprecation process as described in [1].

[1] https://docs.openstack.org/project-team-guide/repository.html#step-2b-remove-project-content

Change-Id: Ie446c1cd447789d189a9e723fff9ee783dd3cf4f
2021-02-22 14:57:15 +01:00
Martin Chacon Piza bf5a1a7adc Migrate from ujson to simplejson
The change updates the imports to use simplejson instead of ujson and
monasca_log_api.common.rest instead of monasca_common.rest

Temporarily set monascalog-python3-tempest as voting false

This is an alternative to this change
https://review.opendev.org/#/c/724658/

Change-Id: Iae94376b38cae8a1eb8aa6a704fc2ca5d383adaf
Story: 2007549
Task: 39601
2020-05-12 11:53:33 +02:00
Adrian Czarnecki 29e25e6e29 Add support for using Falcon 2.0.0
Falcon 2.0.0 introduces some breaking changes. The relevant ones here are:

- falcon.testing.TestCase.api property was removed
- falcon.testing.TestBase class was removed
- falcon.HTTPRequestEntityTooLarge exception was renamed to
 falcon.HTTPPayloadTooLarge

Additionally, the default behaviour for handling trailing slashes on
URIs also changed:

https://falcon.readthedocs.io/en/latest/user/faq.html#how-does-falcon-
handle-a-trailing-slash-in-the-request-path

This commit adds support for using the new release.

Story: 2005695
Task: 33474

Change-Id: I2379522efef81b919098a0143b66cc259a184e70
2019-06-10 13:45:57 +02:00
OpenStack Proposal Bot cad67bdfa8 Updated from global requirements
Depends-On: https://review.openstack.org/563087
Change-Id: Ia9085ee98c4502c2e6bf6dcf2f846643d4aceace
2018-04-30 13:29:58 +02:00
Doug Hellmann d1aedd322d add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

Remove the cap on eventlet at the same time to make the requirements
match the global list.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I5efe5f6e7a0725f1f20de11ca0b2fe656a4c099d
Depends-On: https://review.openstack.org/563087
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-27 14:48:44 +00:00
OpenStack Proposal Bot 51e6802932 Updated from global requirements
Change-Id: I39eaea17490637297e8b54969a45d19fb0d5865d
2018-01-16 04:13:13 +00:00
OpenStack Proposal Bot 6b7a43342c Updated from global requirements
Change-Id: I89aba9e45c51b23927af8948567972f6a9a90255
2017-12-19 01:24:19 +00:00
OpenStack Proposal Bot 6e4b4f5cda Updated from global requirements
Change-Id: I01fa64c520ca31b24bac83ccf9f0b87f13e37ae7
2017-11-15 18:13:50 +00:00
OpenStack Proposal Bot 3db24a92eb Updated from global requirements
Change-Id: I6fcdc18db92b53723089af811a7f0e54e0384a65
2017-10-18 10:03:33 +00:00
OpenStack Proposal Bot 6f28e1b2a0 Updated from global requirements
Change-Id: I70bcc8427d4b123e9049d6adc623561b802a62ae
2017-09-16 23:14:51 +00:00
OpenStack Proposal Bot 7f0ca25db1 Updated from global requirements
Change-Id: Ia236587796b1c63ffbe9d94d5eb01e69afc7e4eb
2017-09-13 12:53:18 +00:00
OpenStack Proposal Bot 12d0bcf432 Updated from global requirements
Change-Id: Ib4f7296796d483dc3ba97249c6cc8d9f63296a2d
2017-08-24 05:52:03 +00:00
OpenStack Proposal Bot 12cd391e6d Updated from global requirements
Change-Id: I3e7f40defbe9eda6608faff3ff7b43757cf0a1e6
2017-07-24 06:50:52 +00:00
OpenStack Proposal Bot 07fe9de96c Updated from global requirements
Change-Id: I9899c2d94f37f0bef034ef2a82cac6245b0c0779
2017-06-15 16:26:03 +00:00
OpenStack Proposal Bot 750e5595eb Updated from global requirements
Change-Id: I86b265a33e73ba01d66e4f46e05366f4260f1382
2017-06-10 13:28:55 +00:00
OpenStack Proposal Bot 2416534060 Updated from global requirements
Change-Id: Iff681747da803c9d024da1c30e678d480655abc9
2017-06-02 02:28:29 +00:00
OpenStack Proposal Bot 3e790fe136 Updated from global requirements
Change-Id: I9b379ea14cf58dfc27bc43d124822c41a08f9ade
2017-05-26 17:21:33 +00:00
OpenStack Proposal Bot e69b5ad44e Updated from global requirements
Change-Id: I0f162325906e9c3b1b1f88b5e71c871623d5c04b
2017-04-12 04:14:15 +00:00
OpenStack Proposal Bot ffaf4a2b4f Updated from global requirements
Change-Id: I6256c79f1004b57fbabe0a0ad1d0ce980b6b2bce
2017-03-28 21:30:39 +00:00
OpenStack Proposal Bot e36dece049 Updated from global requirements
Change-Id: I532e277730a302694506c956fd380fed37bbf12d
2017-03-13 19:34:00 +00:00
OpenStack Proposal Bot bf5507e016 Updated from global requirements
Change-Id: I59d335d8bbe74864d42632effe0ceafac960975b
2017-03-02 11:47:05 +00:00
OpenStack Proposal Bot 68144846ff Updated from global requirements
Change-Id: Ie9749535614e24b4facf68ce980a80281271d281
2017-03-01 04:09:05 +00:00
OpenStack Proposal Bot 3b89b3a637 Updated from global requirements
Change-Id: I6a2d7387fdb1146e8064e265ff62356af8fcc8ee
2017-02-27 05:04:44 +00:00
OpenStack Proposal Bot 7a92ac5da6 Updated from global requirements
Change-Id: I1282557b46cd354431ca8a0ff0210cb0ca0af708
2017-02-15 01:28:42 +00:00
OpenStack Proposal Bot aa069b76e4 Updated from global requirements
Change-Id: I48cf071134606eabc0e412d12a94f4f2e47b8c0b
2017-01-26 08:02:03 +01:00
OpenStack Proposal Bot beb9497ebc Updated from global requirements
Change-Id: I7c505028eee3b8f4bf013c8d622d09ee540c2ec3
2017-01-09 23:02:07 +00:00
Tomasz Trębski f00e8c9012 Integration with oslo.context
Similar to other openstack projects,
monasca-log-api should provide information
about request's context in the log information.

This is done by:
* implementing custom Request that creates context (oslo.context)
* changing logging configuration to use ContextLogFormatter

Additionally, since information like tenant-id can be
retrieved from the context, modified resource code to use
that.

Change-Id: I992a2f4de64b54a705cc2bafdb3e83de0b1691c7
2017-01-09 05:36:03 +00:00
OpenStack Proposal Bot 54f8224d28 Updated from global requirements
Change-Id: I61220681ce0776269268d2004be2837c10dc308b
2016-11-09 04:17:34 +00:00
OpenStack Proposal Bot 40bcfb457f Updated from global requirements
Change-Id: Iac887f2062ace3cdb22e4b129b8e0401c7872256
2016-11-06 02:00:34 +00:00
OpenStack Proposal Bot 87cd940526 Updated from global requirements
Change-Id: Id3d2f4c0c6598d29546069fb06abd89e3e872d93
2016-10-27 12:15:49 +00:00
OpenStack Proposal Bot 6cd48268c8 Updated from global requirements
Change-Id: If045f0c30211c0b76eb3c45eccc545212bc8b19a
2016-10-05 13:31:08 +00:00
Tomasz Trębski c596622c79 Removing gunicorn from requirements
Gunicorn is not part of global-requirements.
Having it here prevents check-requirements from working

Change-Id: I6575d42ad0566ec6727e0e359966e8129c003635
2016-09-09 09:28:49 +02:00
Andreas Jaeger 5f987c3bf4 Manual sync with requirements
Sync manually with requirements. The automatic sync will not work yet
since gunicorn is not in global-requirements file and then the sync
stops.

So, let's sync what can be synced...

Remove flake8, let hacking install it as dependency in the corresponding
version.

Disable E126 flake8 test since it now fails due to newer flake8
version.

Change-Id: I9547e654de0c618386d56dd98c053118ec0100cf
2016-08-26 06:32:07 +02:00
Jenkins 4039457146 Merge "Monitoring for monasca-log-api" 2016-07-14 07:06:45 +00:00
Tomasz Trębski c3bb9b9eb4 Monitoring for monasca-log-api
Following commit adds monitoring
for monasca-log-api with metrics:
* monasca.log.in_logs - amount of logs that API has received
* monasca.log.in_logs_rejected - size of received logs in bytes
* monasca.log.processing_time_ms - log-api time to process received logs
* monasca.log.out_logs - amount of logs pubslished to kafka
* monasca.log.out_logs_lost - amount of logs that were lost (critical errors)
* monasca.log.publish_time_ms - time log-api needed to pubslish logs
* monasca.log.in_bulks_rejected - amount of rejected bulk requests
* monasca.log.out_logs_truncated_bytes - amount of truncated bytes from messages

Change-Id: Ib4165fe128e87b356415da8423f536d393c89f01
2016-07-14 08:08:58 +02:00
Kaiyan Sheng 74b18c80e3 Import simport from monasca-common
Change-Id: I7e899fa3f59e39519d93aef09c586fc0ffb3bf45
2016-06-17 14:57:44 -06:00
Jenkins 299c3ffb01 Merge "Remove six useless requirement" 2016-06-09 13:12:16 +00:00
Bertrand Lallau 39699ee81a Remove six useless requirement
This patch cleans up the requirement list to remove six module
that is not used anymore directly by monasca-log-api.

Change-Id: I2ba9058005620c4f791a912a792ec2220b9bd093
2016-05-24 09:56:26 +02:00
Kamil Choroba 31d6eb9fa3 Https Support
In terms of using https for python monasca-log-api
i've discovered a Bug in gunicorn which makes
running with ssl mode impossible. This bug
(https://github.com/benoitc/gunicorn/issues/1177) is
fixed in gunicorn version 19.5.0.

Change-Id: Ia2163243786677e81ff002ac7f65f43080058d5c
2016-05-23 08:28:33 +02:00
Roland Hochmuth 9b93fc8864 Add implementation of /v3.0/logs API
Implemented specification proposal for batch support at,
https://review.openstack.org/#/c/273058/

Note, if you want to use this in the monasca-vagrant environment
it should work. I've modified the value of the field kafka_url in
etc/monasca/monasca_log_api.conf to use the kafka server in the
mini-mon vm.

After you've deployed monasca-vagrant using "vagrant up"
ssh into mini-mon "vagrant ssh mini-mon" and then create a new
topic for logs which can be done running the command:

/opt/kafka/bin/kafka-topics.sh --create -zookeeper localhost:2181
--replication-factor 1  --partitions 128 --topic logs

To watch the log messages at the console in the mini-mon VM

/opt/kafka/bin/kafka-console-consumer.sh
--zookeeper localhost:2181 --topic logs

Change-Id: I4247d1824a237ecbe4db878e72485938f40a31c3
2016-02-24 23:09:39 -07:00
Tomasz Trębski cb54d3e496 Sync to never monasca-common
Using rest utils and new key-aware
method from kafka producer.

Change-Id: I92ca885237f12cc3790fa0935362f9e833b15287
2016-02-19 08:25:25 +01:00
Tomasz Trębski 16481d397c Updating requirements.txt
Synchronized the version requirements with openstack/requirements
global-requirements.txt

Change-Id: I249a8e9e3a6d6d1ba120c1d9b1a36cadf19c28f7
2016-02-10 08:11:36 +01:00
Tomasz Trębski 33e9d7aaa3 Security update for monasca-log-api
Created middleware to authorize access
to log api. Only configured roles (i.e. default) can access
the api. Also middleware detect if the request would
come from monasca-log-agent.

Summary:
- middleware added (logic + tests)
- extended documentation

Additionaly:
- added better tox processing
- added minimum coverage

Change-Id: Ic848bfa3a8552887661f8223078efe3a4bca5c37
2015-12-17 11:27:12 +01:00
Tomasz Trębski f07a38e388 Fixing issues spotted in dev environment
- removed own kafka abstraction in favour of monasca-common
- removed monasca keystone context filter, not actually used
- changed URI of logs endpoints to /v1.0/log/single

Change-Id: Iaceabdce2b2862451cfe63d2a612577d7710022b
2015-11-24 11:36:08 +01:00
Venkat Sundaram c9e93c8f85 Fixing gunicorn dependency and README
Adding eventlet, a dependency for gunicorn.
Updating the docs with the correct config file name.

Change-Id: Ia1bb2d90c4454cab510bdf3ab25d72868e4962cd
2015-11-23 16:29:34 +01:00
Tomasz Trębski e921fd506c monasca-log-api python
- single log message with rest api
- parsing / validation for data
- configuration
- bootstrapping
- tox
- unit tests

Change-Id: I7386b3500ee9097383a573bf915da55ce2ff881f
2015-10-08 10:38:12 +02:00