Comment 6 for bug 1365453

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote : Re: It's very difficult to know what is the state of a HA router on each L3 agent

As you mentioned, the data model keeps track of whether each agent associated to the router is an active or a passive replica (see [1]). So if I understand this correctly, this bug should be about exposing this information to the admin and to ensure the data model it's kept in sync with the backend implementation. For this reason, I found the bug report title, and the description a bit confusing.

Also, wouldn't be this command:

neutron l3-agent-list-hosting-router

more suitable?

The output today is the list of agents hosting the router, but we could add more attributes, like the state, when the router is HA.

[1] - https://github.com/openstack/neutron/blob/master/neutron/db/l3_hamode_db.py#L82