Commit Graph

374 Commits

Author SHA1 Message Date
Hasan Acar 13121a1059 Making the gates happy
fix: allowlist_externals added to tox

fix: upgrading gevent

fix: pep8 issue fixed for slack_notifier

fix: change env list

Change-Id: Iefc7fdc89a398623aa3515c89240b53a49c10282
2024-03-06 13:42:44 +00:00
Martin Chacon Piza 5225304a26 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: Idc88314ead611a6bea4dba9115b0aed9e551bb87
2022-05-02 15:33:52 +02:00
OpenStack Release Bot d4656c17d3 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: I3ed077b85e19b837e4de55df870249a03aa38023
2022-03-10 17:14:49 +00:00
OpenStack Release Bot 8ad82d1827 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: I4a76fdb8f39f3f165412cfb470c39ddb0892230a
2022-03-10 17:14:45 +00:00
OpenStack Release Bot 975f46d226 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: I8c918667725bbce039708541e234f290b577cad6
2021-09-16 08:03:12 +00:00
OpenStack Release Bot 405efc6ebf 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: I142bbbc223007f46c63508406059373f706c7a6a
2021-09-16 08:03:10 +00:00
Martin Chacon Piza fa2454a3c9 Fix Grafana URL in email notification
- Remove prefix 'dim_' from dimensions in Drilldown Dashboard
- Same was done for Monasca-UI [1]

[1] https://review.opendev.org/c/openstack/monasca-ui/+/782599

Change-Id: I69e3e7db54b995e45810532a1dd940ac8b68921f
2021-06-18 11:06:08 +02:00
OpenStack Release Bot 54f66e9b75 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: Ib808975d3bb51989154a9f9935497e73f0e63821
2021-03-26 11:11:22 +00:00
OpenStack Release Bot ff1872d161 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: I795ff12d3e450b7d39f4cb4f6e577df717b7f80f
2021-03-26 11:11:06 +00:00
Adrian Czarnecki 5104c9ebac Fix zuul publish docker image job
Add tag to docker push command with specific branch name

Change-Id: I9c408f2198a017391decba04008f2d3bfec6525e
2021-02-24 12:03:34 +00:00
Martin Chacon Piza 35a9b57f91 Update hacking for Python3
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.

Align lower-constraints for new pip [1]

Fix flake8 E305 and E117 and set W504 as ignored

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

Change-Id: Idae87291f4556eee77d40ab49f0d151435d70875
2021-02-23 17:20:15 +01:00
Zuul d3a6a068f0 Merge "Remove six" 2020-12-04 15:47:34 +00:00
wangzihao 3b91b33784 Remove six
Remove all six usage.

Change-Id: Ib2f0f6cf3b7f5d9ec20440fb81b09c1c083c67b0
Story: 2008305
Task: 41295
2020-11-20 09:35:23 +00:00
wangzihao ca325683da Add py38 in setup metadata
Change-Id: I6daeb23b9a057dede17a1756fa70cf89c7a57123
2020-11-20 17:24:46 +08:00
Zuul ecf73d92c8 Merge "Fixed docker configuration template" 2020-11-11 13:35:17 +00:00
Michal Piotrowski c34f3ef74b Fixed docker configuration template
- Added logging configuration
- Added env variables for puglins configuration
- Added env variables for Statsd configuration
- Removing Hipchat. This service doesn't exist anymore
- Removing deprecated ALARM_PROCESSORS env var

Change-Id: Ia35c7da1c306cdd1c14d787f1c54504d6df49080
Story: 2003180
Task: 39090
2020-11-11 13:00:32 +01:00
zhangchun 1b2ee4e5b6 bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.
Trivial change

Change-Id: I6154d143e0cd0616ba27b6ae8b35fbbf88a70e4a
2020-11-02 10:42:27 +00:00
Martin Chacon Piza 13110e6c24 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: Ia2bbfa084a91beabaec3e75fec19dd5a57e27f2b
Story: 2006436
Task: 41152
2020-10-23 15:24:40 +02:00
Zuul 1f7575317a Merge "Set Docker publish jobs" 2020-10-14 13:52:47 +00:00
Martin Chacon Piza 31da305881 Set Docker publish jobs
- Set as voting:
build-monasca-docker-image

- Bringing back the Docker publish jobs which were temporarily
disabled [1]

[1] db01fe425b

Change-Id: I6892059b122cd5ec84edd41fc55a6aa2ea6267a9
2020-10-14 14:10:04 +02:00
OpenStack Release Bot a48529e7d2 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: I9be0ebc0666f841abf676f4a85f37462b5a03e40
2020-10-14 07:39:08 +00:00
OpenStack Release Bot 6184cb101c 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: I0cc7070c971a15873e008a2c6937ce5ac6d24ffa
Sem-Ver: feature
2020-10-14 07:16:05 +00:00
Michal Piotrowski e8c1e33c16 Remove deprecated YAML config
Change-Id: I3ea571c668b45fa0c8d874e0ea8ac355a98e072a
Story: 2003180
Task: 39090
2020-09-30 09:10:27 +00:00
Martin Chacon Piza 44fe8f1c39 [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 netaddr to 0.7.20 in lower-constraints.txt
since it is the min version with py3.8 support [2]

Bump psycopg2 to 2.8.4 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] cc2a9bb31f
[3] https://pypi.org/project/psycopg2/2.8.4/

Change-Id: I736f141b53d5fb985e5deaa5d77c552ebad6fccd
2020-09-29 15:10:52 -05:00
Witek Bedyk f9978670b8 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.

Change-Id: Ie6a15474ebc1f04b8555ee44d413c19ee26a9227
Story: 2007924
Task: 40339
2020-07-14 15:37:42 +02:00
Hervé Beraud 7faa2184cd 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: Ib7c9cca06dcfe14440ab9711cc0b76a5b4fe4e1c
2020-06-09 01:25:09 +02:00
Hervé Beraud a49af326e5 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: I2f6071f18c20ee5fb08c977f615ebd82a40715e4
2020-06-02 20:25:19 +02:00
Andreas Jaeger 80aa69fb76 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.

Disable openstackdocs_auto_name to use 'project' variable as name.

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: Ib09fb7435a88f15147befd4448279d5b82bd3fcc
2020-05-31 19:46:42 +02:00
Zuul 717de4409c Merge "Add Python3 victoria unit tests" 2020-05-28 13:02:48 +00:00
Masayuki Igawa 53e17eff4e 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: Ifb722ab5e744b645d85f6adf3ed471694c115e07
2020-05-27 16:43:03 +00:00
Martin Chacon Piza f519f2d67e Fix and unify cover environment
Fix cover environment and unify it accordingly to Project Testing
Interface [1].

[1] https://governance.openstack.org/tc/reference/pti/python.html#coverage-jobs

Change-Id: I24335128cb3566e4104ddc6dad9a53f1a5ec249b
2020-05-27 18:30:03 +02:00
Witek Bedyk a5b0cbe021 Remove ujson from lower-constraints
Change-Id: Ia1c223e51c9f82b8b83ebd187b6672296f8e6105
Story: 2007549
Task: 39859
2020-05-26 17:39:09 +02:00
Witek Bedyk f0e2d44759 Add CONTRIBUTING.rst
Change-Id: I578e78d36efc58c3915950b9d154e0e99d2b2430
2020-05-19 16:24:04 +02:00
OpenStack Release Bot fe470f9346 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: I6a54b81d9b31abfa4fab0b6ab0d785219766de7f
2020-04-24 18:19:29 +00:00
OpenStack Release Bot ded110d65d 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: I99097f959d314f4a7867463d41a9c5a8817fd06b
Sem-Ver: feature
2020-04-24 18:19:27 +00:00
Doug Szumski 0b5b77c974 Remove deprecated YAML config
This was marked for removal after the Pike release.

Updating Docker file is leftover and will done in a separate change.

Story: 2003180
Task: 23326
Change-Id: I583eab7b3ea2efd5d9bcd3ef433e68b49684e343
2020-04-23 18:53:27 +02:00
Sean McGinnis db7377f476 Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I380f25044c8f7b496d485aabf09215468f955818
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-23 10:29:22 +00:00
Zuul 74db147dc7 Merge "Cleanup py27 support" 2020-04-22 00:07:07 +00:00
Witek Bedyk db01fe425b Migrate from ujson to simplejson
Additionally, temporarily set build-monasca-docker-image as non-voting
due to problems with buggy confluent-kafka 1.4.0 release, which prevents
building the Docker image.

Change-Id: I561ea633a09eb3d7468d2d55aa46d6fb3b2380ff
Story: 2007549
Task: 39390
2020-04-18 10:42:39 +02:00
Andreas Jaeger 7b6b0535b0 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
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: Ic79312278978ecb5d93386fa9f4261be037611ed
2020-04-05 09:57:16 +02:00
Witek Bedyk 76f86ec612 Declare cli.yaml_config option as not required
YAML configuration support has been deprecated and will be removed. We
don't need this option for starting the service.

Depends-On: https://review.opendev.org/709389
Change-Id: I6d473d54a97abfb91e73c0e47cd7536639bb14e2
Story: 2007318
Task: 38827
2020-02-24 09:57:44 +00:00
Zuul 753b16903a Merge "Allow users to set periodic notifications on all notification types" 2019-12-12 16:03:28 +00:00
Zuul 794c8c997a Merge "Fix periodic notifications for webhooks" 2019-12-12 16:02:19 +00:00
Doug Szumski 044b9c7d11 Allow users to set periodic notifications on all notification types
In some cases, users may want to send periodic notifications for
notification types other than webhooks.

Story: 2006837
Task: 37412
Change-Id: Icd1b12f4b1e452f8285b8402f49815dd7f72b1ea
2019-12-11 11:13:25 +00:00
Doug Szumski efc6e28edc Fix periodic notifications for webhooks
- Removes the hard-coded magic number of 60 seconds allowing users to
  choose the period that they require.
- Standardise on strings for DictOpt dict keys. When loaded from a config
  file, the DictOpt keys are parsed as strings, which was conflicting with
  the default integer dict keys. This caused the periodic engine to silently
  fail to load when configured via a config file.
- Remove unused variable

Story: 2006783
Task: 37313
Change-Id: Ibd61c45fc1ade37022150d34a5b00c56fdf69814
2019-12-11 11:13:17 +00:00
Ghanshyam Mann fc8c53f221 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

monasca-notification is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: Ic69f559bc0bcd791fa33a978cd27cf1de10dba2d
2019-11-16 16:58:11 +00:00
pengyuesheng f062546cba Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: Id834a962ea869aa0d60295fbb6d45e0895400e96
2019-10-25 09:38:24 +08:00
pengyuesheng 88dbdcfb9e Switch to Ussuri jobs
Change-Id: I6eaa89d62dfc5580c32bc36aedae4a5a9ba84583
2019-10-23 16:07:45 +08:00
Zuul bebba76e4c Merge "Bump the openstackdocstheme extension to 1.20" 2019-10-22 10:41:15 +00:00
Ghanshyam Mann 484073ee9c Fix the IPv6 address and port parsing
There can be lot of possibility for IPv6 address with port,
for example [::1]:80 or [2001:db8:85a3::8a2e:370]:7334.

Parsing that in more standard way is provided by oslo_uilts.netutils
parse_host_port() method[1].

Story: #2006309
Task: #36030

[1] 1b8bafb391/oslo_utils/netutils.py (L37)

Change-Id: Ie7a3bd3074c02430c754deaebfde6d174563b31e
2019-10-18 14:00:41 +02:00