* Update openstack-ansible-os_cloudkitty from branch 'master'
to 6e94d2822259737571efade8669715961df17969
- Enable CloudKitty APIv2
Cloudkitty has released it's v2 API couple of cycles ago with [1]. High time to
enable it as well.
[1] https://review.opendev.org/c/openstack/cloudkitty/+/832923
Change-Id: I11838780e84d6e721033b5c7aa77c8a0ca8ea121
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 10164be39e121441a50819d0ccfe2594fc2e12eb
- 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: I722aefb5290a68311faf1d44c279151e8492466a
* Update openstack-ansible-os_cloudkitty from branch 'master'
to d4ea1e6b526b9ae12c35b6401aba09b4da309e2b
- Fix example playbook linters
Change-Id: I64c16cfa138b6ef4a20fdfa16ca0c6bb73d345fb
* Update openstack-ansible-os_cloudkitty from branch 'master'
to c7b2ad25c920c85cdde4e00fae51282521e92943
- 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: Ib51c7ec8d83ffe82c98d1c8d3200ce4510775895
* Update openstack-ansible-os_cloudkitty from branch 'master'
to ba2e621a934fc597fa81f50127ff596e0df63f7a
- Add TLS support to cloudkitty backends
By overriding the variable `cloudkitty_backend_ssl: True` HTTPS will
be enabled, disabling HTTP support on the cloudkitty 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: I0566028b4737306954b544d040b52cee1fddaa1f
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 893db780b408c17ccac300a0c89e932b24db794f
- 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: I5d491104173dc0217fac62618c13e8ac5a57233b
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 092ea7108832029bf546f452b1a4514246c8b188
- 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: Ie13e1d8fee402e06ee57311c1e360324db7ea38f
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 6568e8bf994192f258f48aa2edc10647c375a2a3
- Replace git-core with git for debian
With ansible-core 2.13 it tries to substitude package resolution in apt
module.
However git-core is used in Debian as transitional name, but ansible
tries to select it and provide version, which is not correct behaviour.
But since git-core is not really valid anyway, we just replace it
to workaround ansible's imperfectness.
Change-Id: Ie4b8ce21c101551505eec1529235a57e9176d3c9
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 6b36ba7a80c79b8e731254e022205024f0d8e312
- Remove redundant vars line
This line snuck in with I81413b5ff415ee3d0b5a33189335591146e8f698
probably to bring it in line with other OSA roles, but should already
be covered by the distribution_major_version line above.
Change-Id: I8ec073f36556c5d7da2be7aae23a192266d39a5d
* Update openstack-ansible-os_cloudkitty from branch 'master'
to b6d15a95cba562a9a58aca0970cb2fec40cb3f62
- 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: Icb1de8c7e0a5196a4df457a5d4a3ca524d4622d0
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 2d98ac9ec700d286d4ccdf79477e00776d932c44
- 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: I92ad4a90f367fe95899973912edb222e84903adc
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 3258ce923f7ca55d6683c194068147d267316f4d
- 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
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/839989
Change-Id: I19d8215e653d42698806c645ac4ae7747c4ea35e
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 06ef0f6c00d320a5d2037bff03930f6972efa78e
- 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.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/839989
Change-Id: I81413b5ff415ee3d0b5a33189335591146e8f698
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 40d38d000086904a82fbd64d46287130212f8767
- 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: I4ae28b356a404c1e76e5cff986d4fe0172b564f2
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 23a330ef26212048bbbfdc95b16c74e08e1f61f2
- 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: I895d7342cea3c7c74732138a87d0b1aee61c2345
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 319dadd64380f9208b4fa8ba0996a15fd107a699
- 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: I756a6cdaa4b619671da73c65761c796a0b2ade81
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 8445103c604230ad5b2521d0d4038be8d1939607
- 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: I5b4df1b67d4adab6c3cfcb1eb148c19b5abe251a
* Update openstack-ansible-os_cloudkitty from branch 'master'
to b67bd60df37d870eb5c1a08b2272a5be5fb3ffc7
- Cloudkitty role cleanup and config updates
The Cloudkitty role has been lacking some attention for a while
causing some of the configuration and examples outdated.
Now that Cloudkitty playbook and dashboard can be installed using
OSA without running any additional playbooks from this repository
i have removed those from here.
Change-Id: I0fe96c318273f0016d93cf043bda74feb11c63f8
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 90360f2a8de2fb922e4a66762f140668d1736a1a
- Merge "Add cloudkitty example playbook"
- Add cloudkitty example playbook
This playbook is also used by integrated ansible-lint check to verify
role syntax.
Change-Id: Ia53b316f9449af44d9218526c8f61af7d83775c7
* Update openstack-ansible-os_cloudkitty from branch 'master'
to c22d20475d59af555a6b9750b8ce8269e481cd80
- 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: I002be9d2c1f5dbf8d3be07850f8e01e69888236a
* Update openstack-ansible-os_cloudkitty from branch 'master'
to a1f9c741c66a72a151b7c0726646f711ddef7035
- [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.
[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html
Change-Id: I5714f88ab0df41adbac52ff65f16f37e69bafb79
* Update openstack-ansible-os_cloudkitty from branch 'master'
to b54aca75611613cf08e90b9531cbd9e76793aeb7
- Merge "Test using integrated build"
- Test using integrated build
In order to do a more complete verification of any patches,
we add a full uncontainerised OpenStack deployment to the
functional testing using the integrated repo.
This replaces the previous role functional test mechanism.
Depends-On: Id191e07eab2bef84dad30e55f59fd914b0358bfe
Change-Id: Iec5c24d38f492af064968b2b621bba8b507d56f5
* Update openstack-ansible-os_cloudkitty from branch 'master'
to a8c6762876c35e54568b0d3a04eabab1fdc3bf3f
- Merge "Fix wsgi_venv path for cloudkitty-api"
- Fix wsgi_venv path for cloudkitty-api
Previous to this change the uwsgi config had virtualenv include /bin, leading to $venv/bin/bin in execution
Change-Id: I4d2b60b655e5688359ed7b65569ec5500c542c0f
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 2b54345586ac832ef67e5e56b84c0efd42d1febb
- Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654
Change-Id: Ia088d1b4074e3bbcd3054f5be00b39429437750d
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 61621205ab7c23678f37caf27a6eea499579d18b
- 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: Ifd45cedcf98487b1a8b5531962529f0784f3065e
* Update openstack-ansible-os_cloudkitty from branch 'master'
to 264f97d87cdf9bf6b227c95f81735b74e8572d5f
- 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: I24c0eb9f4de8833d17dd728660c2a732884506b0
* Update openstack-ansible-os_cloudkitty from branch 'master'
to e0b8bd00a121013c7a15a5723cb23598c98a11e6
- Move cloudkitty pip packages from constraints to requirements
This is necessary for the new pip resolver
Change-Id: I8d70caf213e3f4533fc7490451e95a85ff191ad8
* Update openstack-ansible-os_cloudkitty 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: Ifa09cdddcb4a3875f064ff773bbe2281f964fb1d
* Update openstack-ansible-os_cloudkitty from branch 'master'
- Merge "Define condition for the first play host one time"
- 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: I904dca21103b91978ab03db1a3c6d3a30d406aa7
* Update openstack-ansible-os_cloudkitty from branch 'master'
- Remove unused api handler
After migration to uwsgi this handler is not used anywhere,
so can be safely removed.
Change-Id: I2fe2868e7996c3c6f568d52daae71026d4052c6b
* Update openstack-ansible-os_cloudkitty 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: Ie8e6b95f531fef9c9fe04d6d8f692d599aa5ff30
* Update openstack-ansible-os_cloudkitty from branch 'master'
- Merge "Use newer openstackdocstheme and reno versions"
- Use newer openstackdocstheme and reno versions
The sync from https://review.opendev.org/733244 updated to
openstackdocstheme 2.2.1 and reno 3.1.0 versions.
Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: I0f102d966abd2bfc7999caed5b36a870b348286a