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

Invalid ProviderID error is malformed #3763

Closed
benmoss opened this issue Oct 7, 2020 · 8 comments · Fixed by #4284
Closed

Invalid ProviderID error is malformed #3763

benmoss opened this issue Oct 7, 2020 · 8 comments · Fixed by #4284
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor.
Milestone

Comments

@benmoss
Copy link

benmoss commented Oct 7, 2020

What steps did you take and what happened:
Have a provider write a ProviderID that doesn't match the form we describe in https://github.com/kubernetes-sigs/cluster-api/blob/master/controllers/noderefutil/providerid.go

See a confusing error in the logs:

controller.go:257] controller-runtime/controller "msg"="Reconciler error" "error"="providerID must be of the form \u003ccloudProvider\u003e://\u003coptional\u003e/\u003csegments\u003e/\u003cprovider id\u003e" "controller"="machine" "name"="bmo-md-1-6bf4fd585d-jfwbx" "namespace"="default"

What did you expect to happen:
I think we just want it to print out the error string verbatim, I don't know where the formatting strings are coming from.

Anything else you would like to add:
I remember fixing this in klog ages ago. Maybe we just need to bump that? kubernetes/klog#139

/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Oct 7, 2020
@vincepri
Copy link
Member

/help
/good-first-issue
/milestone v0.4.0

@k8s-ci-robot
Copy link
Contributor

@vincepri:
This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

/help
/good-first-issue
/milestone v0.4.0

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added this to the v0.4.0 milestone Oct 16, 2020
@k8s-ci-robot k8s-ci-robot added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Oct 16, 2020
@enyinna1234
Copy link

enyinna1234 commented Nov 3, 2020

I'd like to work on this.
/assign
/lifecycle active

@fabriziopandini
Copy link
Member

/lifecycle active
/assign @enyinna1234

@k8s-ci-robot k8s-ci-robot added the lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. label Nov 10, 2020
@enyinna1234
Copy link

@benmoss I'm not able to reproduce this. Can you please shed more light? What provider did you use? I can't find where the NewProviderID function gets called that involves json marshaling.

@enyinna1234 enyinna1234 removed their assignment Feb 17, 2021
@vincepri vincepri removed the lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. label Feb 19, 2021
@vincepri
Copy link
Member

/milestone v0.4.x

@k8s-ci-robot k8s-ci-robot modified the milestones: v0.4.0, v0.4.x Feb 19, 2021
@benmoss
Copy link
Author

benmoss commented Feb 19, 2021

@enyinna1234 sorry for the delay, I think in my case this was being logged here. The issue is that klog had a bug that got fixed a while ago but this project hasn't bumped it's klog dependency in a while

@stmcginnis
Copy link
Contributor

/lifecycle active
/assign

@k8s-ci-robot k8s-ci-robot added the lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. label Mar 10, 2021
@CecileRobertMichon CecileRobertMichon modified the milestones: v0.4.x, v0.4 Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants