-
Notifications
You must be signed in to change notification settings - Fork 462
OCPBUGS-62828: MCO degraded when an empty pull-secret is configured #5486
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-62828: MCO degraded when an empty pull-secret is configured #5486
Conversation
|
@dkhater-redhat: This pull request references Jira Issue OCPBUGS-62828, 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. |
7618c9b to
37cdfeb
Compare
|
/jira refresh |
|
@dkhater-redhat: This pull request references Jira Issue OCPBUGS-62828, 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: 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. |
| bytes: []byte(`{"auths":{}}`), | ||
| expected: &DockerConfigJSON{Auths: DockerConfig{}}, | ||
| }, | ||
| { |
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.
praise: Thanks for adding these test cases!
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheesesashimi, dkhater-redhat 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 |
|
/test unit |
|
@dkhater-redhat: The following test 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. |
|
/jira refresh The requirements for Jira bugs have changed (Jira issues linked to PRs on main branch need to target different OCP), recalculating validity. |
|
@openshift-bot: This pull request references Jira Issue OCPBUGS-62828, which is invalid:
Comment 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. |
|
/test e2e-hypershift |
|
/jira refresh |
|
@dkhater-redhat: This pull request references Jira Issue OCPBUGS-62828, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: 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. |
|
Verified using IPI on AWS Test case OCP-57595 has been modified to check the machine-config CO, so that this issue doesn't escape again. Executed test cases:
A MC deploying a file was properly deployed too. No issues found. /label qe-approved |
|
@sergiordlr: 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. |
|
@dkhater-redhat: This pull request references Jira Issue OCPBUGS-62828, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: 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. |
|
Great work! LGTM |
|
/label acknowledge-critical-fixes-only |
4763806
into
openshift:main
|
@dkhater-redhat: Jira Issue OCPBUGS-62828: Some pull requests linked via external trackers have merged: The following pull request, linked via external tracker, has not merged: All associated pull requests must be merged or unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-62828 has not been moved to the MODIFIED state. This PR is marked as verified. If the remaining PRs listed above are marked as verified before merging, the issue will automatically be moved to VERIFIED after all of the changes from the PRs are available in an accepted nightly payload. 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.21 |
|
@dkhater-redhat: new pull request created: #5499 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. |
- What I did
Fixed a bug where MCO becomes degraded when an empty pull-secret is configured in the cluster. Modified
getImageRegistryPullSecrets()inpkg/operator/sync.goto gracefully handle empty pull-secrets bychecking if the pull-secret data is empty or contains only
{}before attempting to convert and mergeit. When an empty pull-secret is detected, the operator now skips the merge operation instead of
erroring out. Also added test coverage in
pkg/secrets/secrets_test.gofor empty JSON object and nullliteral edge cases.
- How to verify it
1. Configure an empty pull-secret in the cluster
$ oc -n openshift-config set data secret/pull-secret '.dockerconfigjson={}'
and verify MCO is not degraded.
- Description for the changelog