[4.22] [CCLM] Add cross-storage cross-cluster migration tests + STDs#5601
Conversation
Signed-off-by: Jenia Peimer <jpeimer@redhat.com>
- Add type hints to remote_cluster_storage_classes_names fixture - Add type hints to remote_cluster_source_storage_class fixture - Add type hints to local_cluster_target_storage_class fixture - Add docstring to get_storage_class_for_storage_migration() - Add docstrings to all three new fixtures - Fix line length in local_cluster_target_storage_class - Remove unused constant TESTS_CLASS_NAME_STORAGE_B_TO_A Assisted-by: Claude <noreply@anthropic.com> Signed-off-by: Jenia Peimer <jpeimer@redhat.com>
Assisted-by: Claude <noreply@anthropic.com> Signed-off-by: Jenia Peimer <jpeimer@redhat.com>
The Jira link is an epic tracker, not a bug — skip the verify-bugs-are-open check so it is not flagged as unresolved. Assisted-by: Claude <noreply@anthropic.com> Signed-off-by: Jenia Peimer <jpeimer@redhat.com>
Assisted-by: Claude <noreply@anthropic.com> Signed-off-by: Jenia Peimer <jpeimer@redhat.com>
Assisted-by: Claude <noreply@anthropic.com> Signed-off-by: Jenia Peimer <jpeimer@redhat.com>
Pass DynamicClient through to migrate_vm_and_verify so migrations use the correct cluster client. Add TYPE_CHECKING imports in test_cclm.py for the type hints introduced by the STD docstrings PR. Assisted-by: Claude <noreply@anthropic.com> Signed-off-by: Jenia Peimer <jpeimer@redhat.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (5)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 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
📌 Additional InformationCustom Commands:
For more information, please refer to the project documentation or contact the maintainers. |
|
D/S test |
|
D/S test |
|
/lgtm |
|
D/S test |
|
Hi @rnetser , polarion check is failing consistently for this PR with |
|
D/S test |
something on polarion side; passed now |
|
/approve |
|
Successfully removed PR tag: quay.io/openshift-cnv/openshift-virtualization-tests:pr-5601. |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:cnv-4.22 published |
What this PR does / why we need it:
Manual cherry-pick of #4650 and #5480
remote_cluster_source_storage_class,local_cluster_target_storage_classfixtures and wires them intolocal_cluster_mtv_storage_mapand VM fixtures instead of hardcodingpy_config["default_storage_class"].TestCCLMFromStorageAtoBclass that migrates fromSTORAGE_CLASS_AtoSTORAGE_CLASS_B. Existing test classes updated to parametrize storage classes (both use STORAGE_CLASS_B for same-storage).STORAGE_CLASS_A/B,NO_STORAGE_CLASS_FAILURE_MESSAGE, andget_storage_class_for_storage_migrationmoved fromstorage_migration/to sharedstorage/constants.pyand
storage/utils.pyfor reuse by CCLM.verify_compute_live_migration_after_cclmnow acceptsclient: DynamicClientand passes it tomigrate_vm_and_verify. This was needed because the upstream PRs added the client parameter at the call sites but the function signature didn't have it on this branch.Which issue(s) this PR fixes:
Special notes for reviewer:
jira-ticket: