* Update monasca-persister from branch 'master'
to 84f03c516a24b92aa92fba85afa7d543da21e900
- Fixing the gates
fix: sha256 instead of sha1 for metric_id
fix: allowlist added to .tox file
Change-Id: I0384f8e9cdae901df9403c442fce4cf1bf036968
* Update monasca-persister from branch 'master'
to 1ea4e21eb231e4fe193e62f1b03b957c9d4281c8
- 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: I710eec1feec922c6b5532dc754ab0fe3e90d3ff8
* Update monasca-persister from branch 'master'
to 9b1fa9a4e9a47967649f47994edc50d60d9f3876
- Merge "Add Python3 zed unit tests"
- Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: Ic3f81bbdbc6fd5d8c3d3fb4ba04427946f7db5da
* Update monasca-persister from branch 'master'
to 87938f738eafb12c56ce5211e59b3c1b19362fb7
- Add SSL support for InfluxDB connection.
Added ssl and verify_ssl options to influxdb config
Task: 44888
Story: 2009950
Change-Id: Icfe06233a178a5383441db6d87d46b93b6a63757
* Update monasca-persister from branch 'master'
to 1e67714731e9576f5b501de3b270a2720b6bb2dd
- Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.
Sem-Ver: feature
Change-Id: I4eecc65645e64053b0988922c121d2cde76bf241
* Update monasca-persister from branch 'master'
to 49e654a3c914122d352c276aea888ce160786e31
- Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I9cd5ae0f91d6a53bfdbd8b2ec50e43a4e208b793
* Update monasca-persister from branch 'master'
to 397c093919f578788a795e8c9fbf110e60c92372
- Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.
Sem-Ver: feature
Change-Id: I0c296b06bf46422d47531c8972a692582a8ccc36
* Update monasca-persister from branch 'master'
to cbc65411fee3b229c8c6d90eed83a1ca3ba090b7
- Merge "Fix Docker build"
- Fix Docker build
The default nodeset was just changed to focal [1], which in the absence
of the python-is-python3 package doesn't provide a python binary.
[1] https://review.opendev.org/c/opendev/base-jobs/+/789098
Change-Id: I2b208db2b7b34da034071a4fc0c5d49768b6dad3
* Update monasca-persister from branch 'master'
to 72c0b6911e40e84f21120e32e589965df11dcaa5
- Fix zuul publish docker image job
Add tag to docker push command with specific branch name
Change-Id: Ib33a54537f9394aea77f3cdaf135183f0dacdca3
* Update monasca-persister from branch 'master'
to dc589ae7a2524a966051f0aa1af54387bf2a258c
- Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I25c7c74514d863181844c2a4c24e3c333c07fa53
* Update monasca-persister from branch 'master'
to 5d256226da9a5ae58f0b33be4428b63bd269f3f6
- Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.
Sem-Ver: feature
Change-Id: Ib38bb5625953354bd0afe4ab5fea0ce94a69dce4
* Update monasca-persister from branch 'master'
- bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.
Trivial change
Change-Id: I68aa81c83f3702d50eff6d2ad46d11b194ddca52
* Update monasca-persister from branch 'master'
- Set legacy_kafka_client_enabled = False on default for Docker
We change the default value of kafka.legacy_kafka_client_enabled from
True to False. The use of new Confluent Kafka client is recommended.
Change-Id: I9c685dc3cfa4c6795c441ea37f86af9ad7451ee2
Story: 2006436
Task: 41151
* Update monasca-persister from branch 'master'
- Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I490da1b207e3bb212039953598ccc25caccbaaa3
* Update monasca-persister from branch 'master'
- Merge "Update master for stable/victoria"
- Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.
Change-Id: Ia49d466231fc0a56ccd4eed5a95bb749936e9950
Sem-Ver: feature
* Update monasca-persister from branch 'master'
- Limit legacy jobs to stable branches
monasca-persister Java implementation has been deprecated. We stop
building and publishing Java binary with Ussuri and do it only on stable
branches.
Change-Id: Icfeb442639154122eafa635417091d5de29c8e3e
* Update monasca-persister from branch 'master'
- [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 pyflakes to 2.1.1 as min version to run pep8 jobs
on py3.8 which is default python vesion in ubuntu focal.
Bump cassandra-driver to 3.21.0 in lower-constraints.txt
since it is the min version with py3.8 support [2]
Bump kazoo to 2.8.0 in lower-constraints.txt
since it is the min version with py3.8 support [3]
Story: #2007865
Task: #40197
[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html
[2] https://pypi.org/project/cassandra-driver/3.21.0/
[3] 6b6ffe62a0
Change-Id: I3a465aa0b26dd72432696d2dd19c955eb3e974e5
* Update monasca-persister from branch 'master'
- Merge "Add Python3 victoria unit tests"
- Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I8d7c38620eb3b0813e73874422f22ac69b7efe83
* Update monasca-persister from branch 'master'
- Merge "Remove unnecessary test to bring compatibility with py38"
- Remove unnecessary test to bring compatibility with py38
Change-Id: If58a9a60a6428ad362789f354f8f4a750210b9a8
* Update monasca-persister from branch 'master'
- Set legacy_kafka_client_enabled = False on default
We change the default value of kafka_common.legacy_kafka_client_enabled
from True to False. The use of new Confluent Kafka client is
recommended.
Change-Id: I300958e1e945e5236b01f4e50cb01c18468cc524
Story: 2007924
Task: 40340
* Update monasca-persister from branch 'master'
- drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.
These changes will help us to drop `mock` from openstack/requirements
Change-Id: I52c45e07c20de8f8abe439675e5fa5256d0d375e
* Update monasca-persister from branch 'master'
- Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems
Update Sphinx version as well.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: I002235658290ffd494f4507dc0a6c78f94794b19
* Update monasca-persister from branch 'master'
- Merge "Remove .testr.conf"
- Remove .testr.conf
This commit removes .testr.conf since this repo already has
.stestr.conf. We just need .stestr.conf instead of .testr.conf.
Change-Id: Ib084dbbb4c06f57e1eb15748e992e09444cec63b
* Update monasca-persister from branch 'master'
- Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.
Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.
To avoid similar gate break in future, we need to bump the hacking min
version.
- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
Change-Id: Ie2b4f889d814431246b1049381ab57bcdf5284c1
* Update monasca-persister from branch 'master'
- Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.
Change-Id: I7eb05c908ab664e53b3074a3d405bc8aabcbaec8
Sem-Ver: feature
* Update monasca-persister from branch 'master'
- Merge "Update hacking for Python3"
- Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Remove hacking and friends from lower-constraints, it's not needed
there.
Change-Id: Iadf750a1e6d3181b645ceccdf75cf910bc23adfd
* Update monasca-persister from branch 'master'
- Merge "Cleanup py27 support"
- Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg:
* Wheel is not needed for python 3 only repo
* Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore
Change-Id: I95fb0ca759471f7ad7189a7d54c1dac2cc018fc4
* Update monasca-persister from branch 'master'
- Migrate from ujson to simplejson
The change updates the imports to use simplejson library and fixes three
unit tests. In particular TestUtils.test_parse_alarm_state_hist_message
has been slightly changed to make testing more robust.
Also, Python 2 specific implemetation has been removed from
influxdb.line_utils .
Additionally, standard library unittest.mock is used instead of the
third party mock lib.
Depends-On: https://review.opendev.org/718014
Depends-On: https://review.opendev.org/720188
Change-Id: I64b1a60e8be929c25c005a0f429b1274cb8570e6
Story: 2007549
Task: 39390
* Update monasca-persister from branch 'master'
- Fix constraints and requirements to fix failing tests
Commit contains cassandra-driver version upgrade due to
older version lacking some components used in monasca-persister
Change-Id: I6d6f5dbf6533f820c954bc910a1de64803c11a2f
* Update monasca-persister from branch 'master'
- Merge "Add configuration option influxdb.batch_size"
- Add configuration option influxdb.batch_size
The new configuration option is used to control the maximum size of
batches written to InfluxDB and optimizes performance for high loads.
The default value is set to 10 000 data points per batch.
Change-Id: I82c3e4e64984a996e41fe2657ce36b032b40d3fd
Story: 2007191
Task: 38319
* Update monasca-persister from branch 'master'
- Merge "Fix batch_size configuration option in Docker"
- Fix batch_size configuration option in Docker
The configuration option name for Kafka batch size (max. number of
messages before commiting them to Kafka broker) has been changed in
Queens release. The option passed to Docker image must reflect that.
Change-Id: Ib720c4d0358a5e67734fbc38d9a7d513e662d65f
Story: 2007225
Task: 38492
* Update monasca-persister from branch 'master'
- Merge "Support default_retention_hours for influxdb"
- Support default_retention_hours for influxdb
At the moment, all data is retained infinitely. This change allows users
to specify a default_retention_hours (defaults to 0 meaning unlimited
retention) in the influxdb section of monasca persister configuration so
that new projects are automatically assigned this retention policy when
the given hour is greater than 0 to preserve original behaviour.
Story: 2006331
Task: 37234
Change-Id: I4136df1d43954eb026a104f3f85b3a58197f5435
* Update monasca-persister from branch 'master'
- Merge "Support automatic db creation for InfluxDB"
- Support automatic db creation for InfluxDB
At the moment, monasca persister assumes that an InfluxDB database
already exists. With this change, a new database is created when it does
not exist.
Story: 2006331
Task: 37327
Change-Id: I3d88eb8b2cdbd81f9c84fe1703b2ee2d1b09e1ab
* Update monasca-persister from branch 'master'
- Merge "Move data_points to repository class"
- Move data_points to repository class
data_points_class can be now declared as a List or a Dictionary. The
latter is used when writing measurements per tenant. This refactoring
avoids creating the dictionary and then chaining again its values in
case of ElasticSearch and Cassandra databases or if db_per_tenant option
is disabled. The change also fixes the events pipeline.
Change-Id: I25ea80eea714acb167e70f188ed229cc90531596
Story: 2006331
Task: 37211
* Update monasca-persister from branch 'master'
- Merge "Support multiple kafka consumers"
- Support multiple kafka consumers
We ues two monasca-persister components and two influxdb nodes.one
for collecting metrics and another for backup db.so kafka consumer
should hava different groupid option.
Change-Id: Iae25b34ea282fcc3e7cf01147fd3e9093ee9a8a0
* Update monasca-persister from branch 'master'
- Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.
Change-Id: I56c61bfda9fa68c6068ec008f81a8d04f28b2bbb