The service atomic-openshift-master-api is not able to start, connection refused trying to connect to 443 while kubernetes service was configured on 8443

Solution Verified - Updated -

Issue

The service atomic-openshift-master-api is not running successfully, it's not able to start due to connection refused errors.

Jun 27 11:31:59 master1.example.com atomic-openshift-master-api[113737]: E0627 11:31:59.553088  113737 reflector.go:205] github.com/openshift/origin/vendor/k8s.io/client-go/informers/factory.go:86: Failed to list *v1.Endpoints: Get https://master1.example.com/api/v1/endpoints?limit=500&resourceVersion=0: dial tcp 10.0.0.208:443: getsockopt: connection refused
Jun 27 11:31:59 master1.example.com atomic-openshift-master-api[113737]: E0627 11:31:59.553170  113737 reflector.go:205] github.com/openshift/origin/vendor/k8s.io/client-go/informers/factory.go:86: Failed to list *v1.Namespace: Get https://master1.example.com/api/v1/namespaces?limit=500&resourceVersion=0: dial tcp 10.0.0.208:443: getsockopt: connection refused
Jun 27 11:31:59 master1.example.com atomic-openshift-master-api[113737]: E0627 11:31:59.553251  113737 reflector.go:205] github.com/openshift/origin/vendor/k8s.io/client-go/informers/factory.go:86: Failed to list *v1.Service: Get https://master1.example.com/api/v1/services?limit=500&resourceVersion=0: dial tcp 10.0.0.208:443: getsockopt: connection refused
Jun 27 11:31:59 master1.example.com atomic-openshift-master-api[113737]: E0627 11:31:59.553602  113737 reflector.go:205] github.com/openshift/origin/vendor/github.com/openshift/client-go/user/informers/externalversions/factory.go:57: Failed to list *v1.Group: Get https://master1.example.com/apis/user.openshift.io/v1/groups?limit=500&resourceVersion=0: dial tcp 10.0.0.208:443: getsockopt: connection refused
Jun 27 11:31:59 master1.example.com atomic-openshift-master-api[113737]: F0627 11:31:59.553662  113737 hooks.go:188] PostStartHook "oauth.openshift.io-EnsureBootstrapOAuthClients" failed: Post https://master1.example.com/apis/oauth.openshift.io/v1/oauthclients: dial tcp 10.0.0.208:443: getsockopt: connection refused

In addittion, atomic-openshift-master-controllers service reports the same connection refused errors while connecting to kubernetes service ip.

E0627 11:30:58.977913       1 reflector.go:205] github.com/openshift/origin/pkg/router/controller/factory/factory.go:117: Failed to list *core.Endpoints: Get https://172.30.0.1:443/api/v1/endpoints?limit=500&resourceVersion=0: dial tcp 172.30.0.1:443: getsockopt: connection refused
E0627 11:30:58.979183       1 reflector.go:205] github.com/openshift/origin/pkg/router/controller/factory/factory.go:117: Failed to list *route.Route: Get https://172.30.0.1:443/apis/route.openshift.io/v1/routes?limit=500&resourceVersion=0: dial tcp 172.30.0.1:443: getsockopt: connection refused
E0627 11:30:59.978921       1 reflector.go:205] github.com/openshift/origin/pkg/router/controller/factory/factory.go:117: Failed to list *core.Endpoints: Get https://172.30.0.1:443/api/v1/endpoints?limit=500&resourceVersion=0: dial tcp 172.30.0.1:443: getsockopt: connection refused
E0627 11:30:59.979956       1 reflector.go:205] github.com/openshift/origin/pkg/router/controller/factory/factory.go:117: Failed to list *route.Route: Get https://172.30.0.1:443/apis/route.openshift.io/v1/routes?limit=500&resourceVersion=0: dial tcp 172.30.0.1:443: getsockopt: connection refused

Environment

  • OpenShift
    • 3.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.