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

Error messages are not human friendly #1304

Closed
howardjohn opened this issue Jul 3, 2019 · 7 comments
Closed

Error messages are not human friendly #1304

howardjohn opened this issue Jul 3, 2019 · 7 comments

Comments

@howardjohn
Copy link
Contributor

Example: error: MergeResourcesWithErrorOnIdCollision: id '"~G_v1_Namespace|~X|~P|istio-system|~S"' already used

I have no clue what all of these symbols mean which makes this hard to debug. I think this means I have a duplicate namespace defined?

Another example: error: rawResources failed to read Resources: GroupVersionKindName: resid.ResId{gvKind:gvk.Gvk{Group:"config.istio.io", Version:"v1alpha2", Kind:"attributemanifest"}, name:"istioproxy", prefix:"", suffix:"", namespace:"istio-system"} already exists b the map

This one is even harder to understand, what does "already exists b the map" mean?

It would be great if the errors could be more humanly consumable for a better UX

@monopole
Copy link
Contributor

monopole commented Jul 3, 2019

agreed. might try a later release though. not sure where you are, but (some of) those strings aren't in head.

@howardjohn
Copy link
Contributor Author

I'm on kubectl Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-19T16:40:16Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"} so pretty recent, or does the kustomize support in kubectl lag behind?

@monopole
Copy link
Contributor

monopole commented Jul 3, 2019

kubectl 1.15 has kustomize 2.0.3 embedded.

Kustomize just released 3.0.0.

See https://github.com/kubernetes-sigs/kustomize/releases

Not saying the error messages are vastly better, but many other things are improved.

@howardjohn
Copy link
Contributor Author

Cool, I'll have to check that out. Feel free to close this if its been improved

@monopole
Copy link
Contributor

monopole commented Jul 4, 2019

Yeah, I'm sure these are better, though not perfect.
You won't see ~P or ~S again, and id collisions errors are improved.

kustomize build $target | kubectl apply -f - 

with v3 kustomize and v1.15 kubectl is the best option right now.

@monopole monopole closed this as completed Jul 4, 2019
@johntellsall
Copy link

johntellsall commented Nov 20, 2020

Error message "already exists b the map" still exists in latest Kubectl. I'm not sure how to check the Kustomize version.

I was following the instructions from https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/

$ kubectl version --client
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.4", GitCommit:"d360454c9bcd1634cf4cc52d1867af5491dc9c5f", GitTreeState:"clean", BuildDate:"2020-11-12T01:09:16Z", GoVersion:"go1.15.4", Compiler:"gc", Platform:"darwin/amd64"}

error: rawResources failed to read Resources: GroupVersionKindName: resid.ResId{gvKind:gvk.Gvk{Group:"", Version:"v1", Kind:"Service"}, name:"wordpress", prefix:"", suffix:"", namespace:""} already exists b the map

@Shell32-Natsu
Copy link
Contributor

@johntellsall #1500 We have technical problems to update the kustomize version in kubectl. But we are working on it.

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

4 participants