]> 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)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Fri, 10 Aug 2018 10:59:51 +0000 (10:59 +0000)
commit16c23c4dd24239e68ef7a9673b93e47fcf326f7c
treeaddd8b703dfa755e7488c9894dc0b45330e13c8e
parenta4d8917729a5d77792f72298e6bbeba7ad4103dd
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>
(cherry picked from commit e84f11e99ef42057cd1c3fbfab41ef66cda27302)
roles/ceph-osd/tasks/build_devices.yml