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.
Reviewed: https:/ /review. openstack. org/238123 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=0b8f9d0948c db429c4b67ba138 640ae515ffa1b2
Committed: https:/
Submitter: Jenkins
Branch: master
commit 0b8f9d0948cdb42 9c4b67ba138640a e515ffa1b2
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 L3HARouterAgent PortBinding with l3_agent as None, ha_port_ and_bind and _bind_ha_ router_ to_agents in change cfd70061daecf41 1c924fdc11b7e41
operation of setting l3_agent should be atomic.
For this purpose, transaction was added in methods
create_
Iaad82fe522
In case if router was just created and l3 agent was not scheduled yet, list-hosting- router <router> will fail.
so l3_agent_id is None, l3-agent-
This change makes it work by skipping binding with agent_id=None.
Partial-bug: #1499647
Change-Id: I1aaf4b651f738f ebc26b0e1105aea be066bca2a0