-
Notifications
You must be signed in to change notification settings - Fork 78
Manual cherry-pick: #4571 [cnv-4.21] Windows Session Scoped Data Source + CDI Clone and Hotplug implementation #5664
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
Open
acinko-rh
wants to merge
7
commits into
RedHatQE:cnv-4.21
Choose a base branch
from
acinko-rh:add_vtpm_to_cdi_clone-cnv-4.21
base: cnv-4.21
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c63ad8c
[Storage] Windows Session Scoped Data Source + CDI Clone and Hotplug …
acinko-rh 4ef06bc
backport session scoped win dv into 4.21
acinko-rh 0ffba91
backport session scoped win dv into 4.21
acinko-rh 7888436
Merge branch 'cnv-4.21' into add_vtpm_to_cdi_clone-cnv-4.21
acinko-rh 4158987
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9f5189f
move validation os images to storage conftest
acinko-rh e8c9d30
apply suggestions from #5664
acinko-rh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Test Execution Plan
tests/storage/cdi_clone/test_clone.pyuses the Fedora block-volume fixture. It does not requestcloned_windows_dv_multi_storage_scope_class. The new session fixture is not autouse.fedora_vm_for_hotplug_scope_class. Neither fixture chain reaches the Windows session fixture orconstruct_datavolume_source_dict.Affected tests to run
tests/storage/cdi_clone/test_clone.py::TestWindowsClonedDv::test_clone_dv_windows(tier3)tests/storage/cdi_clone/test_clone.py::TestWindowsClonedDv::test_vm_from_cloned_dv_windows(tier3)tests/storage/test_hotplug.py::TestHotPlugWindows::test_windows_hotplug(tier3)tests/storage/test_hotplug.py::TestHotPlugWindows::test_windows_hotplug_migrate(tier3)Dependency paths:
TestWindowsClonedDv→cloned_windows_dv_multi_storage_scope_class→windows_validation_os_images_data_source_scope_session→windows_validation_os_images_data_volume_scope_session→construct_datavolume_source_dict.TestHotPlugWindows→hotplug_volume_windows_scope_class→vm_instance_multi_storage_scope_class→windows_validation_os_images_data_source_scope_session→windows_validation_os_images_data_volume_scope_session→construct_datavolume_source_dict.Real tests (cluster required)
Error path: With no
win2k22DataVolume invalidation-os-images, run:pytest tests/storage/cdi_clone/test_clone.py::TestWindowsClonedDv::test_clone_dv_windows -m "tier3 or conformance"Expected: fixture setup fails with the explicit pre-created-image assertion. It must not import the image.
Happy path: With a valid default storage class and no
win2k22DataVolume, run:pytest tests/storage/cdi_clone/test_clone.py::TestWindowsClonedDv::test_clone_dv_windows tests/storage/cdi_clone/test_clone.py::TestWindowsClonedDv::test_vm_from_cloned_dv_windows tests/storage/test_hotplug.py::TestHotPlugWindowsExpected: the session fixture imports the image once, creates the DataSource, and both clone and hotplug workflows complete. Repeat with an existing succeeded
win2k22DataVolume to verify reuse.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.
verified
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.