]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Check NVP router's status before deploying a service
authorberlin <linb@vmware.com>
Mon, 31 Mar 2014 06:46:56 +0000 (14:46 +0800)
committerberlin <linb@vmware.com>
Mon, 9 Jun 2014 02:59:27 +0000 (10:59 +0800)
commit25103df197c1f366eac8dd3069fabc01d3bd18e9
tree28788723fe9c04fd0d44a0ec1ed68aa4e8981115
parent7b15b03fcb8f934aa80124e27f2bac10935ac02e
Check NVP router's status before deploying a service

With NVP advanced service plugin, router creation is asynchronous while
all service call is synchronous, so it is possible that advanced service
request is called before edge deployment completed.
The solution is to check the router status before deploying an advanced service.
If the router is not in ACTIVE status, the service deployment request would return
"Router not in 'ACTIVE' status" error.

Change-Id: Idde71c37f5d5c113ac04376ed607e0c156b07477
Closes-Bug: #1298865
neutron/plugins/vmware/common/exceptions.py
neutron/plugins/vmware/plugins/service.py
neutron/tests/unit/vmware/vshield/test_edge_router.py
neutron/tests/unit/vmware/vshield/test_fwaas_plugin.py
neutron/tests/unit/vmware/vshield/test_lbaas_plugin.py
neutron/tests/unit/vmware/vshield/test_vpnaas_plugin.py