Skip to content
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

Log underlying error when YAML generation fails #100

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

ejweber
Copy link
Contributor

@ejweber ejweber commented Mar 29, 2024

Fixes #99 with best-effort.

I can't actually manage to hit an error like the on from #99 (comment) in my cluster. I tried mangling the cluster-admin ClusterRole to remove access to nonResourceURLs and removing the system:discovery ClusterRoleBinding in an attempt to stop support-bundle-manager from using the Kubernetes Discovery API. This DID result in a support bundle without YAML files, but did not trigger the Unable to fetch cluster resources message (in either a modified or unmodified support-bundle-kit). This means I cannot actually show the result of this PR in action. However, it should provide us additional debugging information if the YAML collection fails again like this in the future.

Copy link
Contributor

@Vicente-Cheng Vicente-Cheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! We need this one.

We also get some SBs w/o yaml files and cannot find anything from the SB generator log.

@Vicente-Cheng
Copy link
Contributor

@ejweber, could you help to rebase for the conflict?

@Vicente-Cheng Vicente-Cheng requested a review from bk201 July 3, 2024 11:41
support-bundle-kit 99

Signed-off-by: Eric Weber <eric.weber@suse.com>
@ejweber
Copy link
Contributor Author

ejweber commented Jul 10, 2024

It looks like @ibrokethecloud beat me to some of these locations, but I think these errors also make sense in the error log, so we should move forward with the changes IMO. Rebased and fixed conflicts.

Copy link
Member

@bk201 bk201 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Eric.

@bk201 bk201 merged commit 93db8a7 into rancher:master Jul 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Cannot see why we are unable to fetch resources
3 participants