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

[BUG] Simulator is unable to load supportconfig #122

Open
starbops opened this issue Aug 5, 2024 · 1 comment
Open

[BUG] Simulator is unable to load supportconfig #122

starbops opened this issue Aug 5, 2024 · 1 comment

Comments

@starbops
Copy link
Member

starbops commented Aug 5, 2024

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 2f54eb6)
@starbops
Copy link
Member Author

starbops commented Aug 6, 2024

A similar issue has already been raised: #93. This one is more specific about the support config loading error.

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

No branches or pull requests

1 participant