From: Alfredo Deza Date: Mon, 10 Dec 2018 19:52:03 +0000 (-0500) Subject: ceph-volume tests.functional set root:root in OSDs in filestore X-Git-Tag: v13.2.5~141^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b052ebf76123f7f3bf4bf41f1beef6b773e4ee13;p=ceph.git ceph-volume tests.functional set root:root in OSDs in filestore To make sure that ceph-volume will be able to set the right permissions when trying to activate Signed-off-by: Alfredo Deza (cherry picked from commit 503396f685f6a93e0c63e97477677b7145f96c26) --- diff --git a/src/ceph-volume/ceph_volume/tests/functional/lvm/playbooks/test_filestore.yml b/src/ceph-volume/ceph_volume/tests/functional/lvm/playbooks/test_filestore.yml index 56592e335737..8937df6fa1ca 100644 --- a/src/ceph-volume/ceph_volume/tests/functional/lvm/playbooks/test_filestore.yml +++ b/src/ceph-volume/ceph_volume/tests/functional/lvm/playbooks/test_filestore.yml @@ -86,6 +86,24 @@ environment: CEPH_VOLUME_DEBUG: 1 + - name: find all OSD paths + find: + paths: /var/lib/ceph/osd + recurse: no + file_type: directory + register: osd_paths + + # set all OSD paths to root:rootto ensure that the OSD will be able to + # activate regardless + - name: mangle permissions to root + file: + path: "{{ item.path }}" + owner: root + group: root + recurse: yes + with_items: + - "{{ osd_paths.files }}" + - name: activate all to start the previously prepared osd.0 command: "ceph-volume lvm activate --filestore --all" environment: