Ask Your Question
0

use of virtual router id in kolla globals.yaml

asked 2018-04-12 07:43:27 -0500

akarki gravatar image

updated 2018-04-12 22:32:23 -0500

Whats virtual router id in openstack kolla globals.yml Does it have to unique in a network. If yes how can i check it. Any help would be appriciated

####################
# keepalived options
####################
# Arbitrary unique number from 0..255
#keepalived_virtual_router_id: "51"
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2018-04-12 09:48:09 -0500

updated 2018-04-12 23:31:42 -0500

If you mean this:

####################
# keepalived options
####################
# Arbitrary unique number from 0..255
#keepalived_virtual_router_id: "51"

It’s an arbitrary number. Normally you don’t have to change the default, but in case you have several keepalived’s on the same network, you need to ensure they have different numbers to prevent trouble.

EDIT:

Kolla seems to use haproxy and keepalived to set up multiple controllers, as hinted in https://docs.openstack.org/kolla-ansi....

If you have multiple virtual router instances with the same ID on your network, you should see VRRP advertisements with the same ID, for example like this Serverfault question. I had such a situation once (deploying two Helion OpenStack clouds on the same network), but don’t remember what error messages if any were in the keepalived logs.

edit flag offensive delete link more

Comments

yes,but how can i check that it is unique in my network and whats its use in kolla deployment. I have seen scenario where a deployment gets failed at getting vip and throws 301 error but after changing keepalived_virtual_router_id solves the issue

akarki gravatar imageakarki ( 2018-04-12 22:31:56 -0500 )edit

I updated my answer.

Bernd Bausch gravatar imageBernd Bausch ( 2018-04-12 23:31:58 -0500 )edit

tcpdump on the network and check if you can see any other vrrp traffic.

theque42 gravatar imagetheque42 ( 2018-04-14 03:49:07 -0500 )edit

I dont understand the need for haproxy/keepalived in openstack.if i am deploying all-in-one.what is getting load balanced here?

akarki gravatar imageakarki ( 2018-04-14 15:17:13 -0500 )edit

If you deploy an all-in-one, you get nothing from ha-proxy (or perhaps I am wrong). However Kolla does not always deploy all-in-ones. My guess: It would require work to remove ha-proxy configuration from the all-in-one deployment, and since it doesn't hurt, the Kolla team left it in.

Bernd Bausch gravatar imageBernd Bausch ( 2018-04-14 20:13:35 -0500 )edit

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

1 follower

Stats

Asked: 2018-04-12 07:43:27 -0500

Seen: 54 times

Last updated: Apr 12