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-19367: Console should not panic when no response is retrieved for plugin assets #13166
Conversation
@jhadvig: This pull request references Jira Issue OCPBUGS-19059, which is valid. 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 kubernetes/test-infra 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.
It looks to me like the error is on this line:
https://github.com/openshift/console/blob/master/pkg/plugins/handlers.go#L165
Where we get an err
but try to use resp
when handling the error
297f927
to
0d00703
Compare
@spadgett you are right, I've update the PR accordingly |
pkg/plugins/handlers.go
Outdated
klog.Error(errMsg) | ||
serverutils.SendResponse(w, resp.StatusCode, serverutils.ApiError{Err: errMsg}) | ||
serverutils.SendResponse(w, http.StatusInternalServerError, serverutils.ApiError{Err: errMsg}) |
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.
502 bad gateway is probably a better status code here
/retitle OCPBUGS-19367: Console should not panic when no response is retrieved for plugin assets |
@jhadvig: This pull request references Jira Issue OCPBUGS-19367, which is invalid:
Comment 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 kubernetes/test-infra repository. |
/jira refresh |
… for plugin assets
0d00703
to
ccfef54
Compare
@spadgett comment addressed |
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 |
@spadgett: This pull request references Jira Issue OCPBUGS-19367, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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/test-infra repository. |
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jhadvig, 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 |
/retest |
@jhadvig: 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/test-infra repository. I understand the commands that are listed here. |
@jhadvig: Jira Issue OCPBUGS-19367: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-19367 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 kubernetes/test-infra repository. |
Fix included in accepted release 4.15.0-0.nightly-2023-09-27-073353 |
/cherry-pick release-4.14 |
@danielmellado: new pull request created: #13217 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/test-infra repository. |
This can happen in case ipv6 is enabled on the cluster.
/assign @TheRealJon