diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-02-28 10:44:28 +0800 |
---|---|---|
committer | Aric Gardner <agardner@linuxfoundation.org> | 2017-02-28 20:52:41 +0000 |
commit | 683ca6fb7a8a3329ac0d052b189cf2d73ddd5cc6 (patch) | |
tree | ece9c13231c576fa8363fc216a85260b6d6ee43f /utils | |
parent | caaf8df0f2a40ea38477ab06f0c39f0b0a9530f4 (diff) |
add openrc fetching for daisy installer
JIRA: FUNCTEST-743
Change-Id: Ic9153575bd43bbc67042cd69a996ad18175427a7
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/fetch_os_creds.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/fetch_os_creds.sh b/utils/fetch_os_creds.sh index f00e022f9..c99afaca8 100755 --- a/utils/fetch_os_creds.sh +++ b/utils/fetch_os_creds.sh @@ -201,6 +201,17 @@ elif [ "$installer_type" == "foreman" ]; then 'source keystonerc_admin;keystone endpoint-list'" \ | grep $admin_ip | sed 's/ /\n/g' | grep ^http | head -1) &> /dev/null +elif [ "$installer_type" == "daisy" ]; then + verify_connectivity $installer_ip + cluster=$(sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \ + "source ~/daisyrc_admin; daisy cluster-list"|grep active|head -1|awk -F "|" '{print $3}') &> /dev/null + if [ -z $cluster ]; then + echo "No active cluster detected in daisy" + exit 1 + fi + + sshpass -p r00tme scp 2>/dev/null $ssh_options root@${installer_ip}:/etc/kolla/admin-openrc.sh $dest_path &> /dev/null + else error "Installer $installer is not supported by this script" fi |