]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-handler: Fix osd restart condition v3.2.27
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 9 Sep 2019 15:23:47 +0000 (11:23 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 10 Sep 2019 20:53:38 +0000 (16:53 -0400)
commit28009496f60fed9fc9123b691c62ba4d2b3e31d1
treeb45bd76dbcc7388175a721055f0efa8f1f913d84
parent7347f32231e8af62ec817cc425c7110771290860
ceph-handler: Fix osd restart condition

In containerized deployment, the restart OSD handler couldn't be
triggered in most ansible execution.
This is due to the usage of run_once + a condition on the inventory
hostname and the last filter.
The run_once is triggered first so ansible will pick a node in the
osd group to execute the restart task. But if this node isn't the
last one in the osd group then the task is ignored. There's more
probability that the task will be ignored than executed.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 5b1c15653fcb4772f0839f3a57f7e36ba1b86f49)
roles/ceph-handler/handlers/main.yml