]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
filestore-to-bluestore: fix undefine osd_fsid_list
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 27 Jan 2020 14:36:56 +0000 (09:36 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 28 Jan 2020 01:42:39 +0000 (02:42 +0100)
If the playbook is used on a host running bluestore OSDs then the
osd_fsid_list won't be filled because the bluestore OSDs are reported
with 'type: block' via ceph-volume lvm list command but we are looking
for 'type: data' (filestore).

TASK [zap ceph-volume prepared OSDs] *********
fatal: [xxxxx]: FAILED! =>
  msg: '''osd_fsid_list'' is undefined

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1729267
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
infrastructure-playbooks/filestore-to-bluestore.yml

index 49c1faa039a8a38683f73fce0bf8719aaf45767f..3f00fdfdffa30e51f011c77119ce644a913ca452 100644 (file)
                 CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else None }}"
                 CEPH_CONTAINER_BINARY: "{{ container_binary }}"
               loop: "{{ osd_fsid_list }}"
+              when: osd_fsid_list is defined
 
             - name: ensure all dm are closed
               command: dmsetup remove "{{ item['lv_path'] }}"