rancher / rancher/support-bundle-kit

Bundle generated without `yamls` directory

Open
#137 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
24
Forks
43
Avg merge
1d 15h
Merged PRs (30d)
6

Description

Support bundle doesn't have the yamls directory. On https://github.com/harvester/harvester/issues/8224, 3 out of 6 bundles collected so far don't have the yamls directory. For all of these bundles, the contents of bundleGerationErrorLog file are exactly similar:

Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch cluster resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1
BUG: Support bundle: cannot get log for pod etcd-<node-name> container etcd: previous terminated container "etcd" in pod "etcd-<node-name>" not found
BUG: Support bundle: cannot get log for pod etcd-<node-name> container etcd: previous terminated container "etcd" in pod "etcd-<node-name>" not found
BUG: Support bundle: cannot get log for pod etcd-<node-name> container etcd: previous terminated container "etcd" in pod "etcd-<node-name>" not found
BUG: Support bundle: cannot get log for pod kube-apiserver-<node-name> container kube-apiserver: previous terminated container "kube-apiserver" in pod "kube-apiserver-<node-name>" not found
BUG: Support bundle: cannot get log for pod kube-apiserver-<node-name> container kube-apiserver: previous terminated container "kube-apiserver" in pod "kube-apiserver-<node-name>" not found
BUG: Support bundle: cannot get log for pod kube-apiserver-<node-name> container kube-apiserver: previous terminated container "kube-apiserver" in pod "kube-apiserver-<node-name>" not found

Looking at the bundle's logs/harvester-system/supportbundle-manager-bundle-xxxxx-xxxxxxxx-xxxxx/manager.log isn't very helpful either as it contains same messages as above, but in a different format. E.g., following line in bundleGenerationError.log:

Unable to fetch namespaced resources: unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1

shows up as below in the pod log as:

2025-05-16T06:15:17.543676322Z time="2025-05-16T06:15:17Z" level=error msg="Unable to fetch namespaced resources" error="unable to retrieve the complete list of server APIs: ext.cattle.io/v1: stale GroupVersion discovery: ext.cattle.io/v1"

I looked at #99 before opening this issue, but that seems more about logging errors into bundleGenerationErrorLog file, while this is about the cause of missing yamls being unclear from the logs.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing support-bundle generation and the handling of discovery and pod-log errors that produce bundleGenerationError.log and manager.log. Compare bundles with and without the yamls directory and determine what diagnostic information is missing; done means the cause of a missing directory is identifiable from the generated logs.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
devops, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.