]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add error log for SystemExit in dhcp-agent
authorHui HX Xiang <xianghui@cn.ibm.com>
Sat, 12 Oct 2013 04:45:45 +0000 (21:45 -0700)
committerHui HX Xiang <xianghui@cn.ibm.com>
Tue, 15 Oct 2013 09:33:44 +0000 (02:33 -0700)
commit7ef087eb66f1c1ec8e3359aedc11f22d385dcd7b
tree018fae5cb0c06ff3233a18190ab5ca8f1833d9cf
parent6d6b20e8018dbd6cfb439b09c1adca09ea945226
Add error log for SystemExit in dhcp-agent

The SystemExit exception should be logged in dhcp-agent, the
operator may miss the useful exception messages to debug.

* Add error log for SystemExit in dhcp-agent.
* Add addCleanup(mock.patch.stopall) in setup()
* Remove teardown()
* Add unit test for None and nonexistent interface_driver.

Closes-Bug #1239030

Change-Id: I01bef69adecaaf8d8a919034d33c60a43e4469a7
neutron/agent/linux/dhcp.py
neutron/tests/unit/test_dhcp_agent.py