-
Notifications
You must be signed in to change notification settings - Fork 4.8k
OCPBUGS-84250: Increase router verbosity in DCM tests #31555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jcmoraisjr
wants to merge
1
commit into
openshift:main
Choose a base branch
from
jcmoraisjr:OCPBUGS-84250-router-verbosity
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+22
−5
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: openshift/origin
Length of output: 20875
🏁 Script executed:
Repository: openshift/origin
Length of output: 14496
🌐 Web query:
OpenShift cluster-ingress-operator deployment.go IngressController Available Progressing condition rollout complete💡 Result:
In OpenShift, the IngressController custom resource status is maintained by the cluster-ingress-operator, which manages the lifecycle of ingress controller deployments [1][2]. To determine if an IngressController rollout is complete and healthy, you must check the status conditions provided in the IngressController resource [3][1]. Key Status Conditions The IngressController reports its state through several conditions, primarily Available and Progressing [4][5]. 1. Available: This condition indicates whether the IngressController is ready to serve traffic. It is computed based on multiple factors, including: - The underlying Deployment availability [6]. - The readiness of DNS [6]. - The readiness of the LoadBalancer [6]. The IngressController is considered Available only if all these component conditions are true [6]. 2. Progressing: This condition indicates whether the operator is in the process of rolling out changes [4]. The operator calculates this by monitoring the deployment rolling out status [4][7]. - A roll out is generally considered complete when the Progressing condition is False and the reason is typically AsExpected or similar [8]. - The operator specifically monitors deployment progress, including checking if a new ReplicaSet is available [7]. - Note that certain infrastructure-driven events, such as node reboots or pod evictions (ReplicasStabilizing, PodsStarting), are specifically ignored when computing the Progressing status to avoid false positives during normal cluster maintenance [4][7]. How to Verify Rollout To check the status of an IngressController, use the following oc command: oc describe --namespace=openshift-ingress-operator ingresscontroller/ Look for the Status section, which lists the conditions [1]. You can also verify the underlying deployment status directly: oc rollout status deployment/ -n openshift-ingress This command will watch the deployment until the rollout is complete [9]. The deployment strategy for the IngressController is configured to handle updates gracefully (e.g., using rolling updates with specific maxUnavailable and maxSurge settings) to maintain traffic availability during the transition [10].
Citations:
🏁 Script executed:
Repository: openshift/origin
Length of output: 48587
🏁 Script executed:
Repository: openshift/origin
Length of output: 5363
Wait for a stable router pod before assigning
execPod.WaitForIngressControllerConditioncan return while a single-replica Private ingress controller still has a surge pod. Poll the service-selected pods and require exactly one non-deleting, ready pod with a populatedStatus.PodIP.🤖 Prompt for AI Agents