Last active
August 29, 2015 14:10
-
-
Save pweil-/dcbb122c097737adb917 to your computer and use it in GitHub Desktop.
Router not picking up routes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...... vagrant up with dev cluster set ...... | |
===== Create Command ====== | |
[vagrant@openshift-master vagrant]$ hack/install-router.sh router-1 10.245.1.2 && hack/install-router.sh router-2 10.245.1.2 && openshift kube -c paul_temp/pod.json create pods && openshift kube -c paul_temp/route.json create routes && openshift kube -c paul_temp/service.json create services | |
Creating router file and starting pod... | |
router-1 | |
Creating router file and starting pod... | |
router-2 | |
Name Image(s) Host Labels Status | |
---------- ---------- ---------- ---------- ---------- | |
hello-pod openshift/hello-openshift <unassigned> name=hello-openshift Pending | |
Name Host/Port Path Service Labels | |
---------- ---------- ---------- ---------- ---------- | |
265c423f-7c88-11e4-9cea-0800279696e1 hello-openshift.shard1.v3.rhcloud.com hello-openshift | |
Name Labels Selector IP Port | |
---------- ---------- ---------- ---------- ---------- | |
hello-openshift name=hello-openshift 172.121.17.3 27017 | |
[vagrant@openshift-master vagrant]$ openshift kube list pods | |
Name Image(s) Host Labels Status | |
---------- ---------- ---------- ---------- ---------- | |
hello-pod openshift/hello-openshift openshift-minion-2/ name=hello-openshift Running | |
router-1 openshift/origin-haproxy-router openshift-minion-1/ Running | |
router-2 openshift/origin-haproxy-router openshift-minion-2/ Running | |
[vagrant@openshift-master vagrant]$ openshift kube list pods | |
Name Image(s) Host Labels Status | |
---------- ---------- ---------- ---------- ---------- | |
router-1 openshift/origin-haproxy-router openshift-minion-1/ Running | |
router-2 openshift/origin-haproxy-router openshift-minion-2/ Running | |
hello-pod openshift/hello-openshift openshift-minion-2/ name=hello-openshift Running | |
[vagrant@openshift-master vagrant]$ openshift kube list routes | |
Name Host/Port Path Service Labels | |
---------- ---------- ---------- ---------- ---------- | |
265c423f-7c88-11e4-9cea-0800279696e1 hello-openshift.shard1.v3.rhcloud.com hello-openshift | |
===== Delete/Create Command ====== | |
[vagrant@openshift-master vagrant]$ openshift kube delete routes/265c423f-7c88-11e4-9cea-0800279696e1 | |
Status | |
---------- | |
Success | |
[vagrant@openshift-master vagrant]$ openshift kube create -c paul_temp/route.json routes | |
Name Host/Port Path Service Labels | |
---------- ---------- ---------- ---------- ---------- | |
983af9f5-7c88-11e4-9cea-0800279696e1 hello-openshift.shard1.v3.rhcloud.com hello-openshift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.... run create command from first window and wait for all pods to be running ..... | |
.... continually try to curl the route ..... | |
..... route appears to have bound but is not yet serving ..... | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
^C | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
curl: (52) Empty reply from server | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
curl: (52) Empty reply from server | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
curl: (52) Empty reply from server | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
curl: (52) Empty reply from server | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
curl: (52) Empty reply from server | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
curl: (52) Empty reply from server | |
..... router now appears to be up and serving, a route should've been picked up ..... | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
<html><body><h1>503 Service Unavailable</h1> | |
No server is available to handle this request. | |
</body></html> | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
<html><body><h1>503 Service Unavailable</h1> | |
No server is available to handle this request. | |
</body></html> | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
<html><body><h1>503 Service Unavailable</h1> | |
No server is available to handle this request. | |
</body></html> | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
<html><body><h1>503 Service Unavailable</h1> | |
No server is available to handle this request. | |
</body></html> | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
<html><body><h1>503 Service Unavailable</h1> | |
No server is available to handle this request. | |
</body></html> | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
<html><body><h1>503 Service Unavailable</h1> | |
No server is available to handle this request. | |
</body></html> | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
<html><body><h1>503 Service Unavailable</h1> | |
No server is available to handle this request. | |
</body></html> | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
<html><body><h1>503 Service Unavailable</h1> | |
No server is available to handle this request. | |
</body></html> | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
<html><body><h1>503 Service Unavailable</h1> | |
No server is available to handle this request. | |
</body></html> | |
...... run delete/create command in first window ....... | |
[vagrant@openshift-master vagrant]$ curl -H "Host:hello-openshift.shard1.v3.rhcloud.com" openshift-minion-1 | |
Hello OpenShift! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment