[Openstack-operators] L3 HA Router
Tobias Urdin
tobias.urdin at crystone.com
Wed Sep 28 12:43:49 UTC 2016
Hello,
Please note that this is not recommended but it's currently the least invasive way (i.e not killing the machine or the keepalived process).
* Get the UUID of the L3 router.
* Go to the node that hosts your L3 routers (running the neutron-l3-agent service) and show all interfaces in that namespace.
* Shutdown ha-xxx interface in that routers namespace.
Example:
List all interfaces in this router namespace.
$ ip netns exec qrouter-ebb5939f-b8b2-4351-8995-27e4ccf9ebe2 ifconfig -a
Then just kill the "ha-xxxx" interface with:
$ ip netns exec qrouter-ebb5939f-b8b2-4351-8995-27e4ccf9ebe2 ifconfig ha-xxx down
You can find the current master router using
$ neutron l3-agent-list-hosting-router ebb5939f-b8b2-4351-8995-27e4ccf9ebe2
Read up more on how these things work, you will need it.
Google some stuff and you'll get something like this: https://developer.rackspace.com/blog/neutron-networking-l3-agent/
There is alot of resource at your disposal out there.
Good luck!
On 09/28/2016 01:58 PM, Davíð Örn Jóhannsson wrote:
I figured this might be the case, but can you tell how I can locate the interface for the router namespace, if I do a ifconfig -a on the network node, I only see the br-* interfaces and the physical ones.
I assume, I'd need to take down one of the interfaces that keepalived is responsible for, but I'm not sure how to find them and make the right connection interface to router in order to choose the right interface to take down
From: Tobias Urdin
Date: Wednesday 28 September 2016 at 11:11
To: David Orn Johannsson
Cc: "openstack-operators at lists.openstack.org<mailto:openstack-operators at lists.openstack.org>"
Subject: Re: [Openstack-operators] L3 HA Router
Hello,
Some work was done in that area however it was never completed.
https://bugs.launchpad.net/neutron/+bug/1370033
You can issue an ugly failover by taking down the "ha" interface in the router namespace of the master with ifconfig down. But it's not pretty.
Best regards
On 09/28/2016 11:40 AM, Davíð Örn Jóhannsson wrote:
OS: Ubuntu 14.04
OpenStack Liberty
Is it possible to perform a manual failover of HA routers between master and backup by any sensible means ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20160928/4bae0390/attachment.html>
More information about the OpenStack-operators
mailing list