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

Watcher should exit if it can't connect to master #136

Closed
tamalsaha opened this issue Jun 2, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@tamalsaha
Copy link
Member

commented Jun 2, 2017

Even before watchers are started, check connection to master api. Is that Timesout, exit with status code 1 (log.Fatal)

@tamalsaha

This comment has been minimized.

Copy link
Member Author

commented Jun 2, 2017

root@appscode-n1-standard-2-kzzz:/home/tamal# docker logs -f 35791aed2a33
I0601 21:24:27.889247       1 logs.go:19] FLAG: --alsologtostderr="false"
I0601 21:24:27.889384       1 logs.go:19] FLAG: --cloud-provider="gce"
I0601 21:24:27.889394       1 logs.go:19] FLAG: --cluster-name="appscode"
I0601 21:24:27.889404       1 logs.go:19] FLAG: --haproxy-image="appscode/haproxy:1.7.5-1.5.5"
I0601 21:24:27.889412       1 logs.go:19] FLAG: --ingress-class=""
I0601 21:24:27.889421       1 logs.go:19] FLAG: --kubeconfig=""
I0601 21:24:27.889432       1 logs.go:19] FLAG: --log_backtrace_at=":0"
I0601 21:24:27.889444       1 logs.go:19] FLAG: --log_dir=""
I0601 21:24:27.889452       1 logs.go:19] FLAG: --logtostderr="true"
I0601 21:24:27.889458       1 logs.go:19] FLAG: --master=""
I0601 21:24:27.889465       1 logs.go:19] FLAG: --stderrthreshold="2"
I0601 21:24:27.889472       1 logs.go:19] FLAG: --v="3"
I0601 21:24:27.889480       1 logs.go:19] FLAG: --vmodule=""
I0601 21:24:27.889489       1 main.go:39] Starting Voyager Controller...
I0601 21:24:27.889617       1 daemon.go:19] Configuration: &{  gce appscode appscode/haproxy:1.7.5-1.5.5 }
W0601 21:24:27.889728       1 client_config.go:481] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
I0601 21:24:27.890880       1 daemon.go:40] configuration loadded, running watcher
I0601 21:25:57.893626       1 reflector.go:196] Starting reflector *api.Pod (5m0s) from github.com/appscode/voyager/vendor/github.com/appscode/k8s-addons/pkg/watcher/objects.go:31
I0601 21:25:57.893704       1 reflector.go:234] Listing and watching *api.Pod from github.com/appscode/voyager/vendor/github.com/appscode/k8s-addons/pkg/watcher/objects.go:31
E0601 21:26:27.895038       1 reflector.go:199] github.com/appscode/voyager/vendor/github.com/appscode/k8s-addons/pkg/watcher/objects.go:31: Failed to list *api.Pod: Get https://10.0.0.1:443/api/v1/pods?resourceVersion=0: dial tcp 10.0.0.1:443: i/o timeout
I0601 21:26:27.895284       1 reflector.go:196] Starting reflector *api.Service (5m0s) from github.com/appscode/voyager/vendor/github.com/appscode/k8s-addons/pkg/watcher/objects.go:42
I0601 21:26:27.895330       1 reflector.go:234] Listing and watching *api.Service from github.com/appscode/voyager/vendor/github.com/appscode/k8s-addons/pkg/watcher/objects.go:42
I0601 21:26:28.895317       1 reflector.go:234] Listing and watching *api.Pod from github.com/appscode/voyager/vendor/github.com/appscode/k8s-addons/pkg/watcher/objects.go:31
I0601 21:26:57.894414       1 reflector.go:196] Starting reflector *extensions.Ingress (5m0s) from github.com/appscode/voyager/vendor/github.com/appscode/k8s-addons/pkg/watcher/objects.go:118
I0601 21:26:57.894818       1 reflector.go:234] Listing and watching *extensions.Ingress from github.com/appscode/voyager/vendor/github.com/appscode/k8s-addons/pkg/watcher/objects.go:118
I0601 21:26:57.894448       1 reflector.go:196] Starting reflector *api.Endpoints (5m0s) from github.com/appscode/voyager/vendor/github.com/appscode/k8s-addons/pkg/watcher/objects.go:97
I0601 21:26:57.895192       1 reflector.go:234] Listing and watching *api.Endpoints from github.com/appscode/voyager/vendor/github.com/appscode/k8s-addons/pkg/watcher/objects.go:97
I0601 21:26:57.894683       1 reflector.go:196] Starting reflector *api.Ingress (5m0s) from github.com/appscode/voyager/vendor/github.com/appscode/k8s-addons/pkg/watcher/objects.go:128
I0601 21:26:57.896147       1 reflector.go:234] Listing and watching *api.Ingress from github.com/appscode/voyager/vendor/github.com/appscode/k8s-addons/pkg/watcher/objects.go:128
E0601 21:26:57.896327       1 reflector.go:199] github.com/appscode/voyager/vendor/github.com/appscode/k8s-addons/pkg/watcher/objects.go:42: Failed to list *api.Service: Get https://10.0.0.1:443/api/v1/services?resourceVersion=0: dial tcp 10.0.0.1:443: i/o timeout

@tamalsaha tamalsaha changed the title Operator should exit if it can't connect to master Watcher should exit if it can't connect to master Jun 6, 2017

@tamalsaha tamalsaha closed this Sep 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.