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

Fix prune deleted volumes for clones #148

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

kpawar-sap
Copy link

During prune deleted volumes option, if volume is offline, manila calls for ONTAP volume-destroy API. However if volume has one or more clones, the destroy operation fails. So upon receving clone related error, check clone spilt status and if not started, start it.

@kpawar-sap
Copy link
Author

possible fix for #145

@kpawar-sap
Copy link
Author

once clone split is started there are two cases

  1. if finished with 100%, in next prune deleted_volumes callback respective volume will get destroyed without any error.
  2. if not finished with 100%, the status function will return some value between 0-99 and we will continue in next execution of callback function. When it will be finished, we will execute case 1.

Consider this as RFC

Copy link
Member

@chuan137 chuan137 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for working on this, please see my comment

During prune deleted volumes option, if volume is offline, manila calls
for ONTAP volume-destroy API. However if volume has one or more clones,
the destroy operation fails. So upon receving clone related error, check
clone spilt status and if not started, start it.
@chuan137 chuan137 self-requested a review April 26, 2024 09:11
Copy link
Member

@chuan137 chuan137 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Carthaca Carthaca merged commit 0a721dd into stable/xena-m3 Apr 26, 2024
2 checks passed
@Carthaca Carthaca deleted the fix_delete_volume_periodic branch April 26, 2024 09:48
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.

3 participants