Comment 14 for bug 1499647

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

Reviewed: https://review.openstack.org/238123
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=0b8f9d0948cdb429c4b67ba138640ae515ffa1b2
Submitter: Jenkins
Branch: master

commit 0b8f9d0948cdb429c4b67ba138640ae515ffa1b2
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