Skip to content

Bundle generated without yamls directory #137

@dharmit

Description

@dharmit

Support bundle doesn't have the yamls directory. On harvester/harvester#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions