Repository navigation
feat(MTV-689): add RDM disk bus type verification for rdmAsLun - #627
Conversation
Add verify_rdm_disk_bus_types() to validate that when rdmAsLun=true is set on the migration plan, RDM disks are mapped as LUN devices with SCSI bus (lun.bus: scsi) instead of regular virtio disks. - Add rdm_as_lun parameter to create_plan_resource() - Add rdm_as_lun config flag to RDM test configurations - Call verify_rdm_disk_bus_types in both virtual and physical RDM copy-offload test classes
|
Warning Review limit reached
Next review available in: 22 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
WalkthroughThe change adds the optional ChangesRDM LUN mapping
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant RDMTest
participant PlanResource
participant VirtualMachine
RDMTest->>PlanResource: Create plan
PlanResource->>VirtualMachine: Migrate RDM disks
RDMTest->>VirtualMachine: Verify disk buses
VirtualMachine-->>RDMTest: Return bus validation
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
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
Branch Management
Label Management
✅ Merge RequirementsThis PR will be automatically approved when the following conditions are met:
📊 Review ProcessApprovers and ReviewersApprovers:
Reviewers:
Available Labels
AI Features
Security Checks
💡 Tips
For more information, please refer to the project documentation or contact the maintainers. |
PR Summary by Qodofeat(MTV-689): Add RDM disk bus type verification for rdmAsLun
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@AGENTS.md`:
- Line 905: Update the `rdm_as_lun` table row in `AGENTS.md` to include the
missing trailing pipe, matching the surrounding Markdown table rows and
satisfying MD055.
In `@tests/copyoffload/test_copyoffload_migration.py`:
- Line 1575: Require the rdm_as_lun configuration in both RDM test plan
construction sites by replacing the fallback get access at
tests/copyoffload/test_copyoffload_migration.py lines 1575 and 1755 with direct
indexing. This ensures missing configuration fails immediately during plan
creation rather than defaulting to False.
In `@utilities/post_migration.py`:
- Around line 1651-1653: Justify the Any annotations for the plan and disks
parameters in the surrounding function. Add a concise comment explaining their
heterogeneous schemas, or replace Any with shared structured types that model
the supported test-plan and KubeVirt disk data; apply the same treatment to both
parameters.
- Around line 1665-1667: Update the docstring for the function containing the
disk bus validation to add ValueError to its Raises section, documenting that it
occurs when destination_provider.ocp_resource is unavailable. Preserve the
existing AssertionError documentation.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: cf315456-206b-45c0-a982-1dee60cd4835
📒 Files selected for processing (5)
AGENTS.mdtests/copyoffload/test_copyoffload_migration.pytests/tests_config/config.pyutilities/mtv_migration.pyutilities/post_migration.py
Code Review by Qodo
1.
|
|
Code review by qodo was updated up to the latest commit 8ba8e2b |
|
/verified |
|
/lgtm |
|
New container for ghcr.io/redhatqe/mtv-api-tests:latest published |
Add verify_rdm_disk_bus_types() to validate that when rdmAsLun=true is set on the migration plan, RDM disks are mapped as LUN devices with SCSI bus (lun.bus: scsi) instead of regular virtio disks.
Summary by CodeRabbit
New Features
Tests