* Update openstack-ansible-os_magnum from branch 'master'
to ceca11a27d81246fe2609d585084fe8f342ae84f
- Adopt for usage openstack_resources role
With efforts to create a resources in same, unified way,
we convert tempest role to use openstack_resources
for creating and managing openstack resources, like projects, flavors,
networks, images, etc. This should reduce maintenance costs
in case of futher collection updates and unify approach.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/911377
Change-Id: I658e6218cf59650d0abfa491ebaa6d3c37db2993
* Update openstack-ansible-os_magnum from branch 'master'
to 3c476298a8d4bffe22a7825f816e9cf62df48918
- Add missing magnum octavia client configuration
Omitting this config causes Magnum to use the public endpoint
by default.
Change-Id: I41122f166806b30e07067c539c182f98c6919134
* Update openstack-ansible-os_magnum from branch 'master'
to a5fb39c879f29cd7bace2c29fbada01c9588eebe
- Merge "Add tag for creating magnum resources"
- Add tag for creating magnum resources
This cannot currently be run without running other parts of the role.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/896017
Change-Id: Ia3c4bb2a0d61a1b741b9b5bc77b62acf8b79f00b
* Update openstack-ansible-os_magnum from branch 'master'
to 1b7360802f711003d5f478985bbc214393e8a59e
- Add quorum queues 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.
In order to ensure upgrade path and ability to switch back to HA queues
we change vhost names with removing leading `/`, as enabling quorum
requires to remove exchange which is tricky thing to do with running
services.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/896017
Change-Id: Ic5b425564e494502722106f94e406dc2ed69dcde
* Update openstack-ansible-os_magnum from branch 'master'
to 9709e102df8b1a833012eaeffebc9f8f5a9d8f66
- Wait for magnum endpoint before creating cluster templates
Magnum playbook flushes handlers(that cause service restart) and then
it starts creating magnum resources right away.
In some cases(for ex. magnum tls upgrade job), magnum haproxy endpoint
is down before playbook flushes handlers. It means that after flushing
them, haproxy healthchecks need some time to rise magnum endpoint.
In this case, there is a high chance that playbook will try to connect
to magnum endpoint before haproxy marks it as alive.
To solve this issue, this patch implements an extra task to ensure
that magnum endpoint is reachable before playbook tries to reach it.
This patch also fixing linters issue in an example playbook to resolve
circular dependency.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/896017
Change-Id: I36cf9f4b71daa107e27e966ebe25816c7bffa42a
* Update openstack-ansible-os_magnum from branch 'master'
to 97afbcce92c0fb958dd5a800e0c20278954b88b0
- 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.
Change-Id: Id8c269eeed160709f1f97c8e60b9fba484154bb5
* Update openstack-ansible-os_magnum from branch 'master'
to 136fb011923ab357077e6e7793358dcc3571c9b2
- 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: Icf0be2ec722383363b2145955bdaa5b02bcae9a2
* Update openstack-ansible-os_magnum from branch 'master'
to bfbf0db8fbecf69969a58585d66b85b4054dd4b9
- 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
Change-Id: I68c3d98de3a0a4444c0c1ea0cc528901613a63bd
* Update openstack-ansible-os_magnum from branch 'master'
to c9fb7e4f460d5b37b54ff7453c6d35c0ccdf3c8a
- Add TLS support to magnum backends
By overriding the variable `magnum_backend_ssl: True` HTTPS will
be enabled, disabling HTTP support on the magnum 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: Id3413eb53ab2948de61b2e67f85c5a19fc670434
* Update openstack-ansible-os_magnum from branch 'master'
to 2b6859ee2a69f50962c9fe98c6b941c94d90c4bf
- 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.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_heat/+/879963
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/880047
Change-Id: I2327ed957133ad0a918fb1d2e215952b4184c61f
* Update openstack-ansible-os_magnum from branch 'master'
to 3591a729dd073406468695ecc4f004c40bb1124c
- Rename floating IP option for coe_cluster_template
With new collection version, this option was renamed.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/881566
Change-Id: I072ef995d14b2301d308ef1af958e28154f882c4
* Update openstack-ansible-os_magnum from branch 'master'
to 50f4db5bacbf4db3f10b1019549e03966dc13f75
- Update tox.ini to work with 4.0
With tox release of 4.0, some parameters were deprecated and are ignored now
which causes tox failures. One of the most spread issues we have is using
`whitelist_externals` isntead of `allowlist_externals`
Change-Id: Ibf6b05d89cf1d8f113881d64878c58256b865342
* Update openstack-ansible-os_magnum from branch 'master'
to 2d943159312af484a435f64efdd5761dbbc0ff02
- 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: Ie16e753aa20b2ceeba63839f25e89ff13a571b3c
* Update openstack-ansible-os_magnum from branch 'master'
to 751b55d01e829459ab3d0de8d7ba2fb3e6d1d2b0
- Remove redundant vars line
This line came with Idbf1b737a11b0bb2460989b2881395ee87a90429
for the "multi-distro framework", but should since be covered
by the distribution_major_version line above, introduced at
a later date.
Change-Id: Ib4ddea834cc5bbe043a32118d8fff0571ac816bc
* Update openstack-ansible-os_magnum from branch 'master'
to 719280a83ec1984874a7dac4c7e38e479164094b
- Fixed dest typo in config_template
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/846145
Change-Id: I986113491800f9432ebcc8ea82b8f4362671c5d2
* Update openstack-ansible-os_magnum from branch 'master'
to 4c4c70a3768fa12b1b3ed077ab1736b85d8fd43a
- 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
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/846142
Change-Id: Ic77d8645613d265997895b6742b334336ce00ec1
* Update openstack-ansible-os_magnum from branch 'master'
to 5e1780b8098216fc645e2de353d716b744c4a1b6
- Control amount of conductor workers
As of today we didn't manage amount of magnum-conductors that equal to
amount of CPU on host. So things can go off regarding CPU and memory
consumption. For better control on resources we add variable to control
conductor workers.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/846151
Change-Id: I3eedd74717b3b621b4e0b6ae4a8df4ee6f1eb739
* Update openstack-ansible-os_magnum from branch 'master'
to 1a3615afdfe55fea362ffb4103430a2d9ac483f5
- 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: I7bd4a4623db0913fee84afc237c4bbb520f26c76
* Update openstack-ansible-os_magnum from branch 'master'
to 847b0c26360208d8320fd01b2bd42170a366fe62
- 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: I13d8d4fa8f1de4822a671971232ac3960edc0759
* Update openstack-ansible-os_magnum from branch 'master'
to 4f4049170ee5b9408a0893393048de63e64d163d
- Merge "Run service_setup only once"
- Run service_setup only once
There's no reason to run service_setup for each magnum container
as it's enough to be done once. So we're including role only
when it's first host in the play.
Change-Id: I8f282d4a284e0de395081251f6622df0c1daeeb3
* Update openstack-ansible-os_magnum from branch 'master'
to 8616f479d2ce6841278bbb6b6a7b1781aa3df366
- Merge "Use common service setup tasks from a collection rather than in-role"
- Use common service setup tasks from a collection rather than in-role
Change-Id: Ie906228e6613d8453835ae8c52c3c4dce1adfae2
* Update openstack-ansible-os_magnum from branch 'master'
to b7b1f44a039281361331a1a64f3152fc58969ce0
- 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: I0aa7af76b19d143128113557fec3ab928280faab
* Update openstack-ansible-os_magnum from branch 'master'
to 03990bb4a087f3fe1b14c78b8742e994712a06da
- Database connection pooling improvements
- Implemented new variable ``connection_recycle_time`` responsible for SQLAlchemy's connection recycling
- Set new default values for db pooling variables which are inherited from the global ones.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/819424
Change-Id: I305c6f4fb0b20e6e916fff7c912e8664733a902e
* Update openstack-ansible-os_magnum from branch 'master'
to 368580e00d9325fb18cb2d67512ccf40e8f4c91e
- 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: Ib1752953c8afaa4d56d4b0951d8346be4379536f
* Update openstack-ansible-os_magnum from branch 'master'
to fd8337a7965adfeadb41d96643a642e40177076b
- Drop config_template from role
Change-Id: Ic4c062680efe7dbd3a7edb3d34d96d203a55233c
* Update openstack-ansible-os_magnum from branch 'master'
to db5ac1dc3543f854af9d32d7af73f8d2a211114e
- 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: Ib9d0b810bf5aef475021f886dd19348548a7ec9a
* Update openstack-ansible-os_magnum from branch 'master'
to 9f3dfd20b06d324a5b34eadc47651585fd414d73
- Define region for Magnum trust
We were missing region definition for trust section which resulted in
issues in multiregion deployments
Change-Id: I8a569f47c0f3100f4c49dde01c58b31338ab1182
* Update openstack-ansible-os_magnum from branch 'master'
to bbbaaa30dbd2699f68f36467b5451aa15a12a16a
- 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: I9d536bdb13761bf74708641c73a5041d301684cb
* Update openstack-ansible-os_magnum from branch 'master'
to c89938d3582e96bc1a402638edffc04ba35bb164
- Merge "[goal] Deprecate the JSON formatted policy file"
- [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 replace policy.json to
policy.yaml and remove deprecated policy.json.
config_template has been choosen instead of the copy, since it can
properly handle content that has been lookuped.
We make a separate task not to restart service when it's not needed.
[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html
Change-Id: Ie246d803b5c4e490af76351a595aedcf2fcff62b
* Update openstack-ansible-os_magnum from branch 'master'
to cbb7a67326913c95e3a49e43fc4d70ce18bf940a
- Merge "Use ansible_facts[] instead of fact variables"
- Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654
Change-Id: Ic7b58cc4e4840d342f48b7c9ec90953d5dce4ab5
* Update openstack-ansible-os_magnum from branch 'master'
to 8f6d7d0a74180182cf2dc212dd06f251ac062dba
- Merge "Use new openstack.cloud collection names"
- Use new openstack.cloud collection names
os_ prefixed module names are deprecated for a while and will be removed
Current usage generates a warning for users.
Depends-On: Ic31fd78bb5ad9cd484f44e63ba02db7424a500d5
Change-Id: I0dae6805ac5883f75bed138d652d0dd0bd1594fb
* Update openstack-ansible-os_magnum from branch 'master'
to c0f9229980034683ec8b9d1e3f0a87c683209df1
- 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
Depends-On: Ic31fd78bb5ad9cd484f44e63ba02db7424a500d5
Change-Id: I7c6258673b7b13c15177873fb42080e452eba2d4
* Update openstack-ansible-os_magnum from branch 'master'
to 2b30c0e8c1522c8332c1e16502b7f408655e86d8
- Merge "[reno] Stop publishing release notes"
- [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: Ia793bf6312fa50b5512da8274dfee1e6ca65da1a
* Update openstack-ansible-os_magnum from branch 'master'
to 7b611058d55d0faf35f498e2458bdec80c690d55
- Move magnum pip packages from constraints to requirements
This is necessary to use the new pip resolver
Change-Id: I44085391d469010ed941d08d4ec1debd0ddd55e5
* Update openstack-ansible-os_magnum from branch 'master'
to c87dcebfe01e31bb289bf57a9656febaac112916
- 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: I295b6f99422ba81d14a04129939648d0722dd584
* Update openstack-ansible-os_magnum from branch 'master'
to 458687eb9f8e1b9729e20e336d24dc25c6a4ea4f
- 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: I26b24864714d6d7c3820c2b7f1bbf4935153d78c
* Update openstack-ansible-os_magnum from branch 'master'
to 88dc27e24d574e3a242d6d16ae74187cf19de8af
- Merge "Use openstack_service_*uri_proto vars by default"
- Use openstack_service_*uri_proto vars by default
Change-Id: Ib1d5788af53556196e89c754975e329da90970a0