Commit Graph

633 Commits

Author SHA1 Message Date
Zuul 2f0f0ff4b1 Merge "Add quorum support for service" 2023-11-14 20:30:42 +00:00
Dmitriy Rabotyagov 435a69ed31 Add quorum support for service
This change implements and enables by default quorum support
for rabbitmq as well as providing default variables to globally tune
it's behaviour.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/896017
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_keystone/+/900631
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_swift/+/900632

Change-Id: I3292a388766654b1a10434ee8ba060e28607e707
2023-11-13 12:14:57 +00:00
Danila Balagansky f9de8b2b78 Enable Ceilometer resource cache
This change should significantly reduce load on Gnocchi due to caching
`resource` objects in Memcached.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/896017
Change-Id: I72a0b1728e6f6e761bf75e7d57675434230475d4
2023-10-25 10:34:14 +00:00
Dmitriy Rabotyagov d632cee836 Fix example playbook linters
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/896017
Change-Id: If51b558b393e2f3a9c622bbd3afcb5d3036ec304
2023-10-25 10:34:02 +00:00
Zuul 6bbeac2fed Merge "Fix linters and metadata" 2023-08-22 22:49:33 +00:00
Dmitriy Rabotyagov 66e9c65f18 Define constraints file for docs and renos
Right now we are not using any constraints for docs and releasenotes builds.
This has resulted in docs job failures once Sphinx 7.2.0 has been released.

The patch will ensure that constraints are used an we should not face
simmilar issue again.

TOX_CONSTRAINTS_FILE is updated by Release bot once new branch is created,
so it should always track relevant constraints.

Some extra syntax-related changes can apply, since patch is being passed
through ConfigParser, that does not preserve comments and align indenting.


Change-Id: I946664b8171ac2178562de347ea10477708f6809
2023-08-17 16:32:09 +02:00
Dmitriy Rabotyagov 17fc5d6465 Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Depends-On: https://review.opendev.org/c/openstack/ansible-role-systemd_service/+/888223
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/888517
Change-Id: I32efef68c8ade24fb164f2cfcecd8e7147bf5f0e
2023-07-14 05:42:23 +00:00
Dmitriy Rabotyagov bfca55e20d Fix logic of defining polling_namespaces
Previous logic did excluded possibility for ceilometer-polling agent
to poll multiple namespaces at the same time. This resulted
in a wrong config for AIO metal scenario.

Change-Id: I2ad3f748d18bf571dc7b82422fbcd8269cbe168e
Closes-Bug: #2018619
2023-05-05 21:22:41 +00:00
Dmitriy Rabotyagov a184e4d224 Ensure service is restarted on unit file changes
At the moment we don't restart services if systemd unit file is changed.

We knowingly prevent systemd_service role handlers to execute
by providing `state: started` as otherwise service will be restarted twice.
With that now  we ensure that role handlers will also listen for systemd
unit changes.

Change-Id: Ibb1b0159ca8267ce3ab6ffb1752ab10ddb4b8139
2023-04-10 15:49:06 +02:00
OpenStack Release Bot 8ffebf5848 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: I3877ba2c6189f130a520f85b45d844d4c618962d
2022-12-13 13:12:35 +00:00
Matthew Thode 19c0141676
remove loadbalancer from installed definitions
The example file was removed from ceilometer in
318c54648c2c85d4f4f5425c5ffc5e5f3dda86f2

Signed-off-by: Matthew Thode <mthode@mthode.org>
Change-Id: Ic23655e793aca9db344354ef95460858534c518c
2022-11-17 20:31:34 -06:00
JF Taltavull ced6900147 Fix wrong pathname in pre install task
/etc/cinder was used instead of /etc/ceilometer in the task
that removes config directory. So the config directory was
never removed.

Change-Id: Idb8555a98e412cde15a5a328a4a7471202aaf6c3
2022-09-22 14:27:56 +02:00
Erik Berg ef08afd798 Remove redundant vars line
This line snuck in with I64e3f78eff6bf084fa7ab54d88b667b8fb07c15e
probably to bring it in line with other OSA roles, but should already
be covered by the distribution_major_version line above.

Change-Id: Ib0633cb165ae1f8eee2955cea73837f5117b13d9
2022-09-15 10:51:38 +02:00
Dmitriy Rabotyagov ff76357c81 Switch sphinx language to en
With sphinx release of 5.0.0, they changed default for language variable
to 'en' from None. With that current None valuable is not valid and should
not be used.



Change-Id: I682938bd14db47a50c0cc12e288e5a095565e820
2022-05-30 15:49:20 +02:00
Marc Gariepy b5cff192cd Use global service variables
was missing from the previous patch

Change-Id: I8d3be7e2b3707699ea538b53b77e68519a4627f7
2022-05-05 15:28:55 -04:00
OpenStack Proposal Bot c097044fe9 Updated from OpenStack Ansible Tests
Change-Id: Ifd96498d93a44c596f76ad4faaaf13fcb42cac7d
2022-03-31 20:15:01 +00:00
Marc Gariepy 1d3c85d919 Cleanup setup.py config
Change-Id: I7c598b7e005579171b61e8b8b472a102b7be545f
2022-03-31 10:38:34 -04:00
Jonathan Rosser 0524ffc5dc Remove legacy pipeline cleanup task
Change-Id: I566019a0af35436c93d1b25494ed5e89aa081807
2022-02-02 04:07:40 -05:00
Jonathan Rosser ff47557775 Remove py2/py3 compatibility notes
We only support python3 now.

Change-Id: Ie71d28d67e10df4923f057484216cf9010f2fd6b
2022-02-02 04:07:36 -05:00
Zuul 042d577376 Merge "Use common service setup tasks from a collection rather than in-role" 2022-01-13 13:15:50 +00:00
Jonathan Rosser a7d7cd0184 Use common service setup tasks from a collection rather than in-role
Change-Id: Id23cddf14b94a8a6c04d90092e23d0cc322d026c
2022-01-12 17:38:44 +00:00
Jonathan Rosser e640259330 Refactor use of include_vars
Use a first_found lookup instead of a with_first_found loop so that
the 'paths' parameter can be used.

This ensures that only vars from the role are included, and not vars
from a parent calling role. This can happen when a parent role has
a higher priority vars file available for inclusion than the role
it calls.

Change-Id: I64e3f78eff6bf084fa7ab54d88b667b8fb07c15e
2022-01-12 08:39:27 +00:00
OpenStack Proposal Bot ff8d4a7a5e Updated from OpenStack Ansible Tests
Change-Id: I749919c10922bbc035db7abc65813deb8ff04ea4
2021-12-17 16:45:33 +00:00
OpenStack Proposal Bot 906488aed4 Updated from OpenStack Ansible Tests
Change-Id: Ia37371a9c77d7b2f6e46d8ad0ed663a0d13133bd
2021-12-04 17:39:40 +00:00
Dmitriy Rabotyagov 3a31674df6 Use config_template as a collection
Since we still use ceph-ansible that has their own implementation of
config_template module it's worth to use mentioned module as a collection
explicitly.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/819814



Change-Id: I9fd74b740de2ce0608c4c076c6fa961674bdbde7
2021-11-30 15:18:41 +02:00
Zuul c124098498 Merge "Updated from OpenStack Ansible Tests" 2021-11-22 16:54:34 +00:00
OpenStack Proposal Bot 0672c756f1 Updated from OpenStack Ansible Tests
Change-Id: I4e68ae297d3d534c42d1698e79f0b1658426afb3
2021-11-22 12:10:23 +00:00
Jonathan Rosser 5d31a466a0 Remove references to deprecated python-ceilometerclient
Change-Id: I6427723719b9eae7085fec67fa6d7de44032a526
2021-10-25 15:22:15 +00:00
Julien Francioli 65f22a2951 Fix wrong variable name in ceilometer.conf.j2 template.
ceilometer_rpc_ssl_ca_file was used instead of ceilometer_oslomsg_rpc_ssl_ca_file
in the RPC transport_url.

Change-Id: Iab9729ee65571a45b5e50bb6a593386b1e238944
2021-07-16 15:02:55 +00:00
likui 4a2c1ad75f Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: Ic96eddf78ff77a249f4afeeca28eec46dbfdb4e9
2021-07-03 21:14:35 +08:00
Jonathan Rosser f9ed9485cc Fix u-c filter regex
Change-Id: Ib941e051af7414c82d43d721dd826d4b35a96a79
2021-06-03 11:13:14 +00:00
Zuul 86dbc5e300 Merge "Add variables for rabbitmq ssl configuration" 2021-05-31 10:12:16 +00:00
Dmitriy Rabotyagov cc57a16a89 Replace linters test with integarted one
We've created integrated linters check job a while back and it's successfully
working for several releases. At the moment we experience difficulties
with future maintenance of the linters check from the openstack-ansible-tests
repo. So instead of fixing current one, we replace it with modern version of
the test.


Change-Id: I6cc6e37c838d3f4ea8ac48bca2d6d693c09f4afa
2021-05-21 15:52:26 +03:00
Jonathan Rosser a79b6b3968 Add variables for rabbitmq ssl configuration
Change-Id: I1de3f5225dfb580ac8e9616bc55436151cdabe76
2021-05-18 12:56:43 +00:00
Dmitriy Rabotyagov a08e470393 Remove deprecated options from config
Gnocchi dispatcher [1] along with api section have been removed
for a while from ceilometer. We should clean up template as well

[1] 83ffaffcb2

Change-Id: Ibbe290ebfd91297080ce2f0b861deece82af42cc
Related-Bug: #1879192
2021-05-13 17:59:26 +03:00
OpenStack Proposal Bot ff0dc5a9fa Updated from OpenStack Ansible Tests
Change-Id: I2dba81aa34cb89f917a9ce6f29b60b19e187ed4f
2021-03-22 08:46:21 +00:00
Zuul 5226a1cf5b Merge "Move ceilometer pip packages from constraints to requirements" 2021-03-16 16:55:05 +00:00
Jonathan Rosser e00da435b4 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: Ifa117789eaa79b3107a4a3dd8d1e1379ca04d238
2021-03-16 08:00:40 +00:00
OpenStack Proposal Bot 394d487536 Updated from OpenStack Ansible Tests
Change-Id: Ie82c590970b56b79d52bef93a00f0610d1e7a8dd
2021-03-12 22:18:08 +00:00
Jonathan Rosser 5d1110c710 Move ceilometer pip packages from constraints to requirements
This is necessary to support the new pip resolver

Change-Id: I3b63e170e42fa12cb4226f7512ab79f0506d95e8
2021-03-12 16:05:49 +00:00
Jonathan Rosser 769da7271d Remove references to unsupported operating systems
All references to Gentoo, SUSE, Debian stretch and Centos-7  are removed.
Conditional tasks, ternary operators and variables are simplified where possible
OS specific variables files are generalised where possible

Change-Id: Ia0b927fe775d5638cd09ecb91af550892764353d
2021-03-10 12:16:37 +00:00
dmitriy 58039e36b6 [reno] Stop publishing release notes
Since we copy all release notes to the integrated repo there is not need
in publishing release notes for each repository. We should only verify their
validity and linting.


Change-Id: I21127e47340ffb8f21b577221468356707c8a2d1
2021-01-22 18:24:54 +02:00
Zuul 52e54b0c3e Merge "Use global service variables" 2021-01-07 17:17:51 +00:00
Dmitriy Rabotyagov 131dd677ef Use global service variables
Instead of overriding each service separatelly it might make
sense for deployers to define some higher level variable that
will be used first or fallback to default variable.

Change-Id: I65ae80452c81c62ef111d0941624ece166f15ed8
2021-01-05 18:49:34 +02:00
Jonathan Rosser 434c249552 Remove centos-7 conditional configuration
We don't support centos-7 for Victoria so remove conditional code.

Change-Id: Ied8a54d3837c4447d612457eebb4fd7a8b9d342d
2021-01-04 14:04:39 +00:00
Dmitriy Rabotyagov 6df1fb0fc5 Add octavia support to ceilometer
Allow ceilometer to read octavia notifications once variable
octavia_ceilometer_enabled is set to true.

Change-Id: I08289736fe1b3b23873d131664a00a1b44c7d6d3
2020-12-02 18:20:49 +02:00
Zuul 464d186541 Merge "Unify deployment of ceilometer files" 2020-11-27 10:44:54 +00:00
Dmitriy Rabotyagov be84a509c4 Unify deployment of ceilometer files
This aims to make possible to define ceilometer_pipeline_user_content
filepath instead of making huge overrides. In the meanwhile default
behaviour should be kept with minimal influence on the existing
deployments.

Change-Id: I0a0ac1b9bbdb8b6a68f870f0ae03edbee8c63d68
2020-11-20 08:05:17 +00:00
Zuul 53325a3f22 Merge "Add event_pipeline support" 2020-11-11 11:45:01 +00:00
siavashsardari edb0d72ad8 Add event_pipeline support
Change-Id: Ica34b308378974a2b5501e85b2a8040ad457f4cb
Closes-Bug: 1903395
2020-11-10 20:44:32 +03:30