Ask Your Question
2

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
1

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 http://blog.aaronorosen.com/implement...

[edit: the original post disappeared. Here is the webarchive version] https://web.archive.org/web/201603042...

edit flag offensive delete link more

Comments

Thanks dude, you are rocks!!!

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

new url -- http://blog.aaronorosen.com/?p=320

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

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.

http://docs.openstack.org/admin-guide... 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

Comments

Thanks dude, it's working

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

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

NoNoNoo gravatar image

Other people have been your problem http://www.gossamer-threads.com/lists... . 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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

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

Seen: 5,426 times

Last updated: Oct 18 '17