Traffic to VIP not reaching instance #11271
-
We’re running into an issue on CloudStack 4.20.1 with a setup where we’re using keepalived and a VIP between two KVM instances in a shared guest network. Both instances have their own NIC with a static IP, and there’s a VIP in the same subnet that’s managed by keepalived. The VIP floats between the two VMs, but it’s not assigned statically to either NIC in CloudStack. It only exists inside the VMs when keepalived assigns it. When the VIP is active on any of the instances, we can’t connect to it. The security groups that are assigned to the instances allow all traffic (just for testing purposes). We ran tcpdump on the CloudStack host, and traffic to the VIP does arrive at the host. But inside the VM that currently holds the VIP, there’s nothing. The traffic never gets there. So our conclusion is: since the VIP isn’t defined in CloudStack itself, it looks like traffic to that IP isn’t forwarded to the instance, even though the IP is active on the interface from inside the VM. Some extra context:
We’re wondering:
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@automagics Is the VIP on VMs in an isolated network or in an L2 network (or some other kind)? |
Beta Was this translation helpful? Give feedback.
-
@automagics most likely the SG is blocking the traffic. Try it in a shared network (or L2) without SG. |
Beta Was this translation helpful? Give feedback.
@automagics most likely the SG is blocking the traffic. Try it in a shared network (or L2) without SG.