Comment 3 for bug 1755207

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-mon (master)

Reviewed: https://review.openstack.org/552513
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-mon/commit/?id=5dbafb0b2fc64cd63af0cdd351df79a4c33d9d21
Submitter: Zuul
Branch: master

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.

    Change-Id: If332d187f8dcb9f7fcd8b4a47f791beb8e27eaaa
    Closes-Bug: 1755207