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
Collecting clusterlogging
and clusterlogforwarder
with inspect (#5)
#2257
Conversation
* Collect CRDs, CLs and CLFs in the gather script. * Update README.md: document the resources already in `namespaces` dir.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: oarribas The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
@oarribas: 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. |
/hold |
@oarribas have you tested the results of these changes. I like the intent but based upon your comments it would suggest 'openshift-logging' is still being collected like any other. Line 32, however, suggests to me that we are intentionally skipping that namespace https://github.com/openshift/cluster-logging-operator/pull/2257/files#diff-e5c2a69519b4a8fddd46d182316399558c9fd41434650a1196c7a9beaa14ada0R32 . Please verify. It would be also useful to write a JIRA ticket to express what we are fixing so that it can be included with an errata. Please do so. |
@jcantrill , I think that namespace is intentionally not checked there because it's added always [1] (for the non-multi-forwarder configurations), and with this PR the The logs generated by [2] shows the following:
Checking the generated must-gather directory, the following
Maybe we can use jira LOG-4792 to document this, as this will also fix that issue? [1] https://github.com/openshift/cluster-logging-operator/pull/2257/files#diff-e5c2a69519b4a8fddd46d182316399558c9fd41434650a1196c7a9beaa14ada0R24 |
PR needs rebase. 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. |
@oarribas if you will rebase your changes and force push, I will verify the changes and get this merged. We can then backport to 5.8 and update the Jira accordingly. |
Going to close this and add these changes to the PR for LOG-4817 |
/close |
@cahartma: Closed this PR. 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. |
Description
Get the
clusterlogging
andclusterlogforwarder
with theoc adm inspect
command to allow working with those resources withomc
like in a "live" cluster. Due to this, it's no longer needed to get them again and put them into theclo
directory.The
customresourcedefinitions
are also required to allowomc
to work with above (and other) resources (on testing, it adds only few MB to the full must-gather size for ~200customresourcedefinitions
).Added a "Moved resources" section to the must-gather README to explain how to work with the
clusterlogging
andclusterlogforwarder
after this change./cc @periklis @cahartma @jcantrill
/assign @cahartma
/cherry-pick release-5.8
Links
clusterlogging
andclusterlogforwarder
with inspect #2255 and maybe also LOG-4792 Quick fix must-gather to preserve white-spaces #2256