Comment 8 for bug 1971762

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-hacluster (stable/focal)

Reviewed: https://review.opendev.org/c/openstack/charm-hacluster/+/852410
Committed: https://opendev.org/openstack/charm-hacluster/commit/4661d9c4aa1bb5ada91a3233d34074a96657bb23
Submitter: "Zuul (22348)"
Branch: stable/focal

commit 4661d9c4aa1bb5ada91a3233d34074a96657bb23
Author: Felipe Reyes <email address hidden>
Date: Thu May 5 15:03:58 2022 -0400

    Catch FileExistsError when creating /etc/corosync dir.

    Hooks are expected to be idempotent, if the install hook for whatever
    reason needs to be re-run and the /etc/corosync directory already exists,
    because for example it was created in a previous run, the exception
    FileExistsError will be raised, this change captures the exception and
    moves on.

    Change-Id: If43a5c95bb59c9cca7f1a975214a9f013ad6f4d6
    Closes-Bug: #1971762
    (cherry picked from commit 715d31e09f939844bd27f2d4ed8c9207598a5938)