[release-4.15] OCPBUGS-20152: Don't error if the certs.d dir doesn't exist yet#4358
Conversation
When trying to read the /etc/docker/certs.d directory don't return an error if the error is that it doesn't exist. It is possible that the direcotry hasn't been created yet. Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
|
@umohnani8: This pull request references Jira Issue OCPBUGS-20152, 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. |
|
@djoshy @sinnykumari @yuqi-zhang PTAL I know this isn't how we do backports, but we can't backport all the changes in the PR that fixed this on master. Please let me know what I need to do to make this a valid backport. |
|
@sergiordlr can you please test this out when you get a chance. Thank you! |
|
/test unit |
yuqi-zhang
left a comment
There was a problem hiding this comment.
I think this is fine as a backportable solution. Thanks!
|
@umohnani8: 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/test-infra repository. I understand the commands that are listed here. |
|
/jira refresh |
|
@djoshy: This pull request references Jira Issue OCPBUGS-20152, 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. |
|
/label cherry-pick-approved |
|
/jira refresh |
|
@djoshy: This pull request references Jira Issue OCPBUGS-20152, 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. |
|
/jira refresh |
|
@djoshy: This pull request references Jira Issue OCPBUGS-20152, which is valid. 7 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. |
|
/lgtm |
|
/lgtm You good, @openshift-ci-robot ? |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: djoshy, umohnani8, yuqi-zhang 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 |
|
@umohnani8: Jira Issue OCPBUGS-20152: Some pull requests linked via external trackers have merged: The following pull requests linked via external trackers have not merged: These pull request must merge or be 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-20152 has not been moved to the MODIFIED state. 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.14 |
|
@umohnani8: new pull request created: #4362 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. |
|
/jira refresh |
|
@djoshy: Jira Issue OCPBUGS-20152: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-20152 has been moved to the MODIFIED state. 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. |
|
[ART PR BUILD NOTIFIER] This PR has been included in build ose-machine-config-operator-container-v4.15.0-202405141506.p0.g10694c7.assembly.stream.el8 for distgit ose-machine-config-operator. |
|
Fix included in accepted release 4.15.0-0.nightly-2024-05-14-175553 |
When trying to read the /etc/docker/certs.d directory don't return an error if the error is that it doesn't exist. It is possible that the direcotry hasn't been created yet and that is okay.
Fixes the cert issue described in https://issues.redhat.com/browse/OCPBUGS-20152 but not the timing issue around controller config.
This issue was already fixed in 4.16 and master in this PR #4106. However, that PR consist of other major cert changes that cannot be backported at this time. So only picking the patch that fixes the certs.d not found issue.
This will need to be backported to 4.14 as well.
- What I did
Added a check to not error on dir doesn't exist for the /etc/docker/certs.d directory.
- How to verify it
This issue is reproducible on 4.15. When creating a cluster, add this to the install-config.yaml
Once the cluster is up, check the MCD logs for this
Marking Degraded due to: open /etc/docker/certs.d: no such file or directory. There should be none with this patch. Example:If this patch is not applied, there should be many in the logs.
- Description for the changelog
Add a check to not error on dir doesn't exist for the /etc/docker/certs.d directory