- Support to new Falcon 3.0.0 and 3.0.1 keeping compatibility
for version 2.0.0
- Remove Falcon's class OptionalRepresentation
Starting from Falcon 3.0.0 version the class OptionalRepresentation
was removed. [1]
- Remove unnecessary URL slashes which are not compatible
with Falcon >= 3.0.0
- Keep facon.API instead of new falcon.App to keep support for
version 2.0.0
- Disable temporary docker-build and docker-publish Zuul jobs.
[1] https://falcon.readthedocs.io/en/stable/changes/3.0.0.html#breaking-changes
Change-Id: Ifb067429dd66fd350110187ac3a8b6a9977bad90
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found by updated hacking version.
Remove hacking and friends from lower-constraints, they are not needed
there at all.
Change-Id: I35d848e9af297d3561ea2838a4808166d1c36601
The change updates the imports to use simplejson library and
monasca_api.common.rest instead of monasca_common.rest, since
it was moved to this project during the API's merge.
Temporarily set following jobs as non-voting:
* monasca-tempest-python3-influxdb
* build-monasca-docker-image
* publish-monasca-api-docker-image
Change-Id: Ife3d2c9795a9dc406c2927cc9a077dda01c183c6
Story: 2007549
Task: 39389
As already implemented for metrics, also logs should be published to
Apache Kafka using the new Kafka client.
Change-Id: Ie909b13c7692267e787d481f4de658db3b07a1c4
Story: 2003705
Task: 36866
This change copies the code from monasca-common used by the 3
monasca APIs into monasca-api for the Merge-APIs target.
After mergin the APIs the duplicated code can be removed from
monasca-common.
Change-Id: I52d36fad846637baf10516f5cbbedc541d4c2064
Story: 2003881
Task: 30427
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
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. It currently makes
no effort to be backwards compatible with older releases.
The change also updates the requirements for influxdb and sphinx
libraries to match global requirements.
Until monasca-log-api implementation is not updated to support the new
version of Falcon, `monascalog-python3-tempest` is marked to be
non-voting as agreed in the team meeting.
Story: 2005695
Task: 31015
Change-Id: I03bc8d502a333a7a71d9c12b8ddc7c5dc0a4f588
api-config.conf is the deprecated path for the configuration file. The
new path is /etc/monasca/monasca-api.conf .
Story: 2004708
Task: 28987
Change-Id: If06d9114529c3ef4520247dfc7c32d3769f07084
The refactoring of the wsgi.py file to support uWSGI in devstack
unfortunately broke existing WSGI deployments which fail to load
the Monasca API with a message like this:
Target WSGI script '/monasca-api/monasca_api/api/wsgi.py' does not
contain WSGI application 'application'.
This change allows mod_wsgi to find the application definition.
Change-Id: I9002bdcb4e132495ec639ad3636bdabdd8714e01
Story: 2001919
Task: 23343
Added policies and used policy enforcement engine
from monasca-common.
- Replaced security with oslo.policy
- Updated unit tests and implemented some new tests
- Added a new entry point for generating sample policy file by tox
story: 2001233
task: 6355
Change-Id: I4aa444fe6ec883160c03c201145c77994b6615f9
Signed-off-by: Amir Mofakhar <amofakhar@op5.com>
Change migrates the monasca-api to use oslo-config-generator in
order to always build newest configuration file. That removes
the need of maintaning the file along with changes to oslo configuration.
The example of the file is also included in the documentation.
Also:
* ported case for launching api under WSGI and allowing the argument
parsing of oslo to take place
Story: 2000970
Task: 4865
Story: 2000964
Task: 4106
Change-Id: I57547b0e2122e40f58db5f949773900b76214526
Currently when kafka is down on monasca-api startup,
monasca-api enters infinite error loop with
ArgsAlreadyParsedError: arguments already parsed:
cannot register CLI option
Change-Id: Iabcd830d76ba4225e39843db88ab35555d4ea921
Provide new healtcheck endpoint to monasca-api.
Add simple check for HEAD and complex check for GET.
Complex check contains information about dependent
services like:
- kafka
- relational database (mariadb, postgresql)
- timeseries database (influxdb, cassandra)
Story: 2000974
Task: 4125
Change-Id: I863071194041a512b144262bbffce5024b97086b
wsgiref is only used then server.py is called directly which is usually not the
case if monasca-api runs under a wsgi container.
Change-Id: I229ac6034107d087750179460153e1350aad314e
Following commits adds possiblity to run monasca-api
with Apache2 (mod_wsgi).
Needed-By: Idcc181bbb19a68c622eca51dc9822bde9a91f6a9
Change-Id: Id07dcc249965d97644da9396b6d288255ffaab43
Similar to other openstack projects,
monasca-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
Since information like tenant-id can be
retrieved from the context, modified resource code to use
that.
Also moved 'limit' directly to request property.
Change-Id: I917fa2cba99dc668842fea0a62cda2cabd796d09
This endpoint will return all the dimension names for a given metric
name.
Added dimension-names for influx in python api and java api
Added dimension-names for vertica in java api
Depends-On: Id981dafd00778a6d4a376b9ceab011231e94c0c6
Change-Id: I0192ccb9276ea94103a477bd2ad7d10f21e64d31
Implements: blueprint dimensions-api
This review
1) Removes the hard coded notification types
2) Adds a new Rest API to get the notification types
Partially-implements: blueprint notification-engine-plugin
Change-Id: Ie043533974f9dcf60c77093c5d6df5eced99e68b
This endpoint will return all the dimension values for a given
dimension name and optional metric name (for the scoped project).
This will allow grafana templating to use this (much faster call)
instead of making a full metric-list call and then parsing out
dimensions.
Change-Id: Ia1e2487fe0f96dee03d97d865c58a3728b43f448
Implements: blueprint dimensions-api
Update docs with new command
Move validation of the period field to the setter for
java api which is called by jackson as it constructs the
command objects.
Add tempest tests for patching
Change-Id: I7f31aa059601c0390c42b0f5bdf4091706f6660d
Mostly compatible, but required a different approach for the
versions resource. Should be able to revert when updating to
falcon 0.4
Change-Id: I41a5073748c9a8a3f5b92afdb416bb0294311911
Upgraded to Falcon 0.2
Converted from stevedore to simport
Converted from monasca to monasca_api
Removed events. Events api is in monasca-events-api
Removed references to elastic search
Removed support for message format translations
Removed unused and dead code
Removed author tags
Change-Id: I5034ea256372d22b9f824e301c379da81f82b4e2