]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
vshield task manager: abort tasks in stop() on termination
authorSalvatore Orlando <salv.orlando@gmail.com>
Thu, 20 Feb 2014 14:30:11 +0000 (06:30 -0800)
committerSalvatore Orlando <salv.orlando@gmail.com>
Thu, 20 Feb 2014 15:02:35 +0000 (07:02 -0800)
commit433287b4f51e45fbb7a73f68dd63b433ea5d9066
tree3b0edd83e0696f69a6827e825f11852fcac3dfa7
parentfa9098529f48ef635d796f3a88d7175d490ae8f6
vshield task manager: abort tasks in stop() on termination

This patch kills the manager thread, and aborts active tasks
rather than sending an exception to the manager thread and
have it do the abort on termination.

Unit tests involving vshield task manager might take longer
as a side effect of this patch.

Related-bug: #1282452

Change-Id: I9e9e41ce7e8969a2ea51bfce96b1303125a24308
neutron/plugins/nicira/vshield/tasks/tasks.py
neutron/tests/unit/nicira/test_edge_router.py
neutron/tests/unit/nicira/test_vcns_driver.py