From ca90c87c478e2edacc8bbe01be1e5c3c6e309baa Mon Sep 17 00:00:00 2001 From: Maurice Escher Date: Wed, 21 Jun 2023 14:56:50 +0200 Subject: [PATCH] skip periodic update on replicas in 'error_deleting' Change-Id: I737dbc5138c81e6708b9ebae7e7c11622e124a3d Closes-Bug: #2024578 --- manila/share/manager.py | 1 + ...24556-skip-error-deleting-replicas-aa2ef4154d5e38f6.yaml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/bug-2024556-skip-error-deleting-replicas-aa2ef4154d5e38f6.yaml diff --git a/manila/share/manager.py b/manila/share/manager.py index bae374356f..a7d6f648b2 100644 --- a/manila/share/manager.py +++ b/manila/share/manager.py @@ -2723,6 +2723,7 @@ class ShareManager(manager.SchedulerDependentManager): # We don't poll for replicas that are busy in some operation, # or if they are the 'active' instance. if (share_replica['status'] in constants.TRANSITIONAL_STATUSES + or share_replica['status'] == constants.STATUS_ERROR_DELETING or share_replica['replica_state'] == constants.REPLICA_STATE_ACTIVE): return diff --git a/releasenotes/notes/bug-2024556-skip-error-deleting-replicas-aa2ef4154d5e38f6.yaml b/releasenotes/notes/bug-2024556-skip-error-deleting-replicas-aa2ef4154d5e38f6.yaml new file mode 100644 index 0000000000..cddea08f5e --- /dev/null +++ b/releasenotes/notes/bug-2024556-skip-error-deleting-replicas-aa2ef4154d5e38f6.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Share replicas in state `error_deleting` are now skipped during periodic + updates. For more details, please refer to + `launchpad bug #2024556 `_