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)
Reviewed: https:/ /review. opendev. org/c/openstack /charm- hacluster/ +/852410 /opendev. org/openstack/ charm-hacluster /commit/ 4661d9c4aa1bb5a da91a3233d34074 a96657bb23
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/focal
commit 4661d9c4aa1bb5a da91a3233d34074 a96657bb23
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: If43a5c95bb59c9 cca7f1a975214a9 f013ad6f4d6 4bd27f2d4ed8c92 07598a5938)
Closes-Bug: #1971762
(cherry picked from commit 715d31e09f93984