• If you get the below error while sync in SWIFT.

K8S cluster object sync failed.
Detailed Error: Volume snapshot creation failed for the below volumes:
Namespace PVC Name Error
----------------------------- ----------------------------- ---------------------------------------------------------------------------------------------------
pk-test data-wordpress-mariadb-0 Failed to take a snapshot of the Azure share: pvc-793eb508-71be-4c3a-9fc0-debeb6e0923c. ERROR: Failed to trigger backup for share AzureFileShare;3cca88c1e147f3739aee1eef3b2367f8690afa796484c1a703b63715d9229e97. HTTP Error: POST request to the remote host failed [HTTP-Code: 400]: Server returned error response: {"error":{"code":"BMSUserErrorDataSourceInDeferredDeleteState","message":"This operation on a soft deleted backup item is not allowed. Undelete the soft deleted backup item and try again."}}.
 pk-test                       wordpress                     Failed to take a snapshot of the Azure share: pvc-7d9066de-7c96-4fec-a743-35158675b286. ERROR: Failed to trigger backup for share AzureFileShare;0a684e2f830c6cab3084645f26f471104aec1649bc4c6fe6454f06677d0a2044. HTTP Error: POST request to the remote host failed [HTTP-Code: 400]: Server returned error response: {"error":{"code":"BMSUserErrorDataSourceInDeferredDeleteState","message":"This operation on a soft deleted backup item is not allowed. Undelete the soft deleted backup item and try again."}}.



Issue Description: 

  • This error occurs when you try to perform an operation (such as restoring, modifying, or deleting) on a soft deleted backup item in Azure Backup or similar backup solutions.


Understanding Soft Deletion:

  • Soft deletion is a feature that retains backup data for a specified period after a deletion request to prevent accidental deletions or malicious attacks.
  • During the soft deletion retention period, the backup item remains in a "soft deleted" state and cannot be modified or restored until it is manually undeleted.


Resolution Steps: 

  • Go to the Azure Portal
  • Navigate to Recovery Services Vaults.
  • Select the vault containing the soft deleted backup item.
  • Click on Backup Items
  • Locate the backup item under the Soft Deleted Items section
  • Click on Undelete
  • Confirm the action
Once undeleted, you can sync again your operation on SWIFT.





How to Prevent This Issue in the Future?

  • Understand Retention Policies: Before deleting a backup, check if soft deletion is enabled and be aware of the retention period.

Disable Soft Deletion (If Necessary): If your use case doesn’t require soft deletion, you can disable it in the Recovery Services Vault settings


  • If you want to reproduce this error, then you can do below steps
  • Create a storageclass on azure k8s cluster.


  • Deploy the app with that Fileshare storageclass and delete the PVC.


 

  • Once you deleted the PVC, then it will go in soft delete state. And try sync. And you will get above error on SWIFT.