]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Prevent failure from race creating fetch directory 391/head
authorgit-harry <git-harry@live.co.uk>
Wed, 26 Aug 2015 09:49:22 +0000 (10:49 +0100)
committergit-harry <git-harry@live.co.uk>
Wed, 26 Aug 2015 09:49:22 +0000 (10:49 +0100)
commitf60179e33f901c349f587961762a004a7188e7b7
tree9c4507b0cbf568fcd3d26267397256029707b614
parente41e197fe77c662c98576a29808ac312e73e32d0
Prevent failure from race creating fetch directory

When multiple monitor hosts attempt to create the fetch directory there
is the potential for the task to fail with:

  "OSError: [Errno 17] File exists: 'fetch'"

This appear to be an issue with the file module trying to create the
same directory at the same time when the tasks has been delegated to a
single host.

This commit enables run_once on the affected task which should address
the issue.
roles/ceph-common/tasks/main.yml