Skip to content

Commit

Permalink
Recognize finalizing status on backend mirror relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
torirevilla authored Dec 14, 2023
1 parent d7aa500 commit 9e2a6ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions storage_drivers/ontap/api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ const (
SnapmirrorStatusBreaking = SnapmirrorStatus("breaking")
SnapmirrorStatusQuiescing = SnapmirrorStatus("quiescing")
SnapmirrorStatusTransferring = SnapmirrorStatus("transferring")
SnapmirrorStatusFinalizing = SnapmirrorStatus("finalizing")
// Snapmirror transfer status for REST
SnapmirrorStatusAborted = SnapmirrorStatus("aborted")
SnapmirrorStatusFailed = SnapmirrorStatus("failed")
Expand Down
2 changes: 2 additions & 0 deletions storage_drivers/ontap/ontap_volume_replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ func getMirrorStatus(
return v1.MirrorStatePromoting, nil
case api.SnapmirrorStatusAborting:
return v1.MirrorStatePromoting, nil
case api.SnapmirrorStatusFinalizing:
return v1.MirrorStateEstablishing, nil
default:
Logc(ctx).WithField("snapmirror.State", snapmirror.State).Debug("Checking snapmirror state.")
switch snapmirror.State {
Expand Down

0 comments on commit 9e2a6ff

Please sign in to comment.