Commit Graph

2338 Commits

Author SHA1 Message Date
Hasan Acar a24fd834d0 fix: migrate CI to jammy
fix: change tox.ini

fix: change queries for list_dimension_names and list_dimension_values because of influxdb time filter problem

fix: remove build_sphinx group from setup.cfg

fix: handle hashlib security problem

Change-Id: I0d31a8db5ed71c70e7b878ce5e7940e041d0fa43

Change-Id: I6f7066da10e834550cbf0c053c7bf425ac0ead93

Change-Id: If9575aee73d600bbc84fcdf58deb1c57b508d9c2

Change-Id: If515eaeee7539da3ca49997e88785dc65572b334
2024-02-22 14:35:03 +00:00
Dr. Jens Harbott 1421da749b Update invalid zuul syntax
Queues are now declared at the project level

https: //lists.openstack.org/pipermail/openstack-discuss/2021-November/025797.html
Change-Id: I6cfa0f392b10edf5e086b130606ba079a651c2a1
2023-06-01 17:57:49 +02:00
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
Zuul 738437fd3d Merge "Add Python3 zed unit tests" 2022-04-04 11:27:34 +00:00
Martin Chacon Piza 192e850d95 Enable again monasca-tempest-log-python3-influxdb check
Change-Id: I0dc0493074a9f3e4dc3020a66f03ea2251f2972c
2022-04-03 12:01:23 +02:00
Martin Chacon Piza 18ba158e5a Rename the deprecated argument tenant with project
Since oslo.context=4.0.0 Feb 3, 2022  the deprecated argument
tenant was removed [1]

- Remove temporarily monasca-tempest-log-python3-influxdb check
- Remove permanently monasca-tempest-python3-cassandra check

[1] f4cbe4c296

Change-Id: I38dc75df3e7a7575be37dbfa3714e694a19f35c4
2022-03-18 12:19:29 +01:00
OpenStack Release Bot 758da905b5 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: I86aba5d3de43dc21626a25f423c18868d99aa6b1
2022-03-10 17:06:34 +00:00
OpenStack Release Bot 8a1102e58b 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: Ib0f66447c43c413ea179030344750203dcf9cd20
2022-03-10 17:06:31 +00:00
Martin Chacon Piza 3d753db83b Fix zuul publish docker image job
Add tag to docker push command with specific branch name

Change-Id: I4f392442b857e67361a6bc5ae84d0c2db5f0e460
2022-02-02 20:11:40 +01: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
jayonlau 95747eec73 Clean up extra spaces
Although these errors are not important, they affect the code specification.

Change-Id: Iab8e8ce9e73722c78283323a2e350149e8713e78
2021-10-01 18:31:14 +00:00
Martin Chacon Piza a9f84a0263 Fix Vagrantfile
- Uncomment Ubuntu upgrade/update lines. On Sept. 30th 2021
ca-certificates DST Root CA X3 expired, until a new Bento box with
the update is released we need to update it.

- Purge simplejson before to stack Devstack, that library should
be handled by pip.

Change-Id: If23af3415be43bcb0b5b5de284c3b809c30de453
2021-10-01 16:26:59 +02:00
OpenStack Release Bot a5af839d72 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: Iaa9459934981bbff2f1e5cf1bc976c3087453482
2021-09-30 11:05:32 +00:00
Martin Chacon Piza 73e942cc2e Fix create_notification unittest and bump lower-constraints
- The method create_notification returns an uuid string, if it isn't
mocked the 'notification's id' will be:

<MagicMock name='NotificationsRepository().create_notification()'

which can't be dump to json later.

- Bump Mako to 1.0.7 in lower-constraints.txt
- Bump decorator to 4.1.0 in lower-constraints.txt

Change-Id: I1ba563fd3144241127efe1cedf8853603dcca008
2021-09-30 00:09:22 +02:00
OpenStack Release Bot a05ed4f5e6 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: I3e18b3a9c65cdad8f381db2c5305a63c558eaec1
2021-09-16 07:59:16 +00:00
Martin Chacon Piza 7466a2f962 Replace removed DB methods with current ones
Replace removed Binary with LargeBinary import
Remove reflect=True from Alembic MetaData
Replace removed idle_timeout with connection_recycle_time option

