Comment 21 for bug 1648242

Reviewed: https://review.openstack.org/423055
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=ff7c5c25d3845e4cbdd318389c02564290a7a0f2
Submitter: Jenkins
Branch: stable/newton

commit ff7c5c25d3845e4cbdd318389c02564290a7a0f2
Author: AKamyshnikova <email address hidden>
Date: Fri Dec 16 16:00:59 2016 +0400

    Add check for ha state

    If all agents are shown as a standby it is possible changing state
    were lost due to problems with RabbitMQ. Current change adds check
    for ha state in fetch_and_sync_all_routers. If state is different -
     notify server that state should be changed.

    Also change _get_bindings_and_update_router_state_for_dead_agents
    to set standby for dead agent only in case we have more than one
    active.

    (cherry picked from commit 1927da1bc7c4e56162dd3704d58d3b922d4ebce9)
    Change-Id: If5596eb24041ea9fae1d5d2563dcaf655c5face7
    Closes-bug:#1648242