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
Possible network issue involving VRRP #112
Comments
When you say this setup works in "non vagrant managed vm's", does that include VMs managed by libvirt? I don't think we're doing anything that would break multicast. Libvirt does have a concept of network filters, but vagrant-libvirt doesn't enable any of them. |
@sciurus I have tested it with vm's that I've built manually with cobbler in the past (this was a long time ago). Most recent non-vagrant related tests have been on physical iron. (and keepalived works as expected). Not quite sure what is wrong for sure, but seeing as the vagrant 192.168.142.1 gateway is involved, I thought it might be related to vagrant. |
Okay. I'd call 192.168.142.1 a libvirt, rather than a vagrant, gateway. vagrant-libvirt is just providing a nicer interface to functionality implemented by libvirt; as soon as your You should be able to view the network configuration by running |
Very true. I'll hack on this more from the libvirt side.
Sounds reasonable. The one thing that I'd mention, is that it would be nice to have vagrant-libvirt use a single interface for all the management, and that interface be a static IP. Currently this is only possible with DHCP. At the moment, I've worked around this with a second interface which is static for VM work, and the eth0 interface for vagrant-libvirt. Cheers! |
So I think this turns out to be a libvirt bug: I'll be upgrading to F20 later and testing again. Thanks for your comments. |
Okay, @pronix looks like this is ready to be closed then. |
I can close. Thanks |
there was interesting to read. thanks |
Not entirely sure if this is vagrant-libvirt's fault, but I'm not sure where else to look.
I have a four host vagrant-libvirt deployment. I'm trying to run VRRP (keepalived) to provide a virtual ip address. For whatever reason, I haven't been able to get it to successfully work. I've built the same setup on iron or non vagrant managed vm's without issue before.
Some details:
Each host has a similar keepalived configuration:
the priority is different for each host. I've left them all as BACKUP for demonstration, but it doesn't change anything if one is MASTER. This only sets the initial state.
This is from annex4... as you can see it sees it's own advertisement traffic, but also traffic from annex1 (I know it's annex1 because priority field is 254 which is unique to annex1) but the source IP seems to be the router! Not sure if this is supposed to be the case. I would expect it to be "annex1" Maybe this is what vagrant-libvirt networking is breaking? If so this would explain why each host is ignoring advertisement packets from each other.
Each host has decided to be the MASTER and hold the VIP.
The one strange thing about all this (apart from it not working) is that in the tcpdump, each host sees it's own traffic, and the traffic from annex1. Annex1 only sees it's own traffic. Strange that there is an asymmetry.
So maybe something strange is happening with the vagrant-libvirt networking. My config for each vm is:
Any suggestions are appreciated!
The text was updated successfully, but these errors were encountered: