]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge: do not fail on purge ceph files
authorSébastien Han <seb@redhat.com>
Fri, 27 Jan 2017 12:45:16 +0000 (13:45 +0100)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 31 Jan 2017 13:35:26 +0000 (07:35 -0600)
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 <seb@redhat.com>
(cherry picked from commit cb57a359ba77bbb62d531666a547bef5b5d67c44)

infrastructure-playbooks/purge-cluster.yml

index ed4a4012ae4d29a010e7f72a6019f008d8f69fe1..2bff676a0f4b8a8a04ac8f5083350474aff94a2c 100644 (file)
 
   - 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