-
Notifications
You must be signed in to change notification settings - Fork 49
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
[libnetwork] cali interface not show on other host and cannot ping in the same network #188
Comments
The To figure out why ping isn't working, I'd recommend using Also |
@caseydavenport thanks for your response.
|
You most likely won't see a specific IP of the container but a subnet on the database node. That is why you see
Calico uses /26 subnets to reduce the number of routes to distribute low. Above I said 'most likely' because if you have used up all the /26 subnets and a node needs another address it can use an IP from a subnet another host has claimed but will then distribute that specific route and the more specific route takes precedence. |
@tmjd thanks for your explanation and sorry for delay reply.
and at the same time, at the interface of the container that has IP 10.10.20.10:
I checked to find any packet was dropped, but no one:
Could you please explain why this happen and how can I get ping between them success? |
If you try pinging the other way |
yes, I see the ICMP echo requests by tcpdump cali5d7128fa54b when I ping 10.10.20.10 > 10.10.20.21 |
Could you run You could try downgrading to Calico v2.6.2? I'm only suggesting this because of projectcalico/calico#1512 |
@tmjd I tried commands, both work fine:
I also tried ping from the host to containers, I got the same result:
at the same time:
I aslo get this problem when I try downgrading to Calico v2.6.2. |
when I ping from container to the host (in data center), I get reply packet but not shown in output of ping command:
and at vether
Could you please explain why I don't see any output from ping command? is this because of calico? |
I'm not sure why that would be. If you are seeing the traffic on the interface then it should be in the container, there is no filtering (that I'm aware of) in the container. |
I just installed with following basic commands. It's so basic, so I don't know why I got this bug:
When calico node run correctly.
and then, I created a network with above pool:
and created containers:
That's all my basic commands I did. please take a look, and tell me if any command wrong? |
One thing that looks odd to me is that you set the InterfacePrefix for calico. Did you find that was needed? because it looks like what you've set should be the default. TBH I didn't know that was an option to change. Did you try as I suggested and try netcat or nginx as your container? If the ping traffic is making it to the cali interface then it is in the container so at that point I don't know what could be wrong. You show that you're using busybox and that is not a problem I've seen before with that image. Anyone else got ideas? |
@tmjd thanks for your help, |
@huynhducbk95 Do you have a link to the issue? |
@huynhducbk95 I would be very interested to know exactly what is that Docker 18.x issue, as I'm facing the problem. Thanks! |
@wegel I don't know exactly what version used, but I just downgrade to 17.12.1~ce-0~ubuntu |
I was facing the exact same issue that @huynhducbk95 and the problem was solved after downgrading from docker 18.03.1-ce to 17.03.2-ce. If someone knows whats going on with Docker 18.x, that would be great! |
docker 18.06.0-ce is ok |
thx, I never thought about docker, but the problem was solved after restart docker. docker version
|
My deployment deploy docker container with calico network have 2 nodes (virtual machine created by KVM).
when I done all step, I get state:
I got two problems as follow:
And then, I tried to ping from container
my_workload
to containermy_workload01
but it's failed.2, I can see these container's IP on
docker
host, but not ondatabase
host:I aslo tried with IPIP mode, but I got the same error
can anyone help me:
why cali* interfaces not shown in other host?
why ping failed between containers in the same host and the same network, please?
My Environment
calicoctl version
):docker run --rm calico/node versions
): v2.6.8The text was updated successfully, but these errors were encountered: