From e87f7d5be378ee277a46e46a758f1d510f62f268 Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Wed, 13 Feb 2013 08:26:51 +0900 Subject: [PATCH] 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 Signed-off-by: Isaku Yamahata Signed-off-by: FUJITA Tomonori --- ryu/app/quantum_adapter.py | 4 +--- 1 file changed, 1 insertion(+), 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):