OCPBUGS-64582: frr-k8s: use Recreate strategy for statuscleaner deployment - #3104
OCPBUGS-64582: frr-k8s: use Recreate strategy for statuscleaner deployment#3104fedepaol wants to merge 1 commit into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@fedepaol: This pull request references Jira Issue OCPBUGS-64582, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Summary by CodeRabbit
WalkthroughThe renderer now provides an ChangesFRR-K8s status-cleaner
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (4 errors, 2 warnings)
✅ Passed checks (18 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@bindata/network/frr-k8s/node-status-cleaner.yaml`:
- Around line 12-13: Add a test case to pkg/network/render_test.go that
validates the rendered frr-k8s-statuscleaner Deployment uses the appsv1.Recreate
strategy type. This ensures the deployment strategy configuration in the bindata
template is preserved through rendering and prevents future regressions that
could reintroduce port conflicts on SNO clusters.
🪄 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: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 0835789f-0968-4416-b2a9-f8edc6fdbde6
📒 Files selected for processing (1)
bindata/network/frr-k8s/node-status-cleaner.yaml
|
/jira refresh |
|
@fedepaol: This pull request references Jira Issue OCPBUGS-64582, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/retest |
|
/test e2e-metal-ipi-ovn-dualstack-bgp |
|
/test frrk8s-e2e |
|
/test e2e-metal-ipi-ovn-dualstack-bgp |
|
/test e2e-metal-ipi-ovn-dualstack-bgp-local-gw |
|
/test ? |
|
/test e2e-metal-ipi-ovn-dualstack-bgp |
|
/test frrk8s-e2e |
|
/test e2e-metal-ipi-ovn-dualstack-bgp-local-gw |
|
/test frrk8s-e2e |
|
/test e2e-metal-ipi-ovn-dualstack-bgp |
|
/test frrk8s-e2e |
1 similar comment
|
/test frrk8s-e2e |
|
/test e2e-metal-ipi-ovn-dualstack-bgp-local-gw |
|
/test e2e-metal-ipi-ovn-dualstack-bgp |
|
/test e2e-metal-ipi-ovn-dualstack-bgp-local-gw |
|
/jira refresh |
|
@fedepaol: This pull request references Jira Issue OCPBUGS-64582, which is valid. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
| annotations: | ||
| release.openshift.io/version: "{{.ReleaseVersion}}" | ||
| spec: | ||
| strategy: |
There was a problem hiding this comment.
Wouldn't it be best to guard this by the isSNO variable?
There was a problem hiding this comment.
ah thanks! Didn't know about its existance. I'll do that, although the effect of this change is a small window (during upgrades) where changes to CRDs are rejected, so I don't think it would hurt much in non - sno scenarios.
Anyways, adding it
The statuscleaner deployment uses hostNetwork with a fixed port (9123). With the default RollingUpdate strategy, upgrades on SNO clusters get stuck because the new pod cannot bind the host port already held by the old pod. Switching to Recreate ensures the old pod is terminated before the new one starts. Signed-off-by: Federico Paolinelli <fpaoline@redhat.com> Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
60ac532 to
3d86b75
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
/lgtm |
|
Scheduling required tests: Scheduling tests matching the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fedepaol, jcaamano The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/verified later |
|
@fedepaol: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/cherry-pick release-4.22 |
|
@fedepaol: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/verified by ci |
|
@fedepaol: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/retest-required |
1 similar comment
|
/retest-required |
|
@fedepaol: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
The statuscleaner deployment uses hostNetwork with a fixed port (9123). With the default RollingUpdate strategy, upgrades on SNO clusters get stuck because the new pod cannot bind the host port already held by the old pod. Switching to Recreate ensures the old pod is terminated before the new one starts.