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
explicitly skip cd-rom drives during migration #5020
Conversation
// explicitly skip cd-rom drives | ||
if disk.Device == "cdrom" { | ||
continue | ||
} | ||
if disk.ReadOnly != nil && !migrationVols.isGeneratedVolume(disk.Alias.GetName()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I find interesting: I see here disk.ReadOnly
: Do we have an explanation why the readonly cdrom drive was not skipped by this?
/retest |
1 similar comment
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
/hold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhiller The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Why is this PR on hold? I can't tell from the discussion why it should be. |
/unhols |
/unhold |
tests/migration_test.go
Outdated
tests.ConfirmVMIPostMigration(virtClient, vmi, migrationUID) | ||
|
||
// delete VMI | ||
By("Deleting the VMI") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cleanup is done automatically. The VMi does not have to be extra deleted and waited for to disappear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, done
tests/migration_test.go
Outdated
tests.WaitForVirtualMachineToDisappearWithTimeout(vmi, 240) | ||
|
||
}, | ||
table.Entry("Should successfully migrate vmi with a cd-rom on a sata bus", "sata", ""), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also just add both cdrom drives to a single VMI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
2944672
to
cc9c7f7
Compare
cc9c7f7
to
7184443
Compare
/retest |
1 similar comment
/retest |
5dae2bf
to
d3fce19
Compare
/retest |
Signed-off-by: Vladik Romanovsky <vromanso@redhat.com>
d3fce19
to
51da37c
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/retest |
1 similar comment
/retest |
@vladikr: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/cherrypick release-0.36 |
@vladikr: #5020 failed to apply on top of branch "release-0.36":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does / why we need it:
We should explicitly skip cdrom drives during migration. Adding a functional tests as well to cover this scenario.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Should address: https://bugzilla.redhat.com/show_bug.cgi?id=1927378
Release note: