Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor fsx-filesystems.go to enhance error handling and robustness #1249

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hidday
Copy link

@hidday hidday commented Jul 31, 2024

Deleting FSx filesystems is failing when trying to delete an SVM with non-root attached volumes.

These changes ensure a more reliable cleanup process by handling associated SVMs and volumes and adding retry logic for file system deletion. This is necessary because

  1. Added retry logic for file system deletion with deleteFileSystemWithRetry, attempting up to 5 times with a 10-second delay.

  2. Introduced handling for Storage Virtual Machines (SVMs) by describing and deleting associated SVMs and non-root volumes before deleting the file system.

  3. Added helper function isRootVolume to identify root volumes by their name suffix.

…ess:

1. Added retry logic for file system deletion with `deleteFileSystemWithRetry`, attempting up to 5 times with a 10-second delay.
2. Introduced handling for Storage Virtual Machines (SVMs) by describing and deleting associated SVMs and non-root volumes before deleting the file system.
3. Added helper function `isRootVolume` to identify root volumes by their name suffix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant