From b613321c210155f390d4ddb7dcda8dc685a6e9ea Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Fri, 5 Jan 2018 12:42:16 -0600 Subject: [PATCH] switch-to-containers: do not fail when stopping the nfs-ganesha service 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 --- ...h-from-non-containerized-to-containerized-ceph-daemons.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml index d9c7c9f6b..adaf4165f 100644 --- a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml +++ b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml @@ -441,11 +441,15 @@ 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 -- 2.39.5