]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
switch-to-containers: do not fail when stopping the nfs-ganesha service
authorAndrew Schoen <aschoen@redhat.com>
Fri, 5 Jan 2018 18:42:16 +0000 (12:42 -0600)
committerSébastien Han <seb@redhat.com>
Tue, 9 Jan 2018 16:50:52 +0000 (17:50 +0100)
If we're working with a jewel cluster then this service will not exist.

This is mainly a problem with CI testing because our tests are setup to
work with both jewel and luminous, meaning that eventhough we want to
test jewel we still have a nfs-ganesha host in the test causing these
tasks to run.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit b613321c210155f390d4ddb7dcda8dc685a6e9ea)
Signed-off-by: Sébastien Han <seb@redhat.com>
infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml

index 49d8e7fe91fb5858aa6d9625c64ed7ab0c02f04e..8970d2144b2d70bee7b2306dd996c9c89947202f 100644 (file)
   become: true
 
   pre_tasks:
+    # failed_when: false is here because if we're
+    # working with a jewel cluster then ceph nfs
+    # will not exist
     - name: stop non-containerized ceph nfs(s)
       service:
         name: nfs-ganesha
         state: stopped
         enabled: no
+      failed_when: false
 
     - set_fact:
         ceph_uid: 64045