]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-handler: don't restart all OSDs with limit
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 2 Oct 2019 18:48:53 +0000 (14:48 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Thu, 3 Oct 2019 18:52:27 +0000 (14:52 -0400)
commit0346871fb5c46fb1fedfb24ffe5a8c02108c244e
tree299a1fa44253acc5169ce668e12e83ec5e80a763
parent780cf36a596cce1ba786f7f04cfbf86fa7fd9621
ceph-handler: don't restart all OSDs with limit

When using the ansible --limit option on one or few OSD nodes and if the
handler is triggered then we will restart the OSD service on all OSDs
nodes instead of the hosts limited by the limit value.
Even if the play is limited by the --limit value we are using all OSD
nodes from the OSD group.

  with_items: '{{ groups[osd_group_name] }}'

Instead we should iterate only on the nodes present in both OSD group and
limit list.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-handler/handlers/main.yml