442 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Ivan Anfimov
3e44791dbf tox: remove linters and functional from envlist
Tests removed in:
I814930b3e23ec8d0f69aa539902f754ef81ffac0
Change-Id: Ibd3d26d7ae05a4d0da89f57ef0a9c3f456c400e3
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
2025年11月30日 16:06:30 +00:00
Zuul
78e8e5b9e8 Merge "Fix URL for contributors guide" 2025年11月29日 19:42:41 +00:00
Zuul
d63c62abdb Merge "Move information from README to documentation" 2025年11月28日 23:02:49 +00:00
Ivan Anfimov
89f4884677 Fix URL for contributors guide
trivial fix
Change-Id: Ib415382c9d33ebf0c877c7eb1e8a22b90c92a3a0
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
2025年11月28日 19:42:14 +00:00
Dmitriy Rabotyagov
7e9570e29e Do not remove policy.yaml file
oslo.policy can not handle policy file removal. As a result, if policy
overrides were defined at some point, but then removed, causes service
outage.
While we could add a handler trigger to restart the service
on policy removal, it's better to simplify the logic and always place an
empty policy.yaml even if no overrides are defined.
Change-Id: I9213197e468deb05a0e98536c658a465e967843a
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@advanced.host>
2025年11月14日 12:36:34 +01:00
Zuul
4339d7a63a Merge "Remove functional test environments from tox.ini" 2025年09月26日 08:53:45 +00:00
Zuul
4bb9dd7468 Merge "tox: Remove ineffective ignore_basepython_conflict and bump minimum version" 2025年09月23日 13:44:11 +00:00
Zuul
79ea25be1e Merge "Remove outdate file manual-test.rc" 2025年09月19日 17:04:20 +00:00
Ivan Anfimov
cfb90d748e Remove functional test environments from tox.ini
This removes tox evs which are dependent on a tests repo framework,
which was deprecated.
Change-Id: I814930b3e23ec8d0f69aa539902f754ef81ffac0
Co-authored-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
2025年09月12日 23:08:35 +00:00
Ivan Anfimov
97bf8e5353 tox: Remove ineffective ignore_basepython_conflict and bump minimum version
Change-Id: Ic391e0a716d560d8fb1c71578e968bedb1c9ac52
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
2025年09月12日 23:07:04 +00:00
Ivan Anfimov
42f74b4804 Remove deprecated run_tests/vagrantfile
run_tests.sh was part of functional testing framwork which was
deprecated.
Vagrantfile while running integrated tests, does not contain
any supported distro
and effectively unmaintained.
Change-Id: I256c0e3e12f8a2b5e957180c215703ce324db8fe
Co-authored-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
2025年09月12日 23:05:17 +00:00
Ivan Anfimov
93e766e16a Move information from README to documentation
Change-Id: If329233dc23bd2bce96a3465696100fdf76747bd
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
2025年09月12日 23:04:00 +00:00
Ivan Anfimov
76d49473c8 Remove outdate file manual-test.rc
Change-Id: Ib37d3740ff4294c897e4e60f4667178165a62b57
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
2025年09月12日 22:55:39 +00:00
Dmitriy Rabotyagov
56b3efe6cb Define default port for Swift
This should allow to simplify and remove complex logic from the
integrated repo.
Change-Id: I4ddcc3c15c7fec696d6b689eaa234288436e8dd3
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@advanced.host>
2025年08月13日 17:19:12 +02:00
Zuul
6cedee13d8 Merge "Update information in release notes file" 2025年06月10日 12:13:59 +00:00
Erik Berg
1c567515cf Remove redundant vars line
This line snuck in with I41a360e6f99ecd0ca5e4c13888bff4f363d8bc33
probably to bring it in line with other OSA roles, but should already
be covered by the distribution_major_version line above.
Change-Id: Ic25f941542a4fe359aacd04a36b0cdc405849d91
2025年06月09日 18:39:07 +00:00
Ivan Anfimov
cf1da5867f Update information in release notes file
For MR:
https://review.opendev.org/c/openstack/openstack-ansible-os_trove/+/951590
Change-Id: I14fae301c3093262671094e79323b7bef8abc450
2025年06月09日 18:14:09 +00:00
Dmitriy Rabotyagov
3035e25333 Add support for generation of SSH keypairs
If operator needs to enter guest agent instance for troubleshooting,
they need to create a keypair, upload it as Trove user specifically,
create a security group and define it's UUID in trove.conf
This process is quite cumbersome and time consuming, thus this
patch implements mentioned fuctionality and can be enabled
with a single variable.
Process is alike to what we have and been using for Octavia for a while.
Change-Id: I29984c565c808bca79ef39a02e79d9b015a70786
2025年06月04日 11:53:50 +00:00
Dmitriy Rabotyagov
46862920df Do not use group as a "setup_host" variable
This fixes an issue, when a host group was passed to mq_setup role,
and delegate logic uses group name instead of host inside of the
group for delegating tasks.
While this patch might break already in-place workarounds, it's
quite important to fix the issue properly, as workarounds are not
trivial and requires quite some understanding of the process.
Closes-Bug: #2111406
Change-Id: Ic5747e29050cced51a71a4b4e71352f231758ed8
2025年05月21日 09:07:37 +00:00
Ivan Anfimov
6542031c98 Remove tags from README
The tags framework has been discontinued for a long time.
https://governance.openstack.org/tc/reference/tags/
https://governance.openstack.org/tc/resolutions/20211224-tags-framework-removal.html
Change-Id: Ibcef8d7ad96d491ae7e490ea17d8863e4a6c8e83
2025年05月02日 09:51:16 +00:00
Dmitriy Rabotyagov
5f182701d4 Switch volume catalog_type to block-storage
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_tempest/+/942775
Needed-By: https://review.opendev.org/c/openstack/openstack-ansible-os_cinder/+/942783
Change-Id: I374856552c0b2d3fb2f49cb16b737c175585356d
2025年03月25日 16:48:55 +01:00
Dmitriy Rabotyagov
793395ae18 Auto-fix usage of modules via FQCN
Since ansible-core 2.10 it is recommended to use modules via FQCN
In order to align with recommendation, we perform migration
by applying suggestions made by `ansible-lint --fix=fqcn`
Change-Id: I4d3b487b43be7d1d27ae8379d05eda932c43c185
2025年02月12日 15:18:17 +01:00
Dmitriy Rabotyagov
8007941f22 Auto-fix yaml rules
In order to reduce divergance with ansible-lint rules, we apply
auto-fixing of violations.
In current patch we replace all kind of truthy variables with
`true` or `false` values to align with recommendations along with
alignment of used quotes.
Change-Id: If8709a7ca55857c6a97deed6c19b5fc3503688ce
2025年02月12日 15:16:53 +01:00
Jonathan Rosser
7efed51b5a Remove support for amqp1
Support is removed in oslo.messaging so we remove support in
openstack-ansible roles.
Change-Id: I4171afffa496aca00e9892b596ac85d2e978665b
2025年01月06日 10:54:15 +00:00
Dmitriy Rabotyagov
9a73e4a0b8 Ensure that first/last host detection is deterministic
With ansible-core 2.16 a breaking changes landed [1] to some filters
making their result returned in arbitrary order. With that, we were
relying on them to always return exactly same ordered lists.
With that we need to ensure that we still have determenistic behaviour
where this is important.
[1] https://github.com/ansible/ansible/issues/82554
Change-Id: Iacbddd8bc0c5f7d38ca85a3ef4df536ea4f66782
2024年10月03日 15:29:29 +00:00
Dmitriy Rabotyagov
5b668b373c Disable upgrade jobs for Trove
As Trove is broken for 2024.1 due to db migration issues, we effectively
disabling upgade jobs by replacing metal template which include upgrades
with LXC template which does not.
This allows not to maintain job list independently in repo while not
introducing NV failing jobs to Gate pipeline.
Change-Id: I59cbe475a54ca9e12578886f2dac6921fd370d63
2024年10月03日 17:29:09 +02:00
Zuul
4d141d8903 Merge "reno: Update master for unmaintained/zed" 2024年06月06日 10:45:27 +00:00
Dmitriy Rabotyagov
428a647bdc Define unique hostname for QManager
Due to the shortcoming of QManager implementation [1], in case of uWSGI
usage on metal hosts, the flow ends up with having the same
hostname/processname set, making services to fight over same file
under SHM.
In order to avoid this, we prepend the hostname with a service_name.
We can not change processname instead, since it will lead to the fight
between different processes of the same service.
[1] https://bugs.launchpad.net/oslo.messaging/+bug/2065922
Change-Id: If92f81bee0ffd3556e1b1e1f26e7572af04ff1b2
2024年05月29日 07:50:21 +00:00
Zuul
37097eacb3 Merge "Add tag to enable targeting of post-install config elements only" 2024年05月16日 20:56:47 +00:00
Andrew Bonney
9944b66ccd Add tag to enable targeting of post-install config elements only
<service>-config tags are quite broad and have a long execution
time. Where you only need to modify a service's '.conf' file and
similar it is useful to have a quicker method to do so.
Change-Id: I6b168e0bfbc0cf0fa3847a5cdfd9f6dda3d1d64e
2024年05月15日 09:17:42 +01:00
Dmitriy Rabotyagov
d9db42e5a9 Manage trove images through openstack_resources role
This unifies approach for common resource management, like image
uploads.
With that we also split network creation with information fetch about it
to include role only once and save execution time.
Change-Id: Ib0126a0ac70aa613296a8d6e1ca61b34e22b02c2
2024年05月13日 13:25:20 +00:00
Dmitriy Rabotyagov
4186873963 Implement variables to address oslo.messaging improvements
During last release cycle oslo.messaging has landed [1] series of extremely
useful changes that are designed to implement modern messaging
techniques for rabbitmq quorum queues.
Since these changes are breaking and require queues being re-created,
it makes total sense to align these with migration to quorum queues by default.
[1] https://review.opendev.org/q/topic:%22bug-2031497%22
Change-Id: Icd659cdf4c817d100668ab9c5639288b63078c38
2024年05月13日 09:18:05 +00:00
Dmitriy Rabotyagov
3a8a9da7b9 Add variable to globally control notifications enablement
In order to be able to globally enable notification reporting for all services,
without an need to have ceilometer deployed or bunch of overrides for each
service, we add `oslomsg_notify_enabled` variable that aims to control
behaviour of enabled notifications.
Presence of ceilometer is still respected by default and being referenced.
Potential usecase are various billing panels that do rely on notifications
but do not require presence of Ceilometer.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/914144
Change-Id: I061653c3976458c0161915b7273f1ee2c575df13
2024年05月13日 09:17:34 +00:00
258a72460a reno: Update master for unmaintained/zed
Update the zed release notes configuration to build from
unmaintained/zed.
Change-Id: I1bd84466c027833a0ffe3c3b786498bfda723411
2024年05月10日 18:58:04 +00:00
Dmitriy Rabotyagov
29bf7db198 Add service policies defenition
In order to allow definition of policies per service, we need to add variables
so service roles, that will be passed to openstack.osa.mq_setup.
Currently this can be handled by leveraging group_vars and overriding `oslomsg_rpc_policies` as a whole, but it's not obvious and
can be non-trivial for some groups which are co-locating multiple services
or in case of metal deployments.
Change-Id: I9faab7b89cc870a3580c622d3a9bab79c7500e8e
2024年04月26日 18:55:51 +02:00
Dmitriy Rabotyagov
0b4ddeecea Add independent set of variables for guestagent configuration
As it's recommended to have an independent RabbitMQ cluster for Trove
Guestagent, we need to make it possible to easily use also different
user/password set for it.
It's also important to control quorum queues independently, as migration
between quorum queues and classic queues for guestagent cluster
is quite cumbersome and potentially should be avoided as might
bring severe disturbances.
Change-Id: Ib68778a8cb8535d7400be04f02d332ba0344d20e
2024年04月26日 10:04:07 +00:00
Dmitriy Rabotyagov
110feb6128 Fix RabbitMQ vhost defenition for guestagent
While adding support for quorum queues it was missed to reflect changes
for guestagent settings, which leads to invalid configuration
Closes-Bug: #2056663
Change-Id: Id8a428686287ec4067c5eeec12d65329d0248669
2024年04月25日 13:18:03 +02:00
Dmitriy Rabotyagov
ad2f04fbe0 Add TLS configuration for guestagent notifications
While adding TLS support for RabbitMQ it was missed to configure
notifications for Trove guestagent.
Related-Bug: #2056663
Change-Id: Iad29d9f4f344861e3fa9a959c2c03d5a3f87c430
2024年04月25日 13:13:34 +02:00
Zuul
b9fbaf8126 Merge "Adopt for usage openstack_resources role" 2024年02月02日 21:26:08 +00:00
Dmitriy Rabotyagov
9ab52c9d2a 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-plugins/+/878794
Change-Id: I848ab09f8b6c81681f0ce0b5c0cc53b5653791c5
2023年11月10日 13:12:57 +00:00
Dmitriy Rabotyagov
d1d727c752 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.
Change-Id: I78c71cb33f456cfd8d255446d708a1a957e32440
2023年10月20日 14:00:32 +02:00
Dmitriy Rabotyagov
05964887b8 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: I8c1c5c930a72ffd0d79ffeab46421c04b7ced0ca
2023年08月17日 16:32:26 +02:00
Dmitriy Rabotyagov
045f45c12c 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: Iaab0ad50fd65287094522f77283a0112859d7730
2023年07月14日 20:58:47 +02:00
Zuul
c012c28a96 Merge "Add TLS support to trove backends" 2023年05月03日 11:07:22 +00:00
Damian Dabrowski
2d1f4b405b Add TLS support to trove backends
By overriding the variable `trove_backend_ssl: True` HTTPS will
be enabled, disabling HTTP support on the trove 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: I15223354a28f0cc6c203f0cb3a19b9af834d4158
2023年04月29日 18:44:15 +02:00
Dmitriy Rabotyagov
1899934345 Add variables for rabbitmq ssl configuration
Change-Id: I53f50f5c7e56bdadd0456bfdeee1900a5fc91a89
2023年04月18日 17:25:26 +02:00
Dmitriy Rabotyagov
62977e30f6 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: I5ba33177a121d75e92a929e5bd81cfd4872ef406
2023年04月11日 14:32:33 +00:00
Dmitriy Rabotyagov
7b326d50c7 Adopt project_info fetch to collection 2.0
With ansible-collection version 2.0 return of project_info module
has changed. We need to adopt usage of module return to the new format.
Change-Id: Ib4f3ced7f2175e5187f8c16f88fbfbcb3a472d0b
2023年04月10日 18:30:47 +02:00
fde458164b 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: I7cd73a8e8eccf28e3991913a35aa3ac9e847774f
2022年12月13日 13:21:58 +00:00
Dmitriy Rabotyagov
27880b4b50 Change networks_info output structure
With commit [1] to collection output structure of networks_info module
has been changed. With that we adpot to the new format.
[1] 9272146cf7
Change-Id: Ia0d50b96a4af59352a89c566137d8b0208338b6b
2022年08月29日 20:16:49 +02:00