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] Kustomizer makes Microshift to crash if manifest is not validated #208

Closed
oglok opened this issue Aug 12, 2021 · 0 comments · Fixed by #261
Closed

[BUG] Kustomizer makes Microshift to crash if manifest is not validated #208

oglok opened this issue Aug 12, 2021 · 0 comments · Fixed by #261
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@oglok
Copy link
Contributor

oglok commented Aug 12, 2021

What happened:

Adding a set of buggy manifests to /var/lib/microshift/manifests/ and its kustomization.yaml provokes Microshift to crash.

What you expected to happen:

If a manifests has any error, don't apply it, but microshift should keep up and running.

How to reproduce it (as minimally and precisely as possible):

  1. Create a kustomization.yaml with one resource (i.e. pod.yaml)
  2. Pod.yaml must be buggy, and oc apply -f pod.yaml should not work.

Anything else we need to know?:

Environment:

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.4
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.4"

  • Kernel (e.g. uname -a): Linux localhost.localdomain 4.18.0-305.10.2.el8_4.x86_64 Init #1 SMP Mon Jul 12 04:43:18 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux

  • Others:

Relevant Logs

Aug 12 11:23:39 localhost.localdomain microshift[7840]: error: rawResources failed to read Resources: YAML file [klusterlet-kubeconfighub.yaml] encounters a format error.
Aug 12 11:23:39 localhost.localdomain microshift[7840]: error converting YAML to JSON: yaml: invalid map key: map[interface {}]interface {}{".kubeconfig":interface {}(nil)}
Aug 12 11:23:39 localhost.localdomain systemd[1]: microshift.service: Main process exited, code=exited, status=1/FAILURE
Aug 12 11:23:39 localhost.localdomain systemd[1]: microshift.service: Failed with result 'exit-code'.

@oglok oglok added the kind/bug Categorizes issue or PR as related to a bug. label Aug 12, 2021
@fzdarsky fzdarsky self-assigned this Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants