NSXv3: Fix devstack issue on compute node

On compute node, there is no uuids for dhcp and metadata profiles.
But when stacking on a compute node, it requires these as default
NATIVE_DHCP_METADATA is true.

Add a change that only require dhcp and metadata profiles when
neutron-server service has been enabled.

Change-Id: I90180808e72572f0cef08311298544b8449931d3
This commit is contained in:
Tong Liu 2017-05-17 17:09:28 +00:00
parent a68d379eee
commit 2c44d24c96
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ function neutron_plugin_check_adv_test_requirements {
function init_vmware_nsx_v3 {
if [[ "$NATIVE_DHCP_METADATA" == "True" ]]; then
if (is_service_enabled q-svc || is_service_enabled neutron-api) && [[ "$NATIVE_DHCP_METADATA" == "True" ]]; then
if ! is_set DHCP_PROFILE_UUID; then
die $LINENO "DHCP profile needs to be configured!"
fi