Repository navigation
feat: Add copy-offload migration test for VMs with RDM disks - #206
Merged
Merged
Conversation
|
Report bugs in Issues Welcome! 🎉This pull request will be automatically processed with the following features: 🔄 Automatic Actions
📋 Available CommandsPR Status Management
Review & Approval
Testing & Validation
Container Operations
Cherry-pick Operations
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
myakove
reviewed
Dec 9, 2025
myakove
left a comment
Collaborator
There was a problem hiding this comment.
Code Review
Found 11 issue(s) in this PR:
🔴 Critical Issues (6)
| File | Line | Issue |
|---|---|---|
libs/providers/vmware.py |
464 | Deterministic config - no .get() default |
libs/providers/vmware.py |
465 | Deterministic config - no .get() default |
libs/providers/vmware.py |
505 | Deterministic config - no .get() default |
tests/test_copyoffload_migration.py |
503 | Deterministic config - no .get() default |
tests/test_copyoffload_migration.py |
504 | Deterministic config - no .get() default |
tests/tests_config/config.py |
111 | Missing explicit rdm_type in config |
⚠️ Warnings (3)
| File | Line | Issue |
|---|---|---|
libs/providers/vmware.py |
467 | Redundant validation after .get() fix |
tests/test_copyoffload_migration.py |
508 | Inconsistent config access pattern |
libs/providers/vmware.py |
484 | Magic number without explanation |
💡 Suggestions (2)
| File | Line | Issue |
|---|---|---|
libs/providers/vmware.py |
456 | Missing type annotation for rdm_type |
libs/providers/vmware.py |
488 | Magic number without explanation |
Review generated by Claude Code
shellymiron
force-pushed
the
add_rdm_virt_xcopy_test
branch
from
December 14, 2025 14:06
17d0955 to
04931ee
Compare
shellymiron
force-pushed
the
add_rdm_virt_xcopy_test
branch
from
December 16, 2025 17:10
72be634 to
b6a6a2c
Compare
shellymiron
force-pushed
the
add_rdm_virt_xcopy_test
branch
from
December 16, 2025 17:23
b6a6a2c to
f408299
Compare
Collaborator
Author
shellymiron
force-pushed
the
add_rdm_virt_xcopy_test
branch
4 times, most recently
from
December 23, 2025 13:09
680b4c5 to
276b271
Compare
This change adds support for testing migration of VMs with RDM (Raw Device
Mapping) disks using the copy-offload functionality.
Key changes:
- Add add_rdm_disk_to_vm() method in VMWareProvider to attach RDM disks
to VMs post-clone (required since RDM cannot be added during clone on
NFS datastores)
- Modify clone_vm() to filter RDM disks from add_disks and attach them
after the clone completes using ReconfigVM_Task
- Add test_copyoffload_rdm_virtual_disk_migration test for virtual
compatibility mode RDM disk migration
- Add test configuration in config.py
- Update README with RDM testing documentation
Configuration:
Requires rdm_lun_uuid in .providers.json copyoffload section:
copyoffload: {
rdm_lun_uuid: naa.XXXXXXXXXXXXXXX
}
The implementation includes foundation for physical compatibility mode
testing in future PRs.
shellymiron
force-pushed
the
add_rdm_virt_xcopy_test
branch
from
December 23, 2025 13:22
276b271 to
04495d9
Compare
Collaborator
Author
|
New container for quay.io/openshift-cnv/mtv-tests:latest published |
5 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

This change adds support for testing migration of VMs with RDM (Raw Device Mapping) disks using the copy-offload functionality.
Key changes:
Configuration:
Requires rdm_lun_uuid in .providers.json copyoffload section:
copyoffload: {
rdm_lun_uuid: naa.XXXXXXXXXXXXXXX
}
The implementation includes foundation for physical compatibility mode testing in future PRs.