From 52fc24a18208a45dfb2fb6fa638e76092d8e785a Mon Sep 17 00:00:00 2001 From: Shih-Hao Li Date: Tue, 1 May 2018 22:54:41 -0700 Subject: [PATCH] NSXv3: Update devstack metadata settings for uwsgi In Queens release, metadata processing is handled by uwsgi in n-api-meta. The patch updates devstack settings for native metadata proxy when using https between NSX edges and Nova. Change-Id: I34fd53bff621ee80f45adb64cf14ccfe2f9a2889 --- devstack/lib/vmware_nsx_v3 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devstack/lib/vmware_nsx_v3 b/devstack/lib/vmware_nsx_v3 index a2d7cd813d..2abc06cef3 100644 --- a/devstack/lib/vmware_nsx_v3 +++ b/devstack/lib/vmware_nsx_v3 @@ -107,6 +107,14 @@ function neutron_plugin_create_nova_conf { fi fi fi + # if n-api-meta is enabled, then setup https on n-api-meta + if is_service_enabled n-api-meta; then + if [[ "$NATIVE_DHCP_METADATA" == "True" && "$METADATA_PROXY_USE_HTTPS" == "True" ]]; then + inidelete $NOVA_METADATA_UWSGI_CONF uwsgi http + https=":8775,$METADATA_PROXY_CERT_FILE,$METADATA_PROXY_PRIV_KEY_FILE" + iniset $NOVA_METADATA_UWSGI_CONF uwsgi https $https + fi + fi } function neutron_plugin_install_agent_packages {