ceph: Add become to gathering OSD IDs on reconfigure

We did use become: true on starting the osds, but not on reconfigure.

Closes-Bug: #1867946

Change-Id: Ie8a2d1a163528f509e126a807d4c73dd8106c47a
This commit is contained in:
Michal Nasiadka 2020-03-18 17:23:52 +01:00
parent ccdc807580
commit 326932924c
2 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,7 @@
- name: Gathering OSD IDs
command: "cat /var/lib/ceph/osd/{{ item['fs_uuid'] }}/whoami"
become: true
with_items: "{{ osds|default({}) }}"
register: osd_ids
changed_when: False

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixes ``ceph`` deployment reconfiguration error, when Gathering OSDs step
would fail due to Kolla-Ansible user not having access to
``/var/lib/ceph/osd/_FSID_/whoami``.
`LP#1867946 <https://launchpad.net/bugs/1867946>`__