]> git.apps.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>
Sat, 6 Jan 2018 13:07:55 +0000 (14:07 +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>
infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml

index d9c7c9f6b34cfcfc6e26bfcb4cb09b297e687fdc..adaf4165f677c45815f5a517d48f0225b145bf5a 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