From c1e9a5f90885cfdaaa995b9e066d7f186a1fe930 Mon Sep 17 00:00:00 2001 From: Antony Messerli Date: Fri, 26 Oct 2018 16:37:43 -0500 Subject: [PATCH] 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 --- playbooks/os-cinder-install.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/playbooks/os-cinder-install.yml b/playbooks/os-cinder-install.yml index d4daafbb7c..c879673ce1 100644 --- a/playbooks/os-cinder-install.yml +++ b/playbooks/os-cinder-install.yml @@ -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"