Comment 25 for bug 1499647

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/kilo)

Reviewed: https://review.openstack.org/255911
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=8aca427153485a8e3918497ed4e994c306dcb9fa
Submitter: Jenkins
Branch: stable/kilo

commit 8aca427153485a8e3918497ed4e994c306dcb9fa
Author: Ann Kamyshnikova <email address hidden>
Date: Wed Oct 21 17:37:34 2015 +0300

    Skip bindings with agent_id=None

    To avoid having extra L3HARouterAgentPortBinding with l3_agent as None,
    operation of setting l3_agent should be atomic.
    For this purpose, transaction was added in methods
    create_ha_port_and_bind and _bind_ha_router_to_agents in change
    Iaad82fe522cfd70061daecf411c924fdc11b7e41

    In case if router was just created and l3 agent was not scheduled yet,
    so l3_agent_id is None, l3-agent-list-hosting-router <router> will fail.
    This change makes it work by skipping binding with agent_id=None.

    Partial-bug: #1499647

    Change-Id: I1aaf4b651f738febc26b0e1105aeabe066bca2a0
    (cherry picked from commit 0b8f9d0948cdb429c4b67ba138640ae515ffa1b2)