feat: add allow_workload_disruption parameter to MigrationPolicy#2676
feat: add allow_workload_disruption parameter to MigrationPolicy#2676rnetser merged 1 commit intoRedHatQE:mainfrom
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
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. |
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughAdded optional Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
|
/lgtm @SamAlber please rebase and verify |
KubeVirt introduced AllowWorkloadDisruption in the MigrationPolicySpec. This field controls migration behavior when migrations exceed AcceptableCompletionTime: the controller can pause the VMI or switch to post-copy to force completion.
3dedff0 to
8e8b12b
Compare
|
/verified Added parameter in the .venv of the openshift-virtualization-tests repo and ran the new test locally with the new MigrationPolicy. |
|
/approve |
Short description:
KubeVirt introduced
AllowWorkloadDisruptionin theMigrationPolicySpec. This field controls migration behavior when migrations exceed AcceptableCompletionTime: the controller can pause the VMI or switch to post-copy to force completion.More details:
The
AllowWorkloadDisruptionoption dictates behavior after theAcceptableCompletionTimethreshold is reached. When activated withallowPostCopy=true, the migration controller switches to post-copy mode.When
allowPostCopy=false, the controller pauses the VMI to allow migration to complete safely without risk of data loss.For backward compatibility, if
AllowWorkloadDisruptionis not explicitly set butAllowPostCopyis,AllowWorkloadDisruptionimplicitly inherits the value ofAllowPostCopy.What this PR does / why we need it:
Adds the
allow_workload_disruption(bool, optional) parameter to the MigrationPolicy class, serialized asallowWorkloadDisruptionin the spec. This allows consumers of the wrapper to create MigrationPolicy resources that use the new pause-to-migrate featureUpstream feature PR: kubevirt/kubevirt#11833
Summary by CodeRabbit