* Update openstack-ansible-os_manila from branch 'master'
to 54e3c21c8594e3764708cfc69ef46342fcb26748
- 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: I245b4d7f526380862fce2d88fbcd7ab1b8ed4053
* Update openstack-ansible-os_manila from branch 'master'
to 32ba37d559462e3b3f7982dc9caba6f50a5d9ec6
- 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: I9110294e492a501204c8e92448a2f2929781a509
* Update openstack-ansible-os_manila from branch 'master'
to f5aa36a38df2091d92184226cf5512e0d2f47240
- 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: I795e7a7423d3efd5168dd8e8d89b3c86aa13c31f
* Update openstack-ansible-os_manila from branch 'master'
to 93beaf8c4ac15a34566f1ffa312a817d759cab4d
- Switch jobs to Jammy
We're dropping Ubuntu Focal support early in 2023.2 release,
so we need to switch all jobs to Jammy before this happens.
Change-Id: I77e88c183c1dcdd03a8537c4a6e68b98f0f7f86b
* Update openstack-ansible-os_manila from branch 'master'
to e29058b48e3d239d0b61ef2cff1b45c2e11794fc
- Don't install zlibc, it was removed from Debian
Change-Id: If3757269213246f3f54769e12bc93cdc50fe93e1
* Update openstack-ansible-os_manila from branch 'master'
to 0b6f8da608cb64855cee450131e28c9c92df8a1f
- Add TLS support to manila backends
By overriding the variable `manila_backend_ssl: True` HTTPS will
be enabled, disabling HTTP support on the manila 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: I38b95b73301d2210f64105c20f389c74498a5345
* Update openstack-ansible-os_manila from branch 'master'
to 136089ce584b552e2f206b28de0f34359a6e9813
- Merge "Remove unused variable"
- Remove unused variable
This was introduced when the role was created using os_cinder as
a starting point [1], as has never been used in the manila role.
[1] f9bfb7f0bc
Change-Id: I57df438cd25efd30e0e437470fc34df8fea1317c
* Update openstack-ansible-os_manila from branch 'master'
to ab4b4a1d25ba58884fd209e64a2f63978ac99c51
- 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: I4eec982a682bfff121f9658c6d4eb3d1db8cb94f
* Update openstack-ansible-os_manila from branch 'master'
to b8865bde4c84479bbf379359a2c7719c7a510798
- 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: Ibbb153da7fd38b2a7df2b13480f647ab95d96d81
* Update openstack-ansible-os_manila from branch 'master'
to 3363242b0700a71da488db184462544575c9723c
- 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: Ib73aca403b1f053944ea269287245ac7c7c651ca
* Update openstack-ansible-os_manila from branch 'master'
to c0a1f262eb21c8636a16bec573a3cf5ad6cab1a6
- Create backends when running against manila_share
For backends creation we verify that API is reachable. With that on real
deployments we disable container we're running against on haproxy.
This results in task failure. To avoid that we add backends when
share/data services for manila. This is done in separate play when
all API backends should be enabled and functioning properly.
Change-Id: I6dcbae2896668f5fbb6f09bffc94cb6e90699e92
Closes-Bug: #1979209
* Update openstack-ansible-os_manila from branch 'master'
to b5426ccb9bdabd7603aedd43dbb3834756eb4d80
- Merge "Remove mention of haproxy-endpoints role"
- 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.
Change-Id: Ia04bd0a729100ed3f0bade9185b0703ce903635f
* Update openstack-ansible-os_manila from branch 'master'
to f728ca5707b8d4e200877ac55de15198edb7142c
- 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: Ie5ebb4d68ed06cff26462dc55092fda8a9ad2f44
* Update openstack-ansible-os_manila from branch 'master'
to 0db9f1f9598fe4bd6c3ca167618dabdd60101b16
- Delegate share type creation to setup host
Instead of running manilaclient on manila host, we're delegating
execution to service_setup_host. This reduce
complexity and remove some requirements for manila hosts.
With that we also replace usage of manilaclient
with openstackclient.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/845998
Change-Id: Ie04d9e1690e0f053e86e28e0bf1d6c3aa43774b0
* Update openstack-ansible-os_manila from branch 'master'
to 4bff5b4352370508429675fb0653580ba5e787ba
- 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: Ic728c71b6d1f44b903ac0ade0ab2516a6cdc16fb
* Update openstack-ansible-os_manila from branch 'master'
to 77ce3dc01774e172c7fc62087f29d7f3cc7bab55
- 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: Ia350d1da1043513eefad6806813dcf1dc7fcd005
* Update openstack-ansible-os_manila from branch 'master'
to f07b0f764a511e930a55d01c507a8dec7ee20666
- 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: I4983e2e13eb3ec29b0417094cf66629ce0f89052
* Update openstack-ansible-os_manila from branch 'master'
to a422c42665f987dc4e5be2a907e814e14d097d3c
- 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: I94b3f8ba5116cdfb94e9d0dc575bd7edb1d27b3c
* Update openstack-ansible-os_manila from branch 'master'
to 48a8c0627a6305fb198e5f05625d1cda2893ae87
- 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: If245cd3f12a919933d912205dd60f1e02f555f7c
* Update openstack-ansible-os_manila from branch 'master'
to 286414c2a63d6684266acd06f143df16ba01dbd1
- Set manila_backends to empty dict by default
This simplifies logic across the role and not verify if variable is
defined each time we're attempting to use it.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/787341
Change-Id: I6db4ad6e6389b1ff63dc52a1e48c477a97905d17
* Update openstack-ansible-os_manila from branch 'master'
to 91b53f2b6c96e3a5b81571b7dc95f29848a1bc8d
- Merge "Remove ceph-fuse requirement"
- Remove ceph-fuse requirement
Since we don't need to mount and create volumes directory for
manila, ceph-fuse package is not required anymore as well.
Change-Id: I5cd92bd90ab19a32f7488ab56dbb6b005253e2c3
* Update openstack-ansible-os_manila from branch 'master'
to 2bcae23c0fb3574b2b2d8b15d70d8c96c6e1d63a
- 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: Ibe4ce100cfad933dfaeaba236d7921711df491d5
* Update openstack-ansible-os_manila from branch 'master'
to 019e08ef480acd526eaf8bc657f59e2f5af00173
- 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: I175072167602b6ec400d21b9350533a58901f890
* Update openstack-ansible-os_manila from branch 'master'
to afb8fe7ef35595a4f753098d0c485642a7eead1d
- 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: I5234e70e508a1026acb5a402ae406e47e510c2e7
* Update openstack-ansible-os_manila from branch 'master'
to 3caecbf1e0fb45a07de1a26a7e42e2229b14e1dc
- 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: I508c7aea34bb706b58fc69be8bfb6c06d50f2f40
* Update openstack-ansible-os_manila from branch 'master'
to de29f07d7723cf9493a49f7663746379fd7b1e2f
- [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.
CephFS Native hook has been removed since [2] as manila leverages MGR
now and doesn't require having directory in share.
Additionally bionic test is removed as we don't have Octopus infra
mirrors for it.
[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html
[2] a830710939
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/791202
Change-Id: I7a1807e4b984e31cb6250132f35d4c27f0b69b0c
* Update openstack-ansible-os_manila from branch 'master'
to f404eb46c4510ede8e871f3237c8deee6ade693f
- Move manila pip packages from constraints to requirements
This is necessary to use the new pip resolver
Change-Id: I78f7cb313da7835d96be95436ae69c0a6d8cfa25
* Update openstack-ansible-os_manila from branch 'master'
to b5aed5c1301f60aea8fe34daefed8a6cb9572f14
- 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: Ie2c30dcc3640361b91e602125e98996c897f0f06
* Update openstack-ansible-os_manila from branch 'master'
- Merge "Start using uWSGI role"
- Start using uWSGI role
Move service to use uWSGI role instead of iternal task for uwsgi
deployment. This aims to ease the maintenance of uWSGI and speedup
metal deployments as the same uwsgi environment will be used
across all services.
Change-Id: I946adf21b58e117508dcc470c0fb3e9c2565c26d
* Update openstack-ansible-os_manila from branch 'master'
- Cleanup after repo_build and pip_install retirement
Change-Id: Ief0adafb6ccb03b274cde1905a97e396d126291a
* Update openstack-ansible-os_manila from branch 'master'
- Merge "Reduce number of processes on small systems"
- 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: I40c292b7ba2f48a02ffe4c45d984ea7af6460f62
* Update openstack-ansible-os_manila 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: I9dbb96df92711467aaa7676534adfd1f7013cb27
* Update openstack-ansible-os_manila from branch 'master'
- Do not symlink ceph libraries for distro path
ceph_client role checks length of the `openstack_service_venv_bin` variable
to determine if libraries symlinking into venv should occur. So for
distro path this should be empty string as no symlinking should be done.
Change-Id: I6c46414fe773b85cea6d8e90d67450f712f96937
* Update openstack-ansible-os_manila 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: I51f7612381c6b7180cc1af1f564196aa08b2ed15