diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-03-01 07:35:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-01 07:35:20 +0000 |
commit | d0c327484b58ffbbf9775b8aad6a25999246d3d6 (patch) | |
tree | 08ebf972ba34a41d9636914f51215b244af1a8fd | |
parent | fca2c3e73586f3977284cadda0b4cb568d6cc60a (diff) | |
parent | 683ca6fb7a8a3329ac0d052b189cf2d73ddd5cc6 (diff) |
Merge "add openrc fetching for daisy installer"
-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 |