Trident backend definition update on MetroCluster switchover and -back made easy
Applies to
- Trident for Kubernetes/Openshift
- (Clustered) ONTAP Metrocluster switchover/switchback
- SVM-DR usage failover/giveback
Description
According to the online documentation, when an MetroCluster, which uses VServer-DR, is in use, and a switchover or switchback happens, several things need to be handled:
- if the SVM name is in the TBC YAML or the tridentctl managed JSON (Point 6: SnapMirror SVM Disaster Recovery Workflow for Trident), it needs to be updated - see also Issue #228
- the TBE created from the TBC also maintains a list of storagePools in its definition, albeit base64 encoded - see:
kubctl get tbe <BACKEND> -n <TRIDENT_NAMESPACE> -o jsonbase64 -d "<base64_encoded_string>"
