-
Notifications
You must be signed in to change notification settings - Fork 193
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-52258: pkg/cvo/updatepayload: Context around ValidateDirectory calls #1166
OCPBUGS-52258: pkg/cvo/updatepayload: Context around ValidateDirectory calls #1166
Conversation
These usually either succeed or give os.IsNotExist, but in some cases can return errors like [1]: Unable to download and prepare the update: stat /etc/cvo/updatepayloads/7WNaprXJNWTsPAepCHJ00Q/release-manifests/release-metadata: permission denied. To make it easier to debug those situations, this commit adds context to errors near ValidateDirectory calls, so it's more clear that the issue is the CVO's attempts to read /etc/cvo/... failing, and not an error with the version-... Pod, registry access, etc. Also while I'm in this space, I've replaced the old errors.Wrap in ImageForShortName with fmt.Errorf(...%w, ...), now that the Go standard libraries support error-wrapping like that. One fewer 3rd-party dependency call-site. [1]: https://issues.redhat.com/browse/OCPBUGS-52258
@wking: This pull request references Jira Issue OCPBUGS-52258, 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 openshift-eng/jira-lifecycle-plugin repository. |
/Jira refresh |
@wking: This pull request references Jira Issue OCPBUGS-52258, 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: 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. |
cc @JianLi-RH |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: petr-muller, wking 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 |
/label qe-approved |
@wking: This pull request references Jira Issue OCPBUGS-52258, which is valid. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira ([email protected]), skipping review request. 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. |
1 similar comment
@wking: 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. |
@wking: Jira Issue OCPBUGS-52258: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-52258 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. |
[ART PR BUILD NOTIFIER] Distgit: cluster-version-operator |
These usually either succeed or give
os.IsNotExist
, but in some cases can return errors like:To make it easier to debug those situations, this commit adds context to errors near
ValidateDirectory
calls, so it's more clear that the issue is the CVO's attempts to read/etc/cvo/...
failing, and not an error with theversion-...
Pod, registry access, etc.Also while I'm in this space, I've replaced the old
errors.Wrap
inImageForShortName
withfmt.Errorf(...%w, ...)
, now that the Go standard libraries support error-wrapping like that. One fewer 3rd-party dependency call-site.