ha router sometime goes in standby mode in all controllers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Slawek Kaplonski |
Bug Description
Sometimes when 2 HA routers are created for same tenant in very short time, it may happen that both routers will have same vr_id assigned thus it will be same application for keepalived and only one of those routers will be active on some hosts.
When I spotted it it looked like:
[stack@undercloud-0 ~]$ neutron l3-agent-
+------
| id | host | admin_state_up | alive | ha_state |
+------
| 0d654b7c-
| 242e1e81-
| 3d241b02-
+------
[stack@undercloud-0 ~]$ neutron l3-agent-
+------
| id | host | admin_state_up | alive | ha_state |
+------
| 3d241b02-
| 0d654b7c-
| 242e1e81-
+------
And in db it looks like:
MariaDB [ovs_neutron]> select * from router_
+------
| router_id | distributed | service_router | ha | ha_vr_id | availability_
+------
| 6ba430d7-
| ace64e85-
| cd6b61e1-
+------
3 rows in set (0.01 sec)
MariaDB [ovs_neutron]> select * from ha_router_
+------
| network_id | vr_id |
+------
| 45aaae94-
+------
1 row in set (0.01 sec)
So indeed there is possible race during such creation of 2 different routers in very short time.
But when I then created another router, it was created properly with new vr_id and all worked fine for it:
[stack@undercloud-0 ~]$ neutron l3-agent-
+------
| id | host | admin_state_up | alive | ha_state |
+------
| 0d654b7c-
| 242e1e81-
| 3d241b02-
+------
MariaDB [ovs_neutron]> select * from ha_router_
+------
| network_id | vr_id |
+------
| 45aaae94-
| 45aaae94-
+------
I found this bug on old version based on Newton release but from what I saw in https:/
Changed in neutron: | |
assignee: | nobody → Slawek Kaplonski (slaweq) |
Changed in neutron: | |
importance: | Undecided → Low |
status: | New → Confirmed |
tags: | added: canonical-bootstack |
Changed in neutron: | |
status: | Confirmed → Fix Released |
Related fix proposed to branch: master /review. openstack. org/651495
Review: https:/