Repository navigation
Closed
Description
When I try to connect to a service from a pod that is colocated with the destination pod - it works, but when the destination pod is running on another minion, the connection is not possible.
Below you can find an example - I'm trying to connect from wildflyPod to lbPod via service. It does work when wildflyPod and lbPod are running on the same minion, otherwise it won't work.
{
"kind": "Config",
"id": "wildfly-config",
"apiVersion": "v1beta1",
"name": "JBoss WildFly",
"description": "Creates a JBoss WildFly cluster",
"items": [
{
"kind": "Service",
"id": "lb-http-service",
"apiVersion": "v1beta1",
"port": 90,
"containerPort": 80,
"selector": {
"name": "lbPod"
}
},
{
"kind": "Service",
"id": "wildfly-http-service",
"apiVersion": "v1beta1",
"port": 80,
"containerPort": 8080,
"selector": {
"name": "wildflyPod"
}
},
{
"kind": "Service",
"id": "wildfly-https-service",
"apiVersion": "v1beta1",
"port": 443,
"containerPort": 8443,
"selector": {
"name": "wildflyPod"
}
},
{
"kind": "ReplicationController",
"id": "wildflyController",
"apiVersion": "v1beta1",
"labels": {
"name": "wildflyController"
},
"desiredState": {
"replicas": 2,
"replicaSelector": {
"name": "wildflyPod"
},
"podTemplate": {
"desiredState": {
"manifest": {
"id": "wildflyPod",
"version": "v1beta1",
"containers": [
{
"image": "luksa/wildflycluster",
"name": "wildfly-container",
"env": [
{
"name": "FOO",
"value": "BAR"
}
],
"ports": [
{
"hostPort": 9888,
"containerPort": 8080
},
{
"hostPort": 9443,
"containerPort": 8443
}
]
}
],
"volumes": null
}
},
"labels": {
"name": "wildflyPod"
}
}
}
},
{
"kind": "ReplicationController",
"id": "lbController",
"apiVersion": "v1beta1",
"labels": {
"name": "lbController"
},
"desiredState": {
"replicas": 1,
"replicaSelector": {
"name": "lbPod"
},
"podTemplate": {
"desiredState": {
"manifest": {
"id": "lbPod",
"version": "v1beta1",
"containers": [
{
"image": "goldmann/mod_cluster",
"name": "lb-container"
}
],
"volumes": null
}
},
"labels": {
"name": "lbPod"
}
}
}
}
]
}Metadata
Metadata
Assignees
Labels
No labels
Activity
mfojtik commentedon Jan 22, 2015
FYI this is f21, Vagrant with VirtualBox using OPENSHIFT_DEV_CLUSTER
smarterclayton commentedon Jan 31, 2015
@mrunalp what's the status of this?
mrunalp commentedon Feb 1, 2015
I believe with the stability changes that went into openshift-sdn the last week, it should work with it. I will try this out on Monday and update status.
mrunalp commentedon Feb 3, 2015
I tried this with openshift-sdn and am able to curl the lb-service to reach the backend which is running on another minion.
export OPENSHIFT_SDN='ovs-simple'
rajatchopra commentedon Feb 3, 2015
To clarify, plain 'vagrant up' uses the old GRE networking.
To use the new openshift-sdn, do the following -
goldmann commentedon Feb 4, 2015
With openshift-sdn it does not work either.
You need to curl from inside of the container which is running on another minion. I'm using origin version tagged as
v0.2.1.Minion 1:
Minion 2:
rajatchopra commentedon Feb 4, 2015
Works for me.
On master,
On minion-2,
On minion-1,
mrunalp commentedon Feb 4, 2015
@rajatchopra Maybe we need to look at @goldmann setup and debug it there?
goldmann commentedon Feb 4, 2015
Which revision do you use? I used the v0.2.1 tag. This is a fresh set up using:
rajatchopra commentedon Feb 4, 2015
I did it off the master branch, Marek :)
goldmann commentedon Feb 4, 2015
I badly hunt for a stable revision so we at cloud enablement can base on something ;)
Any hints?
smarterclayton commentedon Feb 4, 2015
Did your fixes get in before last night? Then Marek can pull 0.2.2
----- Original Message -----
rajatchopra commentedon Feb 4, 2015
No fix was made.
I guess we need to look at goldmann's setup itself.
goldmann commentedon Feb 4, 2015
I'll give v0.2.2 a shot and get back to you ;)
goldmann commentedon Feb 4, 2015
I can confirm that with
v0.2.2I can reach the service from any of the pods.mrunalp commentedon Feb 4, 2015
@goldmann Thanks!
smarterclayton commentedon Feb 12, 2015
Reopen if similar issues recur.