Commit Graph

96 Commits

Author SHA1 Message Date
Ghanshyam Mann 658c68b593 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: Ibd8664001aa3960f3994340cfd31683d8514a280
2022-04-30 19:22:11 -05:00
Adrian Czarnecki 0b63819ff1 Fix problem with pyparsing.operatorPrecedence method
Pyparsing library was recently updated in golab requiremnts [1].
Since version 3.0.0 operatorPrecedence method was renamed to infixNotation [2].

[1]62f92c0187
[2]16b766b97c/CHANGES (L598)

Change-Id: I3bfefe5b9bc601f383e0b9d80046de387e420fd8
2021-12-15 15:28:26 -08:00
Ghanshyam Mann dea6f95c15 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Ibfb162f88cb04c0b2af3fbf41cfcd96bc7e351be
2021-02-02 14:36:06 +00:00
Martin Chacon Piza ceac157b62 Align lower-constraints for new pip
Bump a series of lower-constraints and requirements to work with new pip
resolver, testing with steps outlined at [1]

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019285.html

Change-Id: I002d936941e4784566d83173d55023dfd5fba282
2020-12-09 13:41:47 +01:00
Martin Chacon Piza 43922f8223 [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

-Bump the lower constraints for required deps which added python3.8 support
in their later version.

-Changing the way to install and configure Zookeeper.
Installing Zookeeper from official Apache's tarball.
Adding the possiblity to set the specific Zookeeper version.
Minor change in zookeeper logger.

-Use mariadb JDBC for monasca-thresh in devstack, since Drizzle isn't
compatible with MySql Server v8.0.x which is default in Focal

-Python 3.8 doesn't seem to like dictionary keys changing during
iteration.

Fixing RuntimeError: dictionary keys changed during iteration.

Tech. details:
It runs well in py27: 5 iterations
It runs risky in py37: 7 iterations
It is forbbiden in py38: raised RuntimeError
Fixed with list(dic.items()) or tuple(dic.items())

dic = {'1': 'a', '2': 'b', '3': 'c', '4': 'd', '5': 'e'}
for key, value in dic.items():
    print("Key: {0} Value: {1}".format(key,value))
    del dic[key]
    print(dic)
    dic[key] = value
print(dic)

Story: #2007865
Task: #40197
Depends-On: https://review.opendev.org/756859
Change-Id: Ieb4cf38038ffb4d1a152f8ab3b64a14098c7cbb3
2020-10-12 15:38:05 +02:00
Martin Chacon Piza 0b7dc58296 Migrate from ujson to simplejson
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
2020-04-18 10:28:24 +02:00
Adrian Czarnecki d2379a018e Merge log-api and api
*Merge monasca-log-api into merge-api
*Enable logs endpoints
*Add configuration that allow to enable/disable metrics and logs part
*Remove redundant log-api source code

Story: 2003881
Task: 30533
Change-Id: Iaa5689694e7081f3375f1a2235cad31d6a7b5f76
2019-09-26 12:02:20 +02:00
Witek Bedyk 47c5ad37d5 Use Confluent Kafka client
The change introduces the possibility to run the API with the new
confluent-kafka client. It has to be enabled in the configuration file.

Story: 2003705
Task: 35859

Depends-On: https://review.opendev.org/680653
Change-Id: Id513e01c60ea584548c954a8d2e61b9510eee8de
2019-09-24 09:41:17 +00:00
whoami-rajat 848f994b77 Blacklist eventlet 0.23.0, 0.25.0
Kombu 4.6.4 causes issues with eventlet 0.23.0 and 0.25.0[1].
Due to an upper-constraint version bump, we're seeing failures
on openstack gate.
This patch fixes the issue.

[1] https://review.opendev.org/#/c/678078

Change-Id: Ibec126bba7991f22611b476449e760d4faf5b8e8
2019-09-12 09:09:55 +00:00
Doug Szumski a9cc4bb482 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

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
2019-05-29 16:10:53 +02:00
Joseph Davis 22be5aa57f Add "monasca-status upgrade check" for pre-upgrade
Add a tool to run before upgrading a Monasca installation
that will check for potential issues and report on readiness to upgrade.

For Monasca, this initial version effectively does nothing, but gives a
framework for future checks to be included.

This is a community-wide story for Stein [1].

Story: 2003657
Task: 26142

[1] https://governance.openstack.org/tc/goals/stein/upgrade-checkers.html

Change-Id: I799602caa4029d67f59307bf1ca0d1e8f254d415
2018-11-12 11:24:21 -08:00
Amir Mofakhar 3ca4b057dd Using oslo.policy for monasca-api
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>
2018-06-05 12:25:07 +00:00
Doug Hellmann 5cc61ba459 uncap eventlet
We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.

Additionally:
* add funcsigs to lower-constraints.txt
* set lower-constraint for sphinx=1.6.2

Change-Id: Ia9d795125a00d4bbe6d52738f0d8dc286ed4c676
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-12 18:33:28 +02:00
OpenStack Proposal Bot 1774f76658 Updated from global requirements
Change-Id: I49c007c7855df6e2a7b5d49209b9e5d908d7312c
2018-03-14 05:37:49 +00:00
OpenStack Proposal Bot a6b545486c Updated from global requirements
Change-Id: Ia3cee5025848167427449902681564acd443fa62
2018-03-10 13:21:46 +00:00
OpenStack Proposal Bot 1f1cc2b35a Updated from global requirements
Change-Id: I814d919044536d3d15e6536cab3bcc683bda1199
2018-01-16 04:12:58 +00:00
OpenStack Proposal Bot c53bd5a375 Updated from global requirements
Change-Id: Ib6e74adc5da3d758f6a3a91c0e0425ea754a395d
2017-12-19 01:24:02 +00:00
OpenStack Proposal Bot 9644cca421 Updated from global requirements
Change-Id: I222e14d16efd618f6731cd3484fe3f14366e345f
2017-11-20 17:40:17 +00:00
OpenStack Proposal Bot 3ed6073b5c Updated from global requirements
Change-Id: I5b3204638c767c01400af477bc041474ac2f5b26
2017-10-19 04:14:26 +00:00
OpenStack Proposal Bot 88b87fa880 Updated from global requirements
Change-Id: I8b59765c10e4e87f68507799f39c08a7bfaa0062
2017-09-24 12:20:33 +00:00
OpenStack Proposal Bot e7e3ed4990 Updated from global requirements
Change-Id: I4c0a3f37ceea460cdc99fd5fd0317735a40273e8
2017-09-20 08:38:54 +00:00
OpenStack Proposal Bot d2e653d7ec Updated from global requirements
Change-Id: Id2b5640cf7b385e844e3a8bb25d0c9ab0548b393
2017-08-24 05:51:59 +00:00
OpenStack Proposal Bot e44001a314 Updated from global requirements
Change-Id: Ic974cf36bc4c43df5a7fbc2271f7de64b4bffa35
2017-07-18 01:48:37 +00:00
OpenStack Proposal Bot cc5b31059e Updated from global requirements
Change-Id: I652f0242a9615ab314e7a7555695a89de78553e5
2017-07-13 13:02:17 +00:00
OpenStack Proposal Bot e6f66554eb Updated from global requirements
Change-Id: Ic2b70b3d877c8a7c32550a21052d51260505cdfb
2017-06-22 00:14:13 +00:00
OpenStack Proposal Bot d775eab603 Updated from global requirements
Change-Id: Iaaa28467e12b2625362cb2db6ff6a3b3681b3fd7
2017-06-15 16:25:58 +00:00
OpenStack Proposal Bot e60c35f3f1 Updated from global requirements
Change-Id: Ib28d9fa1a2bf8b49497907cf6c9ed039a4eafb37
2017-06-13 10:35:41 +00:00
OpenStack Proposal Bot 9a0789f00b Updated from global requirements
Change-Id: If5c59da400cf2bbded4491f1859f1c1d3deca8b9
2017-06-02 02:28:24 +00:00
OpenStack Proposal Bot ba45a64d7b Updated from global requirements
Change-Id: Id3a9b383326f83b776458f1fde6f40c15c12eb9e
2017-05-30 04:44:04 +00:00
Tomasz Trębski ed8238dfdc Use monasca-common json processing
Following replaces usage of standard
json with monasca-common rest layer.

Depends-On: I186abe4cdafd58d998f8aaf36d866795771a9e0a
Change-Id: I2f9d22a2c5e18826c8f9bb1e817ad963731b390f
2017-05-09 11:09:42 +02:00
OpenStack Proposal Bot 2ee1d6b45a Updated from global requirements
Change-Id: Ic8c8fde65cf8252552f7d1c7eecadf7b3f343464
2017-04-13 16:23:51 +00:00
OpenStack Proposal Bot 6faf403d74 Updated from global requirements
Change-Id: I63ae000473bf1751ceaa8f597f7ec999916be149
2017-04-10 23:10:58 +00:00
OpenStack Proposal Bot b2690c96d0 Updated from global requirements
Change-Id: I4c26585bce403802dae3e7902c1e867bcf4185d3
2017-04-03 08:10:24 +02:00
OpenStack Proposal Bot f262337d05 Updated from global requirements
Change-Id: If66a9887abe5435f5426a98f612a640d92514b8d
2017-03-15 12:44:52 +00:00
OpenStack Proposal Bot a89a4aae04 Updated from global requirements
Change-Id: I1f5eb5b0428a91d781d1f82aa3af6e1bf74ef71b
2017-03-13 19:33:55 +00:00
OpenStack Proposal Bot 6e7176dc67 Updated from global requirements
Change-Id: If3ce867d7bbbb3ccc8c0de59495a1caf9c835761
2017-03-12 17:37:49 +00:00
liyingjun f379d71fcb Use oslo.db for sqla driver
Use create_engine in oslo.db instead of the sqlalchemy one to get
the optimization benefit from oslo.db.

Breaking change would be replacing database.url with
database.connection therefore database.url will be still
supported until Pike is released. database.url
has been marked as deprecated option.

Change-Id: Id3cdafa791a7d2558a5b065022a9afc6ff31e004
Closes-bug: #1640419
2017-03-08 10:08:42 +01:00
OpenStack Proposal Bot 6dcfebc82e Updated from global requirements
Change-Id: I95d847609a5303213b670a14e1c02fdeea9dc3bb
2017-03-02 11:47:00 +00:00
OpenStack Proposal Bot d54a4738bc Updated from global requirements
Change-Id: Ifd7ff63e5437796e9ff2483c2323e02a916e61fe
2017-03-01 04:09:01 +00:00
OpenStack Proposal Bot 2f2deb08b3 Updated from global requirements
Change-Id: Ifa6cace3cf65fddff72407cb8102bc257e85330d
2017-02-27 05:04:40 +00:00
Jenkins 984e0ab877 Merge "Use them same versions of Influx or Cassandra" 2017-02-24 13:20:19 +00:00
Yushiro FURUKAWA a4fe9f86c5 Use them same versions of Influx or Cassandra
Versions of Influx or Cassandra between tox and devstack
env were different. Now in both places OpenStack requirements
are used.

Additionally:
- moved Influx and Cassandra to test-requirements.

Change-Id: I5be1be023b605a0b7efe718796877b90f9dc06f0
Related-Bug: #1628719
2017-02-16 06:15:16 +00:00
OpenStack Proposal Bot f64c3dc887 Updated from global requirements
Change-Id: Ia50f3fb943e0d3864eb61679bebebca3941a5148
2017-02-16 01:21:24 +00:00
OpenStack Proposal Bot 7ada9634ce Updated from global requirements
Change-Id: I8afee19f9f31594f470ea4e352e0a5babb7d851f
2017-01-26 07:57:26 +00:00
Jenkins ca5e57d5db Merge "Remove references to kafka-python" 2017-01-26 07:36:44 +00:00
OpenStack Proposal Bot 1038779d39 Updated from global requirements
Change-Id: I8d3338507c3957ca25a87182d8a87ae5b43191c4
2017-01-25 20:22:50 +00:00
Joe Keen 901cbd040a Remove references to kafka-python
Because kafka-python is now forked and embedded in monasca-common monasca-api
needs to use those interfaces instead of using kafka-python directly.

Change-Id: I3b30721c46af3e472947cf8d776604b33c82aa8a
2017-01-24 19:15:36 -07:00
OpenStack Proposal Bot 351d3b1364 Updated from global requirements
Change-Id: I692e680d14774ac52528ec0fd9f185f8a4620494
2017-01-11 00:18:34 +00:00
Jenkins b23949f442 Merge "Integration with oslo.context" 2017-01-09 10:37:13 +00:00
Tomasz Trębski 044f389848 Integration with oslo.context
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
2017-01-09 05:35:58 +00:00