]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NEC plugin: Fix nec-agent unexpected exit due to RPC exception
authorAkihiro MOTOKI <motoki@da.jp.nec.com>
Fri, 4 Oct 2013 06:53:03 +0000 (15:53 +0900)
committerGerrit Code Review <review@openstack.org>
Sat, 5 Oct 2013 06:54:44 +0000 (06:54 +0000)
commit3df505e448d38929c20721b22d81e47bf917af6a
tree86cd489aa254bc0f67473db650e5e049dc7933f2
parent45f3dccef13e558fe31546d0d3f1b9de48ac7794
NEC plugin: Fix nec-agent unexpected exit due to RPC exception

Changes nec-agent to catch RPC exceptions in the main
daemon loop. It fixes the following two bugs.

- nec-agent dies with RPC timeout in secgroup RPC
  (Closes-Bug: #1235106)

- port_added message can be dropped when RPC timeout occurs
  (Closes-Bug: #1235111). Moves exception catch from PluginApi
  to the main daemon loop.

Change-Id: I12394b739fc35bff271543f4625c5e3152e534ae
neutron/plugins/nec/agent/nec_neutron_agent.py
neutron/tests/unit/nec/test_nec_agent.py