Restart cinder-scheduler instead of reloading

During upgrade testing, I consistently notice
that the cinder-scheduler is running at 100% CPU and
appears to be in a hung state after the upgrade.

Restarting the process clears this up so this commit
changes the cinder-scheduler to a restart instead of
a reload.  This appears to have been an issue
previously but I've only seen the scheduler process
spinning at 100%.

https://bugs.launchpad.net/openstack-ansible/+bug/1709346

Change-Id: Ia0bf98413567267865be0503b08d5a03a9698214
This commit is contained in:
Antony Messerli 2018-10-26 16:37:43 -05:00
parent f8cb114869
commit c1e9a5f908
1 changed files with 5 additions and 5 deletions

View File

@ -107,13 +107,13 @@
- name: Execute cinder service reload
include: common-tasks/restart-service.yml
vars:
service_name: "{{ item }}"
service_action: "reloaded"
service_name: "{{ item.name }}"
service_action: "{{ item.action }}"
service_fact: "cinder"
with_items:
- "cinder-scheduler"
- "cinder-volume"
- "cinder-backup"
- { name: "cinder-scheduler", action: "restarted" }
- { name: "cinder-volume", action: "reloaded" }
- { name: "cinder-backup", action: "reloaded" }
when:
- "cinder_all_software_updated | bool"
- "ansible_local['openstack_ansible']['cinder']['need_service_restart'] | bool"