diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2013-02-13 08:26:51 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-02-13 08:55:32 +0900 |
commit | e87f7d5be378ee277a46e46a758f1d510f62f268 (patch) | |
tree | ec3e4aca2a75ce4f2381196bba2611f78743adef | |
parent | b82c2909f174880d8895002fcad42249b7d542d5 (diff) |
quantum_adapter: exception when VM deletion
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/gevent/greenlet.py", line 390, in run
> result = self._run(*self.args, **self.kwargs)
> File "/opt/stack/ryu/ryu/base/app_manager.py", line 86, in _event_loop
> handler(ev)
> File "/opt/stack/ryu/ryu/app/quantum_adapter.py", line 368, in dp_handler
> ovs_switch.close()
> AttributeError: 'OVSSwitch' object has no attribute 'close'
This is legacy from the old code, so remove calling close method
Reported-by: Yoshihiro Kaneko <y.kaneko__0929@nifty.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/app/quantum_adapter.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ryu/app/quantum_adapter.py b/ryu/app/quantum_adapter.py index 29d063db..6f6090d6 100644 --- a/ryu/app/quantum_adapter.py +++ b/ryu/app/quantum_adapter.py @@ -363,9 +363,7 @@ class QuantumAdapter(app_manager.RyuApp): # can be disconnected for some reason. # TODO: configuration needed to tell that this dp is really # removed. - ovs_switch = self.dps.pop(dpid, None) - if ovs_switch: - ovs_switch.close() + self.dps.pop(dpid, None) @handler.set_ev_cls(dpset.EventPortAdd) def port_add_handler(self, ev): |