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 committed by Jesse Pretorius (odyssey4me)
parent 99526d91fc
commit 799309d1f0
1 changed files with 5 additions and 5 deletions

View File

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