- Binary was removed in SQLAlchemy 1.4.x [1]
- SQLAlchemy was updated to 1.4.15 in u-c [2]
- idle_timeout was removed in oslo.db 10.0.0 [3]
- oslo.db was updated to 10.0.0 in u-c [4]
- idle_timeout was already deprecated and renamed as
  connection_recycle_time [5]

[1] https://github.com/sqlalchemy/sqlalchemy/issues/6263#issuecomment-819645247
[2] dc86260b28
[3] a857b83c9c
[4] f322cc13d8
[5] 6634218415

Change-Id: I13ec9c2b53174cfb2e3cb990ec773588cf68007c
2021-07-22 22:35:58 +02:00
yangyawei 3d43cbec0f setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I9f43416f6f1121b39518555ccaa2a4d5452fea91
2021-06-07 20:35:03 +00:00
Pierre Riteau 5b2af7db13 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.

Enable again the docker-build and docker-publish Zuul jobs.

[1] https://review.opendev.org/c/opendev/base-jobs/+/789098

Change-Id: Ic78169052517701b235e906852923388d93776e8
2021-06-07 13:12:36 +02:00
Martin Chacon Piza a6e56ab63c Add Support for Falcon 3.0.0, 3.0.1
- 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
2021-06-06 21:29:22 +02:00
Martin Chacon Piza ae5dffc94c [Doc] Update Freenode to OFTC as our IRC server
Change-Id: Iae33eec8f9c8b96332252e2fe48dee74fb8cf0a7
2021-06-01 13:25:05 +02:00
Zuul ef7d7d36d4 Merge "Fix log-metric configuration" 2021-04-06 12:33:33 +00:00
Adrian Czarnecki 1b5cd30298 Fix log-metric configuration
Fix incorrect if condition in log-metrics logstash configuration,
old if is no working with current version of logstash.

Change-Id: Ia43a5376b1e3074a70238056831797a21f41f269
2021-04-06 10:24:10 +00:00
Zuul 24609de443 Merge "Add Python3 xena unit tests" 2021-04-02 00:06:30 +00:00
Zuul 336e3afd5f Merge "Workaround for new pip 20.3 behavior" 2021-04-01 20:30:14 +00:00
OpenStack Release Bot 545c7a08a5 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: I6dd719aa67e20ad49c3540f8c36398379e15449e
2021-03-31 22:51:04 +00:00
OpenStack Release Bot 4f12b21454 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: Ifc65673a2645187ee0a8b61021716035aa769516
2021-03-31 22:50:22 +00:00
Martin Chacon Piza a93e1cc979 Workaround for new pip 20.3 behavior
This WA set specific pip version to avoid the issue:
"ERROR: Links are not allowed as constraints" [1]
A proper fix would be to adapt to new pip behavior.
Similar issue on Devstack [2][3]

[1] https://github.com/pypa/pip/issues/8210
[2] https://bugs.launchpad.net/devstack/+bug/1906322
[3] https://review.opendev.org/c/openstack/devstack/+/764803

Change-Id: I49d436b0cf1503b148a04f82e1ee41941ebd9d0a
2021-03-31 16:43:28 +00:00
Martin Chacon Piza 64d62a54f6 Fix warnings in documentation
This change defaults the warning-as-error to True:

  https://review.openstack.org/#/c/559348/

Which is causing our documentation jobs to fail locally and in the
gate/check queues.

This commit fixes both issues that are causing failures so that
we can get the doc jobs passing again.

Change-Id: I5dd71b6c69b975f8dd922aa3cab9d027f535f422
2021-03-31 18:16:46 +02: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
Adrian Czarnecki 90754d0b78 Fix zuul publish docker image job
Change-Id: I019c24c8466b09da4632eea7dc7793aac223e3b5
2021-01-19 13:10:10 +01:00
Hervé Beraud 9cb4a752c0 Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].

Removing specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: I582c7b1b8008e72f376a24a58ca1ee5ac4d933bb
2021-01-07 13:18:06 +01: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
likui 2d520d5099 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: Ic52698b4147d451e0b5ce25dbbf83083ccd69115
2020-12-04 12:49:00 +00:00
Martin Chacon Piza 041f295b6a Add Influxdb Python client v5.3.1 compatibility
- Add a checker of version using the method ping()
if it failes, maybe because of an old version,
the flow will try with SHOW DIAGNOSTICS.

- Keep the timestamp output to 3 decimal digits as
it is working currently, independently of the version
of Influx Python Client (v5.2.3 or v5.3.1).

- Remove the support for Influxdb (the database)
older than v0.11.0

- Unittests: Adding data to handle more than 3 decimal
digits in timestamp, updating the tests to use mocks
for Influxdb from_0.11.0, creating the mocks with
from_0.11.0 explicitly.

- This change fixes monasca-tempest-python3-influxdb
Zuul job.

Change-Id: I5f8e6d2f0b56813f54fe025f91996b9d6863eadc
Story: 2007624
Task: 39658
2020-12-02 22:03:16 +01:00
zhangchun 344c62671a bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.
Trivial change

Change-Id: I255addda0c344ad24335a709b2ab9ad6964b5c35
2020-11-02 10:39:31 +00:00
Zuul 39abe6cdc8 Merge "Add option to choose Kafka client in Docker" 2020-10-23 14:49:04 +00:00
Adrian Czarnecki 654d01c9c9 Update gevent version to 1.5.0
Change-Id: I6aca14f9862237691bd87cf135c50dc379e33bdb
2020-10-23 10:26:21 +00:00
Martin Chacon Piza ef433f084c Add option to choose Kafka client in Docker
- Add docker option to choose confluent-kafka or legacy kafka.
- Set confluent-kafka as default.

Change-Id: I5464f999ace16d9093e90e7ce7204406131bdf15
Story: 2006436
Task: 41145
2020-10-23 12:14:14 +02:00
OpenStack Release Bot 1491ed9a43 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: I0d77098119818d1bee64e138bd7dd0556484eae4
2020-10-13 17:25:03 +00:00
OpenStack Release Bot ef552c0375 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: Ib351f353652d487a47f8fe94de7853372e27dc99
Sem-Ver: feature
2020-10-13 16:44:08 +00:00
Martin Chacon Piza bbc9522bb5 Migrate DevStack plugin to Ubuntu Focal
We want to migrate to the latest Ubuntu LTS release 20.04 aka Focal.

Change-Id: Ie8f08a4b2124ff0d726b5faf3b2b4d89200e444e
Story: 2007865
Task: 40197
Depends-On: https://review.opendev.org/#/c/734700
2020-10-13 07:47:29 +00: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
kuangcx 721d5e8fb5 make the variable name more detailed
Change-Id: I67961eca692e4fe79fd74ba16f3cf25edb7ee3ea
2020-08-05 16:33:18 +08:00
Zuul 6eccc3f930 Merge "Set legacy_kafka_client_enabled = False on default" 2020-07-21 14:59:57 +00:00
Martin Chacon Piza 9d8ecbd2d9 Fix typo in http_check
This typo brakes the http_check metrics collection in devstack.

Change-Id: Ic6f7d79d944c21ea777038a6c43f71fc66ad588b
2020-07-20 14:07:47 +02:00
Witek Bedyk 3014c840d6 Set legacy_kafka_client_enabled = False on default
We change the default value of kafka.legacy_kafka_client_enabled from
True to False. The use of new Confluent Kafka client is recommended.

DevStack plugin does not set this option anymore.

Depends-On: https://review.opendev.org/740959
Depends-On: https://review.opendev.org/740966
Change-Id: I4d57b8893a6a131769009dc3299789d3fc89bab6
Story: 2007924
Task: 40338
2020-07-14 16:15:23 +02:00
Hervé Beraud 9b79bf633b Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I4c7cb63e0a816b361c2544b1be34d8a6dadeb5c0
2020-06-09 01:23:56 +02:00
Hervé Beraud 72bc9a91ab Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Ifd61bc8e043ac9af446ae31bffd82f67f34facbc
2020-06-02 20:24:41 +02:00
Zuul a88d34ac5c Merge "Remove redundant `install_nodejs` function" 2020-05-31 13:52:01 +00:00
Masayuki Igawa 53a7a70a5b 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: I40d5456471e4c4aec6b78bacc57f4211c6a3c176
2020-05-27 16:40:14 +00:00