commit 5dbafb0b2fc64cd63af0cdd351df79a4c33d9d21
Author: Tamas Erdei <email address hidden>
Date: Tue Mar 13 14:24:25 2018 +0100
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.
Reviewed: https:/ /review. openstack. org/552513 /git.openstack. org/cgit/ openstack/ charm-ceph- mon/commit/ ?id=5dbafb0b2fc 64cd63af0cdd351 df79a4c33d9d21
Committed: https:/
Submitter: Zuul
Branch: master
commit 5dbafb0b2fc64cd 63af0cdd351df79 a4c33d9d21
Author: Tamas Erdei <email address hidden>
Date: Tue Mar 13 14:24:25 2018 +0100
Fix race condition in collect_ ceph_status. sh
There is a race condition between collect_ ceph_status. sh writing status. py reading that file.
the status file and check_ceph_
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: If332d187f8dcb9 f7fcd8b4a47f791 beb8e27eaaa
Closes-Bug: 1755207