]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
osd: generate device list for osd_auto_discovery on rolling_update
authorSébastien Han <seb@redhat.com>
Thu, 9 Aug 2018 13:18:34 +0000 (15:18 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 10 Aug 2018 07:19:40 +0000 (09:19 +0200)
commite84f11e99ef42057cd1c3fbfab41ef66cda27302
treeba7a7e8b7604538774f0c6ce44ee3c7f2a38104d
parente15c61b601c9b81ef9125e29a9d833c96e3f52ce
osd: generate device list for osd_auto_discovery on rolling_update

rolling_update relies on the list of devices when performing the restart
of the OSDs. The task that is builind the devices list out of the
ansible_devices dict only runs when there are no partitions on the
drives. However during an upgrade the OSD are already configured, they
have been prepared and have partitions so this task won't run and thus
the devices list will be empty, skipping the restart during
rolling_update. We now run the same task under different requirements
when rolling_update is true and build a list when:

* osd_auto_discovery is true
* rolling_update is true
* ansible_devices exists
* no dm/lv are part of the discovery
* the device is not removable
* the device has more than 1 sector

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1613626
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-osd/tasks/build_devices.yml