* Update openstack-ansible-os_masakari from branch 'master'
to 9b16df267ad14fb083f792e870be3eb5d778cbb6
- 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: I49f9a18430f4912fe3e2fda36da6ad2acf6dde35
* Update openstack-ansible-os_masakari from branch 'master'
to 101e63e17a0bf4532c11b64e8d2cf76da6cee765
- Fix example playbook linters
Change-Id: I7c0a46811f109e8e043a6aad9114215ed3a3e5cb
* Update openstack-ansible-os_masakari from branch 'master'
to 6b748386f4be634cdc6f2e0a31d4c536c623cab9
- 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
Change-Id: I7163d2e68b1f0f97bd31d7734a99f74ed60b1bb5
* Update openstack-ansible-os_masakari from branch 'master'
to f88e0046983c6096f1239b4d78c3caa2368e19fc
- 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: If34f937fe46cc3a2f181324c011fa9c9082d41ad
* Update openstack-ansible-os_masakari from branch 'master'
to 70821bf2e4a0b7f3138bb5159de6875ddae3a4f0
- Merge "Add TLS support to masakari backends"
- Add TLS support to masakari backends
By overriding the variable `masakari_backend_ssl: True` HTTPS will
be enabled, disabling HTTP support on the masakari 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: I2ea927dbfd7c9164b0f4d5fb793164ce4ad17094
* Update openstack-ansible-os_masakari from branch 'master'
to 7582a277616d834ff08dbbaf0f54b99b725c8d74
- Drop apt_package_pinning from role requirements
We don't pin packages in masakari role, so dependency on
apt_package_pinning role can be safely removed.
Change-Id: Ife81410d59e8a646aab741bc1a5ef01784bf13b0
Related-Bug: #1979145
* Update openstack-ansible-os_masakari from branch 'master'
to ded4cca89177895096dc38a7a4c4d83f2f0e444a
- 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: I3f17e680d1bf9e6e34de6b611db2a484eabbded9
* Update openstack-ansible-os_masakari from branch 'master'
to 0279305f3aab81a7955aa413e1a1452a8adc3af9
- Remove redundant vars line
This line has been here since the initial commit, but should already
be covered by the distribution_major_version line above.
Change-Id: If4f937f31f11e9b5c235dac6d8119bdc6905257c
* Update openstack-ansible-os_masakari from branch 'master'
to e096ded6316559e73d0658c0422d4a511b065aa2
- Remove mention of haproxy-endpoints role
Role was never migrated to usage of haproxy-endpoints role
and included task was used instead the whole time.
With that to reduce complexity and to have unified approach, all mention
of the role and handler are removed from the code.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/845994
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/845894
Change-Id: I1ea93fd9bdb456387fd2cd2c124e399486bda46e
* Update openstack-ansible-os_masakari from branch 'master'
to abb26f320e56af6a38a676cf1604b4f29762b0ad
- 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: Ib85d59a879972de4f5771335f1772447f39d0219
* Update openstack-ansible-os_masakari from branch 'master'
to 08f8a769565e9534421ac52fbd9e4e1d46fb0212
- 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: I5bc0f6928b3b26ed4dbe13482a34bee6eb38c7ba
* Update openstack-ansible-os_masakari from branch 'master'
to 16f58914cdb4ecf6e5a8681286d4550c624b7040
- 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: Id5beb6f4b7cafb1841cb2f1cb075cd04d911c456
* Update openstack-ansible-os_masakari from branch 'master'
to 859ca95e2c5b6d156fc7df22f0b965be4f534e48
- 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: I02997d0537ac24bdd261b8bce8f4a2e34e1db74a
* Update openstack-ansible-os_masakari from branch 'master'
to 2d5bedc1f18c246031f82d0e3ab3b634510a30bb
- Fix libvirt service name
This patch fixes an error encounter within the processmonitor. The
libvirt service name has been changed from libvirt-bin (doesn't exist)
to libvirtd. Tested on Ubuntu Server 20.04 (Focal).
Change-Id: I6f909cb0dec22db6b3ab05d2158ac6e0601f9ad3
* Update openstack-ansible-os_masakari from branch 'master'
to ce5c6d6da314043a5c600d4307a2c4fccd029523
- 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: If9bed4699d5a7ab10b6a9779ae6fbde143b747b7
* Update openstack-ansible-os_masakari from branch 'master'
to 224b2cf3962b1b0241d3dcdb21296f97c57e0ed1
- 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: I933e1edbd4260e2bd61bcceec3ddad8aea85353c
* Update openstack-ansible-os_masakari from branch 'master'
to 67fdd695cad2e67eda272a23f8e7e5684a6f2999
- 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: Ic318e3d89ba8f91fbe979da00e95a714678beae6
* Update openstack-ansible-os_masakari from branch 'master'
to 1fe2df61d21a08b85f1ff906a9a5129f299d28ee
- 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: Ie827ed8b29b02fa268398be1c38b474a447d5c9d
* Update openstack-ansible-os_masakari from branch 'master'
to 055eb191e541fe81fe13591d2b4d3c2b6770c19d
- 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: Ia712d170740c748002aa44d921ade8750997f8f0
* Update openstack-ansible-os_masakari from branch 'master'
to ed611885671da18436eea5966982ff0e8539895b
- 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: I0e6ded7eb4642e35ee88f4515aefec6c31f9937e
* Update openstack-ansible-os_masakari from branch 'master'
to 088e4fba809c784a722ed20e803fbf2c89562857
- Merge "setup.cfg: Replace dashes with underscores"
- setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:
UserWarning: Usage of dash-separated 'description-file' will not be
supported in future versions. Please use the underscore name
'description_file' instead
[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
Change-Id: I04790eabe9680a5b2d19a3e721920e5c8f00aa9e
* Update openstack-ansible-os_masakari from branch 'master'
to 4e269008193965934bd25edf4ddcf1f6e57c7cec
- Add masakari-introspectiveinstancemonitor support
Masakari has added introspectiveinstancemonitor for a while, however it
has not bee implemented in OSA.
Change-Id: I3ae31a3518f5580aadcd9935dda9f1bdabb6ae7e
* Update openstack-ansible-os_masakari from branch 'master'
to 146824fd05389f6159d82661988331026ebc0938
- Replace deprecated host param for monitors
Definition of the host parameter has been deprecated in favor
of the hostname, which by default set to socket.gethostname().
Since instancemonitor started using hostname param, it should equal
to the names compute has in `compute service list`
To make this change backportable, we explicitly replace parameter to
avoid confusion about missing parameter.
Change-Id: I21c7c8cc90cb10afcc224c7cfb9c8c628e5a308b
* Update openstack-ansible-os_masakari from branch 'master'
to f8a6ebd134428e12d1531a06029768c5b211dfbd
- Allow to configure corosync ports
We add 2 extra variables, to make corosync port configurable along with
enablement of ipmi checks.
Change-Id: I970bdaad0af79599d8a7c8cf95f89d273eb791de
* Update openstack-ansible-os_masakari from branch 'master'
to 613ea6397d80889b0a206912823c57be55bf2489
- Fix masakari bind ip
Role default must use openstack bind address when provided, previous
behavior of masakari role was always bind 0.0.0.0
Change-Id: I813edb9ad9d054e1ca32f528b2e702d847cef023
* Update openstack-ansible-os_masakari from branch 'master'
to ac4db5cd282693e9abde95d6fb44ad53ebebf2fc
- 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: I8c89b6d193f221faad4db9e1d0b0152f262b823b
* Update openstack-ansible-os_masakari from branch 'master'
to 0d76e90d103af6a23559199c95d83c7f4f55414b
- 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: I54e19c08c879665c1ed55541942fe2951d63f862
* Update openstack-ansible-os_masakari from branch 'master'
to 58a8b65e8c7fadd3aa45d148cfc5a1b57fb21c1a
- Move masakari pip packages from constraints to requirements
This is necessary to use the new pip resolver
Change-Id: Ibace1c10a3d66ca7f1084ee53f27819a659e1246
* Update openstack-ansible-os_masakari from branch 'master'
to 2454228066f9a7ea3ab31384230700d0a0b50c42
- 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: Ie526c3fed0d6a1c706d5ef17e9c1bcb38418e861
* Update openstack-ansible-os_masakari from branch 'master'
to 9cd72c1ad374bb6b6bc113d797d72c9aa44e1e22
- Add taskflow connection details
Taskflow connection to database is required in order to properly process
notifications.
Change-Id: Idc06f4d6a34df5c5e2c4b2d77d8163c267956275
* Update openstack-ansible-os_masakari 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: Iadca3596f21f83bdb090c8bf45b323bf04154e92
* Update openstack-ansible-os_masakari from branch 'master'
- Merge "Add masakari-monitors to constraints"
- Add masakari-monitors to constraints
masakari-monitors egg was missing from contraints, which resulted in
failures while installing it dependencies for py2 on stable branches
Depends-On: https://review.opendev.org/745572
Depends-On: https://review.opendev.org/739146
Change-Id: I06f8580cbcf7a2633077bb8429c90474837644f0
* Update openstack-ansible-os_masakari 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.
Change-Id: I3347e9a33beff2f0dc57c429acd973f20789912c
* Update openstack-ansible-os_masakari from branch 'master'
- Merge "Disable distro CI"
- Disable distro CI
Masakari at the moment can be installed only via source packages
For distro install it still uses source way, so no reason
to test this scenario for the project
Change-Id: I143076190750cba64202509568b6d903eaf13d22