Skip to content

[linstor] Fix instance snapshot revert and delete on linstor storage#9527

Closed
wornet-mwo wants to merge 1 commit into
apache:4.19from
simply42:9522-fix-linstor-instance-snapshot-revert-delete
Closed

[linstor] Fix instance snapshot revert and delete on linstor storage#9527
wornet-mwo wants to merge 1 commit into
apache:4.19from
simply42:9522-fix-linstor-instance-snapshot-revert-delete

Conversation

@wornet-mwo
Copy link
Copy Markdown
Contributor

Description

This PR is replacing getUuid on volume objects by getPath. It uses the uuid , when path is not set (which may happen in some cases.

Fixes: #9522

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

How Has This Been Tested?

Reproduced the issue using fresh instances on NFS storage. See linked issue for details.

…ot work

The snapshot strategy uses volume uuids instead of their paths. This commit fixes that.

No backport to 4.18 as the file does not exist there.

Signed-off-by: Michael Wodniok <michael.wodniok@wor.net>
Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

code looks good, though I am not sure about the logic (cc @rp-)
@wornet-mwo , as you are making the same change in two places, can you extract it to a method, please?

@rp-
Copy link
Copy Markdown
Contributor

rp- commented Aug 14, 2024

I have an upcoming PR that fixes migrate primary storage to Linstor, which will have this fix included.
Actually I wanted to submit the PR today

@wornet-mwo
Copy link
Copy Markdown
Contributor Author

@rp- In that case i would prefer your implementation before "refactoring" here as i'm pretty sure there are more similar calls in other places. Maybe you want to link the issue in your PR.

It'd be nice to link it here before closing this PR.

@rp-
Copy link
Copy Markdown
Contributor

rp- commented Aug 14, 2024

Here it is: #9528

@wornet-mwo
Copy link
Copy Markdown
Contributor Author

Thank you, closing here.

@wornet-mwo wornet-mwo closed this Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[linstor] Fail to revert or delete instance snapshot in case of migrated volumes

3 participants