Role os_cinder for OpenStack-Ansible
Go to file
Dmitriy Rabotyagov 03d239449c Restart cinder-purge-deleted service only on abnormal exit
Default value of Restart for any service which type is not `oneshot` is
`on-failure`. While this suits most usecases, this leads to unexpected
consequences for cinder-purge-deleted.service.

In case there're some historical inconsistencies in the database which
make impossible to flush deleted volumes from the database
(ie due to prior manual intervention), cinder-manage exists with code 1
which triggers systemd to restart the service and attempt cleanup again.

The troublesome part is the transactional behaviour of the script. With
each run it locks records in it's transaction that is failing and being
reverted in a loops with 2 sec delay, that not only causes unnecessary
load for database itself, but also causes deadlocks during operations
with volumes that are not being re-tryed and fail with 500 return code
in cinder-api.

Changing Restart to `on-abnormal` will leave service in a failed state
and systemd won't attempt to restart it.

Change-Id: Ib091cc11a16fcd31ef351d9ec21d070d25829791
(cherry picked from commit 7e2cf5283f)
2023-12-15 14:05:56 +00:00
defaults Add way to periodically trim Cinder DB 2023-05-18 08:10:21 +00:00
doc Remove mention of haproxy-endpoints role 2022-06-14 18:02:35 +00:00
examples Trivial: Fix the pep8 warning 2018-08-06 07:21:04 +00:00
handlers Add TLS support to cinder backends 2023-04-29 18:36:09 +02:00
meta Remove references to unsupported operating systems 2021-03-10 12:16:37 +00:00
releasenotes Add way to periodically trim Cinder DB 2023-05-18 08:10:21 +00:00
tasks Restart cinder-purge-deleted service only on abnormal exit 2023-12-15 14:05:56 +00:00
templates Use proper galera port in configuration 2023-08-23 07:26:20 +00:00
tests Cleanup after repo_build and pip_install retirement 2020-05-12 21:24:39 +03:00
vars Ensure service is restarted on unit file changes 2023-04-07 09:53:38 +00:00
zuul.d Add nfs and ceph jobs to templates 2022-10-04 12:56:58 +02:00
.gitignore Updated from OpenStack Ansible Tests 2019-08-20 03:05:44 +00:00
.gitreview Update .gitreview for stable/2023.1 2023-05-24 08:53:14 +00:00
CONTRIBUTING.rst [ussuri][goal] Update contributor documentation 2020-05-12 21:23:05 +03:00
LICENSE Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-07-11 09:32:16 +08:00
Vagrantfile Updated from OpenStack Ansible Tests 2021-12-17 16:45:39 +00:00
bindep.txt Updated from OpenStack Ansible Tests 2021-03-12 22:18:16 +00:00
manual-test.rc Ansible 2.1.1 update 2016-09-27 15:00:22 +00:00
run_tests.sh Updated from OpenStack Ansible Tests 2022-04-04 09:37:40 +00:00
tox.ini Update TOX_CONSTRAINTS_FILE for stable/2023.1 2023-05-24 08:53:15 +00:00

README.rst

Team and repository tags

image

OpenStack-Ansible cinder

This Ansible role installs and configures OpenStack cinder.

Documentation for the project can be found at:

https://docs.openstack.org/openstack-ansible-os_cinder/latest/

Release notes for the project can be found at:

https://docs.openstack.org/releasenotes/openstack-ansible-os_cinder

The project source code repository is located at:

https://opendev.org/openstack/openstack-ansible-os_cinder

The project home is at:

https://launchpad.net/openstack-ansible

The project bug tracker is located at:

https://bugs.launchpad.net/openstack-ansible