skip periodic update on replicas in 'error_deleting'

Change-Id: I737dbc5138c81e6708b9ebae7e7c11622e124a3d
Closes-Bug: #2024578
This commit is contained in:
Maurice Escher 2023-06-21 14:56:50 +02:00
parent 5daf9bd6ca
commit ca90c87c47
No known key found for this signature in database
GPG Key ID: CC56DEC23EE46750
2 changed files with 7 additions and 0 deletions

View File

@ -2723,6 +2723,7 @@ class ShareManager(manager.SchedulerDependentManager):
# We don't poll for replicas that are busy in some operation, # We don't poll for replicas that are busy in some operation,
# or if they are the 'active' instance. # or if they are the 'active' instance.
if (share_replica['status'] in constants.TRANSITIONAL_STATUSES if (share_replica['status'] in constants.TRANSITIONAL_STATUSES
or share_replica['status'] == constants.STATUS_ERROR_DELETING
or share_replica['replica_state'] == or share_replica['replica_state'] ==
constants.REPLICA_STATE_ACTIVE): constants.REPLICA_STATE_ACTIVE):
return return

View File

@ -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 <https://bugs.launchpad.net/manila/+bug/2024556>`_