Comment 22 for bug 1648242

Reviewed: https://review.openstack.org/423064
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=c8a4fa46948e5026923ae22eb75aeeb4a93161c4
Submitter: Jenkins
Branch: stable/mitaka

commit c8a4fa46948e5026923ae22eb75aeeb4a93161c4
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