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

MTV-1767 | Add wait for snapshot removal timeout #1253

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

mnecas
Copy link
Member

@mnecas mnecas commented Dec 9, 2024

Issue: The migration fails with Another task is already in progress. This is caused because of the snapshot creation is started right after snapshot removal and the snapshot removal did not finish due to the consolidation.

Fix: I have added a timeout which users can control using the controller_snapshot_removal_check_retries variable. This will wait some time right after snapshot removal. This is just a temporary solution to unblock the users. I'll fix it properly using the VM events and tasks, but that will require a lot of changes in the controller inventory and main.

Ref: https://issues.redhat.com/browse/MTV-1767

Issue: The migration fails with `Another task is already in progress`.
This is caused because of the snapshot creation is started right after
snapshot removal and the snapshot removal did not finish due to the
consolidation.

Fix: I have added a timeout which users can control using the `controller_snapshot_removal_check_retries`
variable. This will wait some time right after snapshot removal.
This is just a temporary solution to unblock the users. I'll fix it
properly using the VM events and tasks, but that will require a lot of
changes in the controller inventory and main.

Ref: https://issues.redhat.com/browse/MTV-1753

Signed-off-by: Martin Necas <[email protected]>
@mnecas mnecas requested a review from yaacov as a code owner December 9, 2024 12:23
Copy link

sonarcloud bot commented Dec 9, 2024

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 24 lines in your changes missing coverage. Please review.

Project coverage is 15.56%. Comparing base (b2c304d) to head (4423694).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pkg/controller/plan/migration.go 0.00% 24 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1253      +/-   ##
==========================================
+ Coverage   15.54%   15.56%   +0.01%     
==========================================
  Files         112      112              
  Lines       23233    23255      +22     
==========================================
+ Hits         3612     3620       +8     
- Misses      19336    19347      +11     
- Partials      285      288       +3     
Flag Coverage Δ
unittests 15.56% <0.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mnecas mnecas added this to the 2.7.6 milestone Dec 9, 2024
@mnecas mnecas merged commit 1575b38 into kubev2v:main Dec 9, 2024
20 checks passed
@mnecas
Copy link
Member Author

mnecas commented Dec 9, 2024

Merging for 2.7.6 release any notes I'll address in further PRs

@mnecas mnecas changed the title MTV-1753 | Add wait for snapshot removal timeout MTV-1767 | Add wait for snapshot removal timeout Dec 12, 2024
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.

2 participants