rancher / rancher/support-bundle-kit

[BUG] Simulator is unable to load supportconfig

Open
#122 1 comment 0 reactions 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

Problem Description

While loading the support bundle with the simulator, the following errors appeared near the end of the resource loading progress (sensitive information are scrubbed):

...
E0805 04:15:01.751964       7 fieldmanager.go:152] "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (support-bundle-node-info/xxx; /v1, Kind=Pod) to smd typed: .spec.containers: duplicate entries for key [name=\"kernel\"]" versionKind="/, Kind=" namespace="support-bundle-node-info" name="xxx"
ERRO[2704] error during creation of resource xxx with gvr /v1, Resource=pods  error="Pod \"xxx\" is invalid: [spec.containers[1].name: Invalid value: \"scc_supportconfig_xxx.txz\": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name',  or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?'), spec.containers[8].name: Duplicate value: \"kernel\"]"
ERRO[2704] error during creation of resource yyy with gvr /v1, Resource=pods  error="Pod \"yyy\" is invalid: [spec.containers[7].name: Duplicate value: \"kernel\", spec.containers[8].name: Invalid value: \"scc_supportconfig_yyy.txz\": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name',  or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?'), spec.containers[9].name: Duplicate value: \"kernel\"]"
...

One of the problem seems to be related to the naming of the supportconfig file. The underscore character is not a valid character in RFC 1123.

Expected Behaviors

The support-bundle-kit simulator should load the SB successfully without the above error messages.

Environment

  • OS: macOS 14.5
  • SBK version: master-build (commit hash 2f54eb6b)

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 reproducing simulator loading with a support bundle containing the reported supportconfig files, then trace the simulator's resource-loading path for generated Pod container names. Confirm the fix by loading the support bundle successfully without the RFC 1123 or duplicate-container errors described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.