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-1693 | Ignore missing PVC prime #1211

Merged
merged 2 commits into from
Nov 28, 2024
Merged

MTV-1693 | Ignore missing PVC prime #1211

merged 2 commits into from
Nov 28, 2024

Conversation

mnecas
Copy link
Member

@mnecas mnecas commented Nov 26, 2024

Issue: The migration fails on cluster with 4.14 CNV CDI. The 4.14 CNV CDI does not use prime PVC but uses the DV id.
Error:

persistentvolumeclaims prime-b9d0f99b-4e02-469e-83e2-74dbb186531b not found

Fix: Try to fetch the prime pvc but if it fails use the original name and ignore error. This way it will be backwards compatible and support the new prime PVC case.

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

Issue: The migration fails on cluster with 4.14 CNV CDI. The 4.14 CNV
CDI does not use prime PVC but uses the DV id.
Error:
```
persistentvolumeclaims prime-b9d0f99b-4e02-469e-83e2-74dbb186531b not found
```

Fix: Try to fetch the prime pvc but if it fails use the original name
and ignore error. This way it will be backwards compatible and support
the new prime PVC case.

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

Signed-off-by: Martin Necas <[email protected]>
@mnecas mnecas requested a review from yaacov as a code owner November 26, 2024 13:41
@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 15 lines in your changes missing coverage. Please review.

Project coverage is 15.65%. Comparing base (3f82781) to head (8b33842).

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

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1211      +/-   ##
==========================================
- Coverage   15.65%   15.65%   -0.01%     
==========================================
  Files         112      112              
  Lines       23071    23075       +4     
==========================================
  Hits         3612     3612              
- Misses      19174    19178       +4     
  Partials      285      285              
Flag Coverage Δ
unittests 15.65% <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.5 milestone Nov 28, 2024
@mnecas mnecas merged commit ea83264 into kubev2v:main Nov 28, 2024
15 checks passed
@mnecas mnecas mentioned this pull request Nov 28, 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