]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume tests.functional.lvm stop all osds before activating again to test permis... 25477/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 13 Dec 2018 14:49:41 +0000 (09:49 -0500)
committerAlfredo Deza <adeza@redhat.com>
Thu, 13 Dec 2018 14:49:41 +0000 (09:49 -0500)
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 <adeza@redhat.com>
src/ceph-volume/ceph_volume/tests/functional/lvm/playbooks/test_filestore.yml

index 8937df6fa1cac5ffb8a59057144400dc50f49121..8fd1a9ba96d19627d0553082678bc78a67cb594e 100644 (file)
       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: