charm-ceph-mon/files
Tamas Erdei 5dbafb0b2f Fix race condition in collect_ceph_status.sh
There is a race condition between collect_ceph_status.sh writing
the status file and check_ceph_status.py reading that file.

This patch fixes that by directing ceph output into a temp file,
and then replacing the old state file with the new temp file using
an atomic mv operation.

Change-Id: If332d187f8dcb9f7fcd8b4a47f791beb8e27eaaa
Closes-Bug: 1755207
2018-03-13 14:30:49 +01:00
..
nagios Fix race condition in collect_ceph_status.sh 2018-03-13 14:30:49 +01:00