Ask Your Question

Keepalived on openstack vm is possible?

asked 2015-01-28 01:33:11 -0500

iqbal gravatar image

Dear stackers,

I install keepalived on openstack vm and try create virtual ip for my lan network. But not working, I try use flat network with floating IP and vlan, but still no luck.

It's possible use keepalived on openstack vm??

Thank you

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-01-28 08:03:32 -0500

darragh-oreilly gravatar image

updated 2017-10-18 10:57:40 -0500

smaffulli gravatar image

yes - see

[edit: the original post disappeared. Here is the webarchive version]

edit flag offensive delete link more


Thanks dude, you are rocks!!!

iqbal gravatar imageiqbal ( 2015-01-29 00:29:18 -0500 )edit

new url --

Sky gravatar imageSky ( 2016-06-21 22:40:34 -0500 )edit

answered 2015-01-28 01:49:56 -0500

Yes it is possible. When you create an instance libvirt will assign a mac address to your ETH device. Neutron will assign the next available IP in the subnet to your ETH device. That is the only IP and MAC that is allowed to egress from that port.

You will need to tell neutron about your VIP and new MAC assigned to your VIP via the allowed address pairs extension. Basic operation is to update your instances port.

neutron port-update  <port-uuid> --allowed-address-pairs type=dict list=true mac_address=<mac_address>,ip_address=<ip_cidr>
edit flag offensive delete link more


Thanks dude, it's working

iqbal gravatar imageiqbal ( 2015-01-29 00:29:58 -0500 )edit

answered 2015-01-28 01:46:16 -0500

NoNoNoo gravatar image

Other people have been your problem . It seems caused by the compute node firewall that block vrrp protocol used by keealived. You can use the iptables rules described in the link to enable vrrp protocol in each compute node but I don't know if vrrp protocol are forwarded between different compute node.

In alternative you can use other cluster software for instance corosync/pacemaker that can use unicast udp for the heartbeat connection.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-01-28 01:33:11 -0500

Seen: 7,053 times

Last updated: Oct 18 '17