yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #87123
[Bug 1934420] Re: [OVN]ControllerAgent cannot be changed to ControllerGatewayAgent dynamically
Reviewed: https://review.opendev.org/c/openstack/neutron/+/800278
Committed: https://opendev.org/openstack/neutron/commit/9cffd7b3223c2e8c88129c79aa62c255350c55d4
Submitter: "Zuul (22348)"
Branch: master
commit 9cffd7b3223c2e8c88129c79aa62c255350c55d4
Author: Elvira García <egarciar@xxxxxxxxxx>
Date: Fri Jul 9 17:55:56 2021 +0200
[OVN] Change ControllerAgent type dinamically
The ControllerAgent class now changes in Openstack when changing the
type of an agent in its ovsdb table. This is possible thanks to adding a
new condition to the event that triggered the update of the AgentCache.
If the right external_ids changed, a new agent with the correct class
will replace the old one in the AgentCache. Also adds functional
tests to check this.
Closes-Bug: #1934420
Signed-off-by: Elvira García <egarciar@xxxxxxxxxx>
Change-Id: I75380c455864aa055e8049a6beff8619687b52ce
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1934420
Title:
[OVN]ControllerAgent cannot be changed to ControllerGatewayAgent
dynamically
Status in neutron:
Fix Released
Bug description:
I have 3 nodes. NodeA, NodeB, NodeC.
I execute cmd 'ovs-vsctl set open_vswitch . external-ids:ovn-cms-
options=enable-chassis-as-gw' in NodeA and NodeV, as gateway Node.
show agent list by executing the command 'openstack network agent
list':
NodeA is 'OVN Controller Gatewaty agent'
NodeB is 'OVN Controller Gatewaty agent'
NodeC is 'OVN Controller agent'
the result is the same as I expected.
next I execute cmd 'ovs-vsctl set open_vswitch . external-ids:ovn-cms-
options=enable-chassis-as-gw' in NodeC,
show agent list by executing the command 'openstack network agent
list':
NodeA is 'OVN Controller Gatewaty agent'
NodeB is 'OVN Controller Gatewaty agent'
NodeC is 'OVN Controller agent'
The NodeC is still 'OVN Controller agent', not 'OVN Controller
Gatewaty agent', The command has been executed many times and the
result is still unchanged.
But as long as I execute the command to restart the neutron service,
the result will be correct. NodeC is 'OVN Controller Gatewaty agent'.
Similarly, the 'OVN Controller Gatewaty agent' cannot be turned into
'OVN Controller agent' without restarting the neutron service.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1934420/+subscriptions
References