From 4597939d9e689b2bc941c4b5ad4b2e84f2778698 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 (cherry picked from commit ca90c87c478e2edacc8bbe01be1e5c3c6e309baa) (cherry picked from commit 9338a3afec2b32f312c5787eb8637cfa92429c42) (cherry picked from commit c14f4f0940c7ee1676591f9b06139ec749094c1b) --- 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 f0fceafc10..52af429120 100644 --- a/manila/share/manager.py +++ b/manila/share/manager.py @@ -2668,6 +2668,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 `_