7e2cf5283f
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 |
||
---|---|---|
defaults | ||
doc | ||
examples | ||
handlers | ||
meta | ||
releasenotes | ||
tasks | ||
templates | ||
tests | ||
vars | ||
zuul.d | ||
.gitignore | ||
.gitreview | ||
CONTRIBUTING.rst | ||
LICENSE | ||
README.rst | ||
Vagrantfile | ||
bindep.txt | ||
manual-test.rc | ||
run_tests.sh | ||
tox.ini |
README.rst
Team and repository tags
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:
- The project home is at:
- The project bug tracker is located at: