Wrong ha_state, when l3-agent that host the active router is down

Bug #1641811 reported by wujun
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
neutron
Invalid
Medium
wujun

Bug Description

In an L3 HA Setup with multiple network nodes, we can query the agent hosting the Master HA router via l3-agent-list-hosting-router.

root@node1:~# neutron l3-agent-list-hosting-router demo-router
+--------------------------------------+-------+----------------+-------+----------+
| id | host | admin_state_up | alive | ha_state |
+--------------------------------------+-------+----------------+-------+----------+
| 58fbfcf3-6403-4388-b713-523595411de6 | node1 | True | :-) | active |
| a74be278-e428-41a4-a375-9888e9b99bcd | node2 | True | :-) | standby |
+--------------------------------------+-------+----------------+-------+----------+

Now, On the node1, I stop the neutron-l3-agent, and then check the state.

root@node1:~# neutron l3-agent-list-hosting-router demo-router
+--------------------------------------+-------+----------------+-------+----------+
| id | host | admin_state_up | alive | ha_state |
+--------------------------------------+-------+----------------+-------+----------+
| 58fbfcf3-6403-4388-b713-523595411de6 | node1 | True | xxx | standby |
| a74be278-e428-41a4-a375-9888e9b99bcd | node2 | True | :-) | standby |
+--------------------------------------+-------+----------------+-------+----------+

You can see that there is no "active" router, but north-south traffic is still though the node1 and the keepalived work normally. I think the ha_state of node1 shoud be "active".

Tags: l3-ha
wujun (wujun)
Changed in neutron:
assignee: nobody → wujun (wujun)
description: updated
wujun (wujun)
summary: - Wrong ha_state, when l3-agent that host the master router is down
+ Wrong ha_state, when l3-agent that host the active router is down
Revision history for this message
Victor Morales (electrocucaracha) wrote :

Hi wujun,

Thanks for reporting it, I tried to reproduce this bug but I need some extra information for that, like the release that you're using and the relevant configuration values that you used.

description: updated
Changed in neutron:
status: New → Incomplete
Revision history for this message
wujun (wujun) wrote :

you can reproduce this bug by stable/newton release.

wujun (wujun)
Changed in neutron:
status: Incomplete → In Progress
Changed in neutron:
status: In Progress → Triaged
importance: Undecided → High
tags: added: l3-ha
Changed in neutron:
importance: High → Medium
Revision history for this message
Brian Haley (brian-haley) wrote :

There have been a number of issues fixed in this area the past few releases, closing. If it still happens on a newer release please re-open.

Changed in neutron:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.