]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
plugin/ryu: make live-migration work with Ryu plugin
authorIsaku Yamahata <yamahata@valinux.co.jp>
Tue, 20 Nov 2012 05:41:04 +0000 (14:41 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 3 Dec 2012 11:05:26 +0000 (20:05 +0900)
commit06b2b2b22a3f0a90a7ad60c09f360a1cec1f2b94
tree02770c10d1d0674d26f136fcc9b1a7b6a3804489
parent779093f3c25348083050e0d6a36ffca7f649dad0
plugin/ryu: make live-migration work with Ryu plugin

Fixes bug 1085861

Live-migration with Ryu plugin doesn't work because the unique constraint of
PortBinding table is violated as follows.
Now Ryu can handle those informations itself, so remove the table itself and
simplify Ryu plugin.

> ERROR [quantum.api.v2.resource] update failed
> Traceback (most recent call last):
>   File "/quantum/api/v2/resource.py", line 95, in resource
>     result = method(request=request, **args)
>   File "/quantum/api/v2/base.py", line 397, in update
>     obj = obj_updater(request.context, id, **kwargs)
>   File "/quantum/plugins/ryu/ryu_quantum_plugin.py", line 226, in update_port
>     port_binding.dpid, port_binding.port_no))
> InvalidInput: Invalid input for operation: invalid (datapath_id, port_no) requested (00002eab88ec5140, 4), but (0000c2f19014c74a, 1).

Change-Id: I7d993fd01125a27f6bf8e1b3fcac79ddcb8cb361
quantum/plugins/ryu/agent/ryu_quantum_agent.py
quantum/plugins/ryu/db/api_v2.py
quantum/plugins/ryu/db/models_v2.py
quantum/plugins/ryu/ryu_quantum_plugin.py