From 8c90cd921d206faff6642c42d673faaf9c8d8a9b Mon Sep 17 00:00:00 2001 From: Saurabh Chordiya Date: Wed, 16 Dec 2015 18:11:52 +0530 Subject: [PATCH] nsxv3 multi manager:fix backend cleaup if multiple manager ips set in localrc, then during unstack backend cleanup fails with error:- requests.exceptions.ConnectionError: HTTPSConnectionPool(host='10.112.202.39,10.112.202.7', port=443) so this patch fix that issue. Closes-bug: #1527091 Change-Id: I20ef8c6d08b0d1d85729018dcf65c54dad37db6e --- devstack/plugin.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 6372b79870..6a0d1781e5 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -40,6 +40,10 @@ elif [[ $Q_PLUGIN == 'vmware_nsx' ]]; then elif [[ $Q_PLUGIN == 'vmware_nsx_v3' ]]; then source $dir/lib/vmware_nsx_v3 if [[ "$1" == "unstack" ]]; then + NSX_MANAGER=${NSX_MANAGERS:-$NSX_MANAGER} + IFS=',' + NSX_MANAGER=($NSX_MANAGER) + unset IFS python $dir/tools/nsxt_cleanup.py --mgr-ip $NSX_MANAGER --user $NSX_USER --password $NSX_PASSWORD fi elif [[ $Q_PLUGIN == 'vmware_dvs' ]]; then