[Openstack] How to Force Cinder to Listen on a Specific Interface Only?

Ludwig Tirazona ljtirazona at gmail.com
Mon Feb 1 11:50:35 UTC 2016


My problem actually is that I have three controller nodes that are also my HAProxy nodes as well, and I want just one of my Cinders to be actively receiving connections through HAProxy, while the other two cinders are on hot standby, should the active one fail. 
I'm well aware of the existing race condition within the Liberty Cinder code, that's why I configured my HAProxy to be sticky to just one Cinder, and move on to the others when the active one goes down.
Now, since my HAProxy nodes are the same as my Controller Nodes, and Cinder binds to all Interfaces, haproxy can't bind to the VIP address.
If it is impossible to bind Cinder to just one interface, is there a way to change to Port it binds to?


  Original Message  
From:merlin.blom at nionex.net
Sent:February 1, 2016 18:46
To:ljtirazona at gmail.com; openstack at lists.openstack.org
Subject:Re: [Openstack] How to Force Cinder to Listen on a Specific Interface Only?



> Hello Everyone,
>     It seems that the default behavior for Cinder is to listen on all 
> available interfaces. I need it to listen to a single IP Address only. 
> I tried using "bind_host", but it doesn't work. Tried looking for a 
> sample config file that at least showed the option controlling the 
> binding behavior, I couldn't find any.

The binding Address is definded in the registered Endpoind.
Try "nova endpoint list" to find out where your services are binding.
And nova endpoint edit <ID> to edit your endpoint.

Merlin


More information about the Openstack mailing list