Role os_cinder for OpenStack-Ansible
Go to file
Dmitriy Rabotyagov 7e2cf5283f 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
2023-11-08 09:01:19 +00:00
defaults Merge "Add quorum queues support for service" 2023-09-04 12:43:30 +00:00
doc Remove mention of haproxy-endpoints role 2022-06-14 18:02:35 +00:00
examples Fix example playbook linters 2023-11-08 10:00:57 +01:00
handlers Add TLS support to cinder backends 2023-04-29 18:36:09 +02:00
meta Fix linters and metadata 2023-07-14 12:58:19 +00:00
releasenotes Reduce memory consumption in Cinder services 2023-07-10 11:35:06 +02:00
tasks Restart cinder-purge-deleted service only on abnormal exit 2023-11-08 09:01:19 +00:00
templates Merge "Add quorum queues support for service" 2023-09-04 12:43:30 +00:00
tests Cleanup after repo_build and pip_install retirement 2020-05-12 21:24:39 +03:00
vars Split lines to not exceed 160 characters limit 2023-09-18 16:17:05 +02: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 OpenDev Migration Patch 2019-04-19 19:40:40 +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 Cleanup setup.py config 2022-04-04 10:37:10 +01: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