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

Remove logging error message from every line of gce-machine-controller #205

Closed
spew opened this issue May 23, 2018 · 2 comments
Closed

Remove logging error message from every line of gce-machine-controller #205

spew opened this issue May 23, 2018 · 2 comments
Assignees

Comments

@spew
Copy link
Contributor

spew commented May 23, 2018

Every line of gce-machine-controller's log ends up having an error message prefix of "ERROR: logging before flag.Parse". This is due to an unfortunate artifact of glog's design. This can be fixed with the hack outlined here: kubernetes/kubernetes#17162.

See below for an example of the log output:

ERROR: logging before flag.Parse: I0523 21:53:41.081142       1 queue.go:38] Start Machine Queue
ERROR: logging before flag.Parse: I0523 21:53:41.081442       1 queue.go:38] Start NodeWatcher Queue
ERROR: logging before flag.Parse: E0523 21:53:41.386480       1 reflector.go:205] sigs.k8s.io/cluster-api/pkg/controller/sharedinformers/zz_generated.api.register.go:56: Failed to list *v1alpha1.MachineDeployment: the server could not find the requested resource (get machinedeployments.cluster.k8s.io)
ERROR: logging before flag.Parse: E0523 21:53:41.386689       1 reflector.go:205] sigs.k8s.io/cluster-api/pkg/controller/sharedinformers/zz_generated.api.register.go:54: Failed to list *v1alpha1.Cluster: the server could not find the requested resource (get clusters.cluster.k8s.io)
ERROR: logging before flag.Parse: E0523 21:53:41.386737       1 reflector.go:205] sigs.k8s.io/cluster-api/pkg/controller/sharedinformers/zz_generated.api.register.go:57: Failed to list *v1alpha1.MachineSet: the server could not find the requested resource (get machinesets.cluster.k8s.io)
ERROR: logging before flag.Parse: E0523 21:53:41.394484       1 reflector.go:205] sigs.k8s.io/cluster-api/pkg/controller/sharedinformers/zz_generated.api.register.go:55: Failed to list *v1alpha1.Machine: the server could not find the requested resource (get machines.cluster.k8s.io)
ERROR: logging before flag.Parse: E0523 21:53:41.411882       1 node.go:59] Error getting machine gce-master-test1: the server could not find the requested resource (get machines.cluster.k8s.io gce-master-test1)
ERROR: logging before flag.Parse: E0523 21:53:41.412028       1 node.go:59] Error getting machine gce-node-msvcv: the server could not find the requested resource (get machines.cluster.k8s.io gce-node-msvcv)
ERROR: logging before flag.Parse: E0523 21:53:41.415440       1 node.go:59] Error getting machine gce-node-lw7t7: the server could not find the requested resource (get machines.cluster.k8s.io gce-node-lw7t7)
@spew
Copy link
Contributor Author

spew commented May 24, 2018

/assign @spew

@spew
Copy link
Contributor Author

spew commented May 29, 2018

implemented.

chuckha pushed a commit to chuckha/cluster-api that referenced this issue Oct 2, 2019
🐛 Fix DockerMachine delete for first control plane
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