From 44fb8390ed0da0cd637559a7cab428f53b513a9d Mon Sep 17 00:00:00 2001 From: Saurabh Chordiya Date: Thu, 1 Sep 2016 16:55:52 +0530 Subject: [PATCH] NSXV3-devstack: added parameter -1 to curl command curl command without -1 doesn't work on RHEL in case of https so need to use -1 to force it to use TLS version 1. Also verified that it works on Ubuntu w/wo -1 Change-Id: I855e41c3348233a395ad94ac46a8d1eaef6dd7ff --- 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 055d77bc5c..57ad821747 100644 --- a/devstack/lib/vmware_nsx_v3 +++ b/devstack/lib/vmware_nsx_v3 @@ -51,7 +51,7 @@ function _ovsdb_connection { die_if_not_set $LINENO NSX_PASSWORD "NSX_PASSWORD has not been set!" managers=(${NSX_MANAGER//,/ }) NSX_MGR_IP=${managers[0]} - NSX_VER=$(curl -s -k -u "$NSX_USER:$NSX_PASSWORD" -H 'Accept: application/json' https://$NSX_MGR_IP/api/v1/node | python -c 'import sys, json; print json.load(sys.stdin)["node_version"][:5]') + NSX_VER=$(curl -1 -s -k -u "$NSX_USER:$NSX_PASSWORD" -H 'Accept: application/json' https://$NSX_MGR_IP/api/v1/node | python -c 'import sys, json; print json.load(sys.stdin)["node_version"][:5]') if [ $(_version $NSX_VER) -ge $(_version 1.1.0) ]; then echo "unix:/var/run/vmware/nsx-agent/nsxagent_ovsdb.sock" else