TRID-20775: TRID-20775: Managed Import Stuck in Pending After Controller Restart
Issue
Managed import of an existing ONTAP volume persists an
importVolume transaction beforevolConfig.InternalName is computed and before the backend rename completes. If the trident-controller is replaced or restarted after ONTAP has already renamed the volume to the new internal name, bootstrap recovery cannot rename it back: resetImportedVolumeName / concurrent handleFailedTransaction call RenameVolume with an empty InternalName, log only at Debug (or fail silently), delete the transaction, and every subsequent CSI CreateVolume / ImportVolume retry looks for ImportOriginalName, which no longer exists on the array. The PVC stays Pending until someone manually renames the ONTAP volume back.