Bug 1623129
| Summary: | When using --public-hostname `oc cluster up` fails with error 'no route to host' and log 'Unable to create storage backend' | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Xingxing Xia <xxia> | ||||||
| Component: | Master | Assignee: | Michal Fojtik <mfojtik> | ||||||
| Status: | CLOSED WONTFIX | QA Contact: | Xingxing Xia <xxia> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 3.11.0 | CC: | aos-bugs, bparees, hongli, jokerman, mmccomas, wzheng | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | 3.11.z | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2019-03-07 11:24:50 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Xingxing Xia
2018-08-28 14:19:49 UTC
Created attachment 1479280 [details]
docker logs of container origin
Additional info: above --public-hostname=10.8.241.46, the IP is the oc cluster up host's IP; the host had no above issue in 3.10; it has done necessary configuration (including https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md#linux ). Tried another host shared in bug 1622106, that host reproduced the same issue too. Without --public-hostname, `oc cluster up` server is https://127.0.0.1:8443, making clients from other host cannot connect the server, leading to `oc cluster up` not usable for user. Therefore this issue needs be resolved in 3.11.0 release. PS: checked LATEST 3.10 oc (v3.10.35), found it has same issue. The host 10.8.250.232 was created by following https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md and had above problem. Based on following the doc, later I tried: # iptables -I INPUT 1 -p tcp --dport 8443 -j ACCEPT It can solve above 1st error "dial tcp xxx:8443: connect: no route to host". But the cluster still cannot be up, check the k8s_api_master-api-localhost_kube-system... container log, it shows error "dial tcp xxx:4001: connect: no route to host". Then I also tried: # iptables -I INPUT 1 -p tcp --dport 4001 -j ACCEPT Then, `oc cluster up --public-hostname=xxx --image='brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/ose-${component}:${version}' ` succeeds! Seems the firewall-cmd setting part of the doc https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md is not enough. If so, the doc needs update. |