From cb57a359ba77bbb62d531666a547bef5b5d67c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Fri, 27 Jan 2017 13:45:16 +0100 Subject: [PATCH] purge: do not fail on purge ceph files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On systems running docker there is an issue with lxfs that results in the find command returning 1 but actually did the job. e.g: on a system with docker runnning find /var will give us the following error: find: '/var/lib/lxcfs/cgroup/devices/lxc/x1/system.slice/systemd-update-utmp.service/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/lxc/x1/system.slice/dev-random.mount/devices.allow': Permission denied ... ... However ceph files got deleted so we ignore the error. Signed-off-by: Sébastien Han --- infrastructure-playbooks/purge-cluster.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 6911fc51e..9fea583df 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -593,6 +593,7 @@ - name: remove upstart and apt logs and cache shell: "find /var -name '*ceph*' -delete" + failed_when: false when: ansible_distribution == 'Ubuntu' - name: request data removal