Stale FlexCache Reference Preventing Volume Deletion
Applies to
- AFF
- AFF-A800
- 9.17.1P6 CLUSTER-MODE
Issue
- Deletion of a volume in SVM via Terraform on ONTAP is failing due to stale references to a non-existent FlexCache volume
- REST API errors are returned during the delete operation, indicating that the volume is still considered the origin for a FlexCache relationship, even though no FlexCache caches are currently shown for the origin volume.
- Attempts to clean up the FlexCache relationship using ONTAP commands have failed, and the issue persists despite no recent changes or maintenance in the environment
- On the origin, we see
'[kern_mgwd:info:4232] Warning: REST: Cluster peer cache miss for peer cluster <cache cluster peer uuid>' - Command to clean up the cache relationship failed,
flexcache origin cleanup-cache-relationship -origin-volume <origin_vol> -origin-vserver <origin_vserver> -cache-vserver <cache_vserver> -cache-volume <cache_volume> -force-retry true
