CherryPicked: [cnv-4.22] Add exclude filter to verify_boot_sources_reimported#5561
Conversation
After enabling common boot image imports, `verify_boot_sources_reimported` checks all DIC-managed DataSources. If the cluster has custom DataImportCron templates whose DataSources lack valid sources, the verification fails waiting for DataSources that will never become Ready. This PR adds an optional `exclude_data_source_names` denylist parameter so callers can skip specific DataSources. The default remains "verify all", which is backward compatible and automatically covers multiarch DataSource names (e.g. `fedora-aarch64`) and valid custom templates without requiring an explicit allowlist. The parameter is propagated through `disable_common_boot_image_import_hco_spec` so that `test_add_custom_data_import_cron_template_disable_spec` can exclude the custom DataSource during teardown verification. This PR also de-quarantines `test_add_custom_data_import_cron_template_disable_spec`, which was quarantined due to the teardown `AssertionError` in `verify_boot_sources_reimported` (CNV-88015). The fix resolves the root cause, so the quarantine marker is removed. [CNV-88015](https://redhat.atlassian.net/browse/CNV-88015) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> * **New Features** * Added support for excluding specific data sources during boot image import checks and re-enable flows. * Added a new test fixture that disables boot image import while excluding a custom data source. * **Tests** * Updated unit tests to verify the exclusion list is passed through correctly. * Removed an expected-failure marker from an updated boot image import test. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Signed-off-by: Ramon Lobillo Mateos <rlobillo@redhat.com>
|
@rlobillo — AI automatically resolved merge conflicts for this cherry-pick. Please review the changes carefully and verify correctness before merging. |
|
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. |
|
/build-and-push-container |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:pr-5561 published |
|
/verified All tests passed for PR #5561. Execution details |
|
/approve |
|
Successfully removed PR tag: quay.io/openshift-cnv/openshift-virtualization-tests:pr-5561. |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:cnv-4.22 published |
Cherry-pick from
mainbranch, original PR: #4983, PR owner: rlobillo