* Update openstack-ansible-os_gnocchi from branch 'master'
to d44b25ebb804af75dae8e02b36b79493a7e84607
- use policy.yaml instead of policy.json due to latest change on gnocchi
check the config
Change-Id: Ie11f31e6e4a0ee64e6e191820ef9a00e72826a96
* Update openstack-ansible-os_gnocchi from branch 'master'
to 069d0498f61b1ade74108aed5ba700c7f85dcfe6
- Merge "Fix linters and metadata"
- 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: Ib1a93dce0f64b6261af06956e3e1ee5472bede9c
* Update openstack-ansible-os_gnocchi from branch 'master'
to 43885a6ca8da7fa467c78048f539a656d9d54a4d
- Merge "Use proper galera port in configuration"
- Use proper galera port in configuration
While <service>_galera_port is defined and used for db_setup
role, it's not in fact used in a connection string for oslo.db.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/888517
Change-Id: Idbd2bef71983f6fb3cc402563a166349621bf03c
* Update openstack-ansible-os_gnocchi from branch 'master'
to 815f957b1dd7630caa6bce71f61c1ec6597cf6c5
- 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: Ib7d2fff82a0970424948c33628c388aeed1e08fe
* Update openstack-ansible-os_gnocchi from branch 'master'
to e0e213efce5e195e93812d088b045d893495c771
- Add TLS support to gnocchi backends
By overriding the variable `gnocchi_backend_ssl: True` HTTPS will
be enabled, disabling HTTP support on the gnocchi backend api.
The ansible-role-pki is used to generate the required TLS
certificates if this functionality is enabled.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/879085
Change-Id: Ie2c824052b0024d440b20febb34b6bde22f4fac2
* Update openstack-ansible-os_gnocchi from branch 'master'
to 8e875ef8ee49ccb5445cd3c8d40ecfe04e7d20af
- 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: I0265fc94d795360f6dfbddee5398ee067ea0422b
* Update openstack-ansible-os_gnocchi from branch 'master'
to f8d185d58afc09a22b6c33bac4544d3bb34cf37f
- 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: I524a83e7153aebb990f0621bc7ff54c04788bc69
* Update openstack-ansible-os_gnocchi from branch 'master'
to dd0c296120d80f551226275265a1e31bd7d609aa
- Remove redundant vars line
This line was introduced by Ic1d3fc7089e80767ab59304642c8809d8a4e707f
to bring it in line with other OSA roles, but should already be
covered by the distribution_major_version line above.
Change-Id: Icdac9fabefe047895d446b0498897a15e8028738
* Update openstack-ansible-os_gnocchi from branch 'master'
to 6f3bcbe892e94cf78d184e0853935a95a331751f
- Support service tokens
Implement support for service_tokens. For that we convert
role_name to be a list along with renaming corresponding variable.
Additionally service_type is defined now for keystone_authtoken which
enables to validate tokens with restricted access rules
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/845690
Change-Id: Iaed7f2b4a724aed0f4165e32f3d40aac9d74edd7
* Update openstack-ansible-os_gnocchi from branch 'master'
to af3c87535db22fcf03e59be49c6e2df977f303fb
- Control amount of metricd workers
As of today we didn't manage amount of gnocchi-metricd that equal to
amount of CPU on host. So things can go off regarding CPU and memory
consumption. For better control of ressources we add a variable to
control the number of workers.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/846349
Change-Id: Idcaec649a4de03f5714c61fda694ada45da41dbc
* Update openstack-ansible-os_gnocchi from branch 'master'
to c845819cae0b9606043682008a389716cf3c537a
- 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: Ia9f50e5377bda2e141eafa5aa8150024455600e1
* Update openstack-ansible-os_gnocchi from branch 'master'
to 1483fcbc2802e4d6364138e19516b24114abfadf
- Add variables to manage redis url
To provide more convenience in configuring redis as Gnocchi driver,
we add 2 variables that can be used to control
URL to Redis when it's used for storage or incoming data.
Related-Bug: #1955676
Change-Id: Iba5186df3656c116cba48c3be0e39e87ddcb727f
* Update openstack-ansible-os_gnocchi from branch 'master'
to 72091b236bf18d952254a53d5488fcadd689a117
- Use common service setup tasks from a collection rather than in-role
Change-Id: I55a5cf3e8b704c21f8b68862df5e1fce656b4b71
* Update openstack-ansible-os_gnocchi from branch 'master'
to 68ff6a169a9bbd48a97372ba32c09b58d7c3e20a
- Merge "Add availability to define gnocchi_incoming_driver"
- Add availability to define gnocchi_incoming_driver
Gnocchi supports having different storage and incoming drivers [1] which
has been never implemented in role.
We add `gnocchi_incoming_driver` variable and do incoming configuration only
when it's not same as gnocchi_storage_driver.
[1] https://gnocchi.osci.io/install.html#configuration-file
Depends-On: https://review.opendev.org/c/openstack/ansible-role-python_venv_build/+/822901
Change-Id: If1442abd7978d44def2a4386f9d159b42c4939e3
Related-Bug: #1955676
* Update openstack-ansible-os_gnocchi from branch 'master'
to 24356495c324463b2911bc46ef5176754b43b66b
- Remove apache to uwsgi migration tasks and variables
Change-Id: Idaec9f48bb1c7aff926071979773bca97f9ef2b3
* Update openstack-ansible-os_gnocchi from branch 'master'
to 5d0c34eddfebf8919a336fd93ee0d0dc278b7be1
- Merge "Refactor use of include_vars"
- 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: Ia6f6e36fc34e382eb02ea59973ee0a6e8aec20b4
* Update openstack-ansible-os_gnocchi from branch 'master'
to 08712239a8a80cde1fb828251bd1946406c9330b
- Do not install python development packages
The python_venv_build role is responsible for setting up the build
environment for python wheels so this role should not install
python development packages
Change-Id: I6f3713135e3b937768d799c6e2c141427c498a16
* Update openstack-ansible-os_gnocchi from branch 'master'
to 691921257fbe6d5b4ded0581c3c7fdfce7de65d6
- 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: I5e9aac0216a7406fefe4bfe315bd914723c7e27c
* Update openstack-ansible-os_gnocchi from branch 'master'
to 2938fadcf3bc662495c5a135ba3fcd63b1e2040b
- Do not provide ceph_alternative extra for ceph
When adding ceph_alternative in pip extras, pip tries to install
python-rados which is not available from pypi and this fails installation
We symlink all required packages inside venv with ceph_client role so
providing ceph_alternative as extras makes no sense.
Change-Id: If4103a28235b0127b5e2220577a7cd2451154c1d
* Update openstack-ansible-os_gnocchi from branch 'master'
to b9d2f805e3658bdbb387ac810003c5f1e70e96df
- Fix gnocchi multi-node when storage_driver is file
When gnocchi_storage_driver is file, run the db sync on all nodes.
But if gnocchi_storage_driver is other than file, run only on first node.
Closes-Bug: #1915618
Change-Id: I18a0ca9e32515194fbcf939bed53cdbef4de26f6
* Update openstack-ansible-os_gnocchi from branch 'master'
to 1274517f7191a32dde0a5e12573cc7656f9a861b
- Refactor galera_use_ssl behaviour
With PKI role in place in most cases you don't need to explicitly
provide path to the CA file because PKI role ensures that CA is trusted
by the system overall. In the meanwhile in PyMySQL [1] you must either
provide CA file or cert/key or enable verify.
Since current behaviour is to provide path to the custom CA we expect
certificate being trusted overall. Thus we enable cert verification when
galera_use_ssl is True.
[1] 78f0cf99e5/pymysql/connections.py (L267)
Change-Id: Id986985e623896698d54496a8f0608e59516eec5
* Update openstack-ansible-os_gnocchi from branch 'master'
to 7a66bd6b594df8a9fa6cb918f66bf6d954c72a13
- 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: Ifcfc4d8ca048651feed2043de39c0dfbc8e8d2da
* Update openstack-ansible-os_gnocchi from branch 'master'
to c70c34b85053cf948ccfc3ccf229c6a22e400cad
- 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: I50f58cfb46f630a486ff673936fd3b1af38df2ca
* Update openstack-ansible-os_gnocchi from branch 'master'
to a6a25bf3cd8a84567e8ed7539043a6d08372ecac
- Switch gnocchi service name to service
Previously we used different from other services project name to protect
swift from looping. However nowadays ceilometer middleware does
exclude service project by default. So no futher actions needed
unless deployer want to measure service project excluding gnocchi
In this scenario, deployer still can define custom
`gnocchi_service_project_name` in their user_variables.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-galera_server/+/791107
Change-Id: Ic0ffa6908bfc55ffdb41ea9b8e7435e4dc88ddca
Related-Bug: #1879192
* Update openstack-ansible-os_gnocchi from branch 'master'
to b5c233cdad067dcf831e9fd63cea2f43b8b62892
- Use ceph_client symlinking process
This moves ceph_client include from the playbook
into the role itself to leverage libraries symlinking
inside venv and to align with other roles
Change-Id: I9f1339b0b592e18a227b9a53cad9ef4af7fa82c0
Needed-By: https://review.opendev.org/c/openstack/openstack-ansible/+/769974
* Update openstack-ansible-os_gnocchi from branch 'master'
to 01f88ffaa331c770552b71d58244e9d36ca358bf
- Fix gnocchi installation for new pip resolver
Change-Id: I93c48cd15443f5959224d7560077b52263a5ea38
* Update openstack-ansible-os_gnocchi from branch 'master'
to 1111c6981373da76559e879f50aef0df767f7d97
- Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654
Change-Id: I1c82172d17fb2852c48453b77ffc59f7b9eca528
* Update openstack-ansible-os_gnocchi from branch 'master'
to 8f017d6d62ae6de2d9fe6b35655a671049fd15d3
- Merge "Remove references to unsupported operating systems"
- 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: Ie0dbc0c142bfedabb1027e3809463d78e861b625
* Update openstack-ansible-os_gnocchi from branch 'master'
to 6407cec1824045f201fa80ff1e392871d7ec7e3d
- Merge "Move gnocchi pip packages from constraints to requirements"
- Move gnocchi pip packages from constraints to requirements
This is necessary for the new pip resolver
Depends-On: Idfdb34e53d7e0a54dd35b95e7b9f51eece405238
Change-Id: I5282cc78db55dee5f43cc34486a71a69567f2a28
* Update openstack-ansible-os_gnocchi from branch 'master'
to ce0fd212138a1a6880d59cda3e2cfca51153e2f8
- Provide different package lists for install and wheel build
Also install libxml2 into the target host.
Change-Id: Ie7eeb360c44d1d496bacb6e7f393ac4a90c0236b
Closes-Bug: 1857899
Related-Bug: 1915617
* Update openstack-ansible-os_gnocchi from branch 'master'
to 503b4d25cf0ef9e28b6f35d0b2569ebbe5fca729
- Delete gnocchi_identity_setup
This file duplicates the purpose of the service_setup.yml
so we're running same set of tasks twice.
Change-Id: Ia0ee853b14cffd3082346e20bb021da24e3f2c40
* Update openstack-ansible-os_gnocchi from branch 'master'
to bf17cc3d699bf711926563d80879ddc26ac87f54
- Drop distro tests
Gnocchi does not have distro path so there's no sense in testing it.
Change-Id: Ibf24046371128a693de88c5dab78878aa78b044e
* Update openstack-ansible-os_gnocchi from branch 'master'
to ce339f4233e6b2f0da60845422f67f238d3b39cc
- [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: I85b04dd07036d2a5e19021e30f2cce830f3d8f6d
* Update openstack-ansible-os_gnocchi from branch 'master'
to cfa854fd067685d28ef51adc5a2c57514b9f354f
- 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: I022d52c39c706fd9f82b9efcdcdc589a2e971d24
* Update openstack-ansible-os_gnocchi from branch 'master'
- Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is deprecated and TOX_CONSTRAINTS_FILE is
the new environment variable name that replaces it [1].
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.
[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
[2] https://review.opendev.org/#/c/722814/
Change-Id: If16179cfeb63c2facbabfb97c452a8c6ffff7530
* Update openstack-ansible-os_gnocchi from branch 'master'
- Reduce number of processes on small systems
Even the most modest 4C/8T system would run with the maximum 16 processes
due to the calculation being VCPU*2.
We devide amount of CPUs to number of threads for hyperthreaded CPUs
Change-Id: I3145692351cadf5c1cd835fe87e1206ee5901164
* Update openstack-ansible-os_gnocchi from branch 'master'
- Use the utility host for db setup tasks
Move it to the service setup host (defaults to utility[0]) instead
of the galera[0] host, and use galera_address (defaults to internal VIP)
as the endpoint instead of a local connection on the db host.
Depends-On: https://review.opendev.org/754718
Depends-On: https://review.opendev.org/755258
Change-Id: I5098673bdf84d1c2b13ca87e474a5c598260ae94
* Update openstack-ansible-os_gnocchi from branch 'master'
- Define condition for the first play host one time
We use the same condition, which defines against what host some "service"
tasks should run against, several times. It's hard to keep it the same
across the role and ansible spending additional resources to evaluate
it each time, so it's simpler and better for the maintenance to set
a boolean variable which will say for all tasks, that we want to run
only against signle host, if they should run or not now.
Change-Id: I69c08fd522c1c80356000b1cf2a48a9b63327b3c
* Update openstack-ansible-os_gnocchi from branch 'master'
- Merge "Fix run task conditionals"
- Fix run task conditionals
Current conditionals didn't work correctly with running tasks with --limit
We should intersect with ansible_play_hosts to get tasks run for specific
host only (ie running with --limit)
Change-Id: I56e873114cf85b29233d50a866ee925615dba70b