-
Notifications
You must be signed in to change notification settings - Fork 594
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
OCPBUGS-33631: show "Debug container" link for pods with status.phase… #13850
Conversation
@rhamilto: This pull request references Jira Issue OCPBUGS-33631, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. In 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. |
Hi @rhamilto, for those Pods under 'openshift-*' namespace with 'Complete' state, the debug container always failed to launch with different kinds of errors? Do you think it is acceptable?
|
@jhadvig, WDYT? |
@jhadvig Any thought? |
@rhamilto @XiyunZhao I think its understandable, cause if you check most of the pods in the mentioned NS, they have a quite a long list of configmaps which are mounted into the pods when created. It looks liked when you create a debug pods those volumes will be missing. |
Are the volume mounts gone because the config maps no longer exist? Or are we simply not mounting the config maps into the debug pod? Let's compare the behavior here to what happens with |
Appears so.
|
I don't think missing configmaps is the issue. Based on the errors, I believe the issue is related to the container command. No idea what the fix is though. Am thinking |
The default command for Linux containers in the CLI is https://github.com/openshift/oc/blob/a5a43b9e6407f8ddf4a73fe995c5eca75a9ac5ab/pkg/cli/debug/debug.go#L70 although it can be changed by the user. Are we passing additional args to the command, or just running |
@rhamilto It looks like we're not clearing the |
Good catch! |
… of "Succeeded" This aligns 4.16 with the behavior in 3.x. See https://github.com/openshift/origin-web-console/blob/c37982397087036321312172282e139da378eff2/app/scripts/directives/resources.js#L33-L53 and note 'Completed' is not a valid value for pod.status.phase (see https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase)
@XiyunZhao, I believe the issue with Many thanks to @spadgett for the assist in resolving the issue. Screen.Recording.2024-05-29.at.11.10.19.AM.mov |
/retest |
2 similar comments
/retest |
/retest |
@rhamilto: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
@rhamilto: This pull request references Jira Issue OCPBUGS-33631, which is invalid:
Comment In 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. |
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.
/lgtm
/jira refresh |
@rhamilto: This pull request references Jira Issue OCPBUGS-33631, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In 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. |
/cherrypick release-4.16 |
@rhamilto: once the present PR merges, I will cherry-pick it on top of release-4.16 in a new PR and assign it to you. In 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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhamilto, spadgett The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@rhamilto: Jira Issue OCPBUGS-33631: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-33631 has been moved to the MODIFIED state. In 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. |
@rhamilto: new pull request created: #13914 In 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. |
… of "Succeeded"
This aligns 4.16 with the behavior in 3.x. See https://github.com/openshift/origin-web-console/blob/c37982397087036321312172282e139da378eff2/app/scripts/directives/resources.js#L33-L53 and note 'Completed' is not a valid value for
pod.status.phase
(see https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase)Screen.Recording.2024-05-14.at.9.03.36.AM.mov