From 9f266de01292a4676426e8d3859eb5c8fedd0a22 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 13 Dec 2018 09:49:41 -0500 Subject: [PATCH] ceph-volume tests.functional.lvm stop all osds before activating again to test permissions Otherwise, ``ceph-volume lvm activate --all`` will skip OSDs that are already running. So the test that verifies that permissions are corrected will fail because ``activate`` will simply skip them Signed-off-by: Alfredo Deza (cherry picked from commit 9be6b15d3316c8eab159bc5d374e95e23d082dde) --- .../tests/functional/lvm/playbooks/test_filestore.yml | 10 ++++++++++ 1 file changed, 10 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 8937df6fa1cac..8fd1a9ba96d19 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 @@ -104,6 +104,16 @@ with_items: - "{{ osd_paths.files }}" + - name: stop ceph-osd@2 daemon + service: + name: ceph-osd@2 + state: stopped + + - name: stop ceph-osd@1 daemon + service: + name: ceph-osd@0 + state: stopped + - name: activate all to start the previously prepared osd.0 command: "ceph-volume lvm activate --filestore --all" environment: -- 2.39.5