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: v14.1.0~624^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=503396f685f6a93e0c63e97477677b7145f96c26;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 --- 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 56592e33573..8937df6fa1c 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: