-
Notifications
You must be signed in to change notification settings - Fork 33
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
USER network mode can't register to consul #284
Comments
Can you show more logs? It should contain information what is registered. There is a chance healtchceck is not passing so service is not available. |
hi, here is log when i start an application
the app pass health check but i can't see it on consul There is some info about app:
I tested with HOST network mode and see it works as expected. |
Could you post Minimal, Complete, and Verifiable example of marathon application JSON so I can test it? What versions are you using (Marathon, Consul, Marathon-Consul)? |
[root@node1 ~]# docker network ls
NETWORK ID NAME DRIVER SCOPE
a96e392429fe bridge bridge local
ff4464cb6052 host host local
c512d25f75c4 my_net calico global
df9ccac92157 none null local marathon application JSON {
"id": "/nginx-net",
"cmd": null,
"cpus": 0.1,
"mem": 64,
"disk": 0,
"instances": 3,
"constraints": [
[
"hostname",
"UNIQUE"
]
],
"acceptedResourceRoles": [
"*"
],
"container": {
"type": "DOCKER",
"docker": {
"forcePullImage": false,
"image": "nginx",
"parameters": [],
"privileged": false
},
"volumes": [],
"portMappings": [
{
"containerPort": 80,
"labels": {},
"protocol": "tcp",
"servicePort": 10004
}
]
},
"healthChecks": [
{
"gracePeriodSeconds": 300,
"ignoreHttp1xx": false,
"intervalSeconds": 60,
"maxConsecutiveFailures": 3,
"path": "/",
"portIndex": 0,
"protocol": "HTTP",
"ipProtocol": "IPv4",
"timeoutSeconds": 20,
"delaySeconds": 15
}
],
"labels": {
"consul": "nginx-net",
"HAPROXY_GROUP": "proxy",
"HAPROXY_0_VHOST": "node5.test"
},
"networks": [
{
"name": "my_net",
"mode": "container"
}
],
"portDefinitions": []
}
[
{
"Name": "my_net",
"Id": "c512d25f75c4e93b579559d1c39d08f85c39956916d900b62b8700633d81a472",
"Created": "2018-04-21T23:13:42.947360347+08:00",
"Scope": "global",
"Driver": "calico",
"EnableIPv6": false,
"IPAM": {
"Driver": "calico-ipam",
"Options": {},
"Config": [
{
"Subnet": "192.0.2.0/24"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"Containers": {
"3835c3c37b64cf4688fce64d6abb42587335aed72894da56dacf0e13067f9440": {
"Name": "mesos-88ab805c-4a85-44c0-bd2f-c6826be5413e",
"EndpointID": "533ea9f8685bbf75c9cb4aa08fa5603b3733b0474e36607d52076537052bcbdc",
"MacAddress": "ee:ee:ee:ee:ee:ee",
"IPv4Address": "192.0.2.68/32",
"IPv6Address": ""
},
"ep-f50a38d45064c24d1a21ea469eb99e7fd1df7114274844c85999609f78fce782": {
"Name": "mesos-1ca57deb-3502-483f-aa67-3e95ce41dbcd",
"EndpointID": "f50a38d45064c24d1a21ea469eb99e7fd1df7114274844c85999609f78fce782",
"MacAddress": "ee:ee:ee:ee:ee:ee",
"IPv4Address": "192.0.2.7/32",
"IPv6Address": ""
},
"ep-f5b2b0adfcdc7cc2b1b376ae67dad9d4509ffc715775862f10008363bd692bd4": {
"Name": "mesos-fb3ee9b9-7b1a-4802-8f96-1dbcf5603a9e",
"EndpointID": "f5b2b0adfcdc7cc2b1b376ae67dad9d4509ffc715775862f10008363bd692bd4",
"MacAddress": "ee:ee:ee:ee:ee:ee",
"IPv4Address": "192.0.2.199/32",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {}
}
] |
I'm using USER mode network with calico and try to run mesos-consul but
I see the logs:
HOST network mode is ok
The text was updated successfully, but these errors were encountered: