]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Add run_once to 'copy keys to the ansible server' 448/head
authorMatt Thompson <mattt@defunct.ca>
Fri, 4 Dec 2015 15:31:17 +0000 (15:31 +0000)
committerMatt Thompson <mattt@defunct.ca>
Fri, 4 Dec 2015 16:14:18 +0000 (16:14 +0000)
I have seen a number of failures on this task due to mismatch of
checksum of source file and destination.  I suspect this is due to a
race condition caused by several hosts simultaneously copying the same
file to single location on the deployment server.

This change simply updates the 'copy keys to the ansible server' task
by adding 'run_once', which limits the task to being run on a single
MON host.

Closes issue #410

roles/ceph-mon/tasks/ceph_keys.yml

index a28aca4c1e858063a49ed3d5bf451422eed60cd5..544478cfa88b9a22bae9031daafe9502642de244 100644 (file)
@@ -39,6 +39,7 @@
     src: "{{ item }}"
     dest: "{{ fetch_directory }}/{{ fsid }}/{{ item }}"
     flat: yes
+  run_once: true
   with_items:
     - "{{ ceph_keys.stdout_lines }}"
     - /var/lib/ceph/bootstrap-osd/ceph.keyring