-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related-Bug: #1463208 - Changing Cliff code to match version 1.5.4
The debian package of cliff available in trusty repos is 1.5.4 The code was previously written for cliff version 1.10 This commit rolls back and rewrites smgr cli app code to reflect that Some changes made to config files to match packaging script changes Patch 2: Removed pip from setup script Modified POST call to allow match keys for run_inventory Change-Id: Ie8af3bd7b428a340274619e85cb2d9fac35276c7
- Loading branch information
nitishkrishna
committed
Sep 23, 2015
1 parent
052ee66
commit ea0ac96
Showing
9 changed files
with
63 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
pbr>=0.11 | ||
cliff>=1.10.0 | ||
pbr>=0.7.0 | ||
cliff>=1.4.5 | ||
configparser>=3.3 | ||
pyparsing>=2 | ||
#argcomplete>=0.8.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export SMGR_IP=10.84.30.2 | ||
export SMGR_IP=1.1.1.1 | ||
export SMGR_PORT=9001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
HOST_IP_LIST=`ifconfig | sed -n -e 's/:127\.0\.0\.1 //g' -e 's/ *inet addr:\([0-9.]\+\).*/\1/gp'` | ||
HOST_IP=`echo $HOST_IP_LIST | cut -d' ' -f1` | ||
if [ -f /opt/contrail/contrail_server_manager/IP.txt ]; | ||
then | ||
HOST_IP=$(cat /opt/contrail/contrail_server_manager/IP.txt) | ||
fi | ||
echo $HOST_IP | ||
mkdir -p /etc/contrail/ | ||
cp /tmp/servermanagerclient /etc/contrail/ | ||
cp /tmp/servermanagerclient /etc/contrail/servermanagerclient | ||
sed -i "s/listen_ip_addr = .*/listen_ip_addr = $HOST_IP/g" /tmp/sm-client-config.ini | ||
sed -i "s/export SMGR_IP=.*/export SMGR_IP=$HOST_IP/g" /etc/contrail/servermanagerclient | ||
source /etc/contrail/servermanagerclient | ||
ln -sbf /opt/contrail/bin/* /usr/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters