-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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-39339: gather: simplify service regex for analyze #9073
OCPBUGS-39339: gather: simplify service regex for analyze #9073
Conversation
By running `openshift-install gather bootstrap --dir path/to/workdir` outside of the `workdir`, the logs from the bootstrap VM are saved with `log-bundle-XXXX/` prefix path but compared against the full path `path/to/workdir` during path substitution for the final log bundle archive: ``` DEBUG Log bundle written to /var/home/core/log-bundle-20241004145703.tar.gz DEBUG combinedDirectory: c/log-bundle-20241004145703 [...] DEBUG oldHeaderName: log-bundle-20241004145703/bootstrap/services/approve-csr.json DEBUG replacing '/c/cluster-log-bundle-20241004145703/' by '' in log-bundle-20241004145703/bootstrap/services/approve-csr.json DEBUG newHeaderName: log-bundle-20241004145703/bootstrap/services/approve-csr.json DEBUG no log-bundle-XXXX prefix, adding: c/log-bundle-20241004145703/log-bundle-20241004145703/bootstrap/services/approve-csr.json ``` This causes the service regex from the analyze command to not match any service files and we get the error ``` ERROR Invalid log bundle or the bootstrap machine could not be reached and bootstrap logs were not collected. ``` even though the bootstrap logs were successfully collected. There are 3 possible fixes for this issue: 1. Change the collector script to save bootstrap logs in the bootstrap VM using the same path as specified to the `gather bootstrap` command; 2. When pulling the logs from the bootstrap VM, rename/move all the files to the path specified to `gather bootstrap`; 3. Change the service regex to ignore the path prefix. I have opted to implement 3, since it involves the fewest changes and it's unlikely to introduce serious regressions: at worst it will make the analyze fail but the log collection won't be affected.
@r4f4: This pull request references Jira Issue OCPBUGS-39339, 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. |
/hold |
/jira refresh |
@r4f4: This pull request references Jira Issue OCPBUGS-39339, 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. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: patrickdillon 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 |
e2e-aws-ovn: gather bootstrap is still working as expected
|
8c9eb78
to
ca029f9
Compare
/hold cancel |
@r4f4: 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. |
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
@r4f4: Jira Issue OCPBUGS-39339: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-39339 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. |
/cherry-pick release-4.17 |
@r4f4: new pull request created: #9079 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. |
[ART PR BUILD NOTIFIER] Distgit: ose-installer-altinfra |
[ART PR BUILD NOTIFIER] Distgit: ose-installer-terraform-providers |
[ART PR BUILD NOTIFIER] Distgit: ose-baremetal-installer |
[ART PR BUILD NOTIFIER] Distgit: ose-installer-artifacts |
By running
openshift-install gather bootstrap --dir path/to/workdir
outside of theworkdir
, the logs from the bootstrap VM are saved withlog-bundle-XXXX/
prefix path but compared against the full pathpath/to/workdir
during path substitution for the final log bundle archive:This causes the service regex from the analyze command to not match any service files and we get the error
even though the bootstrap logs were successfully collected.
There are 3 possible fixes for this issue:
gather bootstrap
command;gather bootstrap
;I have opted to implement 3, since it involves the fewest changes and it's unlikely to introduce serious regressions: at worst it will make the analyze fail but the log collection won't be affected.