From b052ebf76123f7f3bf4bf41f1beef6b773e4ee13 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Mon, 10 Dec 2018 14:52:03 -0500 Subject: [PATCH] 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) --- .../lvm/playbooks/test_filestore.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 56592e335737e..8937df6fa1cac 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: -- 2.39.5