From 2c44d24c96b30f30b9781a213835907e8c8c0959 Mon Sep 17 00:00:00 2001 From: Tong Liu Date: Wed, 17 May 2017 17:09:28 +0000 Subject: [PATCH] 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 --- devstack/lib/vmware_nsx_v3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstack/lib/vmware_nsx_v3 b/devstack/lib/vmware_nsx_v3 index b7aadb0efc..42f94aad52 100644 --- a/devstack/lib/vmware_nsx_v3 +++ b/devstack/lib/vmware_nsx_v3 @@ -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