diff options
author | Ryota Mibu <r-mibu@cq.jp.nec.com> | 2016-12-14 02:51:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-14 02:51:31 +0000 |
commit | 40cba233d16e355b078e368772ad4aadbb5f91b1 (patch) | |
tree | 79b448f6b4b00553302aec928fd772835858e12c /tests/lib/installers/apex | |
parent | 6d0620d15a3391d4a0a9f2bec9de143ef68734d2 (diff) | |
parent | 83076cf49ebd8ded4d5d5e9667fcd8e9e9be4172 (diff) |
Merge "Refactor installers support code"
Diffstat (limited to 'tests/lib/installers/apex')
-rw-r--r-- | tests/lib/installers/apex | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/lib/installers/apex b/tests/lib/installers/apex new file mode 100644 index 00000000..54b3dce2 --- /dev/null +++ b/tests/lib/installers/apex @@ -0,0 +1,24 @@ +#!/bin/bash + +function get_installer_ip { + local instack_mac=$(sudo virsh domiflist instack | awk '/default/{print $5}') + INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk '{print $1}') + die_if_not_set $LINENO $INSTALLER_IP "No installer IP" +} + +function installer_get_ssh_keys { + sudo scp $ssh_opts root@"$INSTALLER_IP":/home/stack/.ssh/id_rsa instack_key + sudo chown $(whoami):$(whoami) instack_key + chmod 400 instack_key + ssh_opts_cpu+=" -i instack_key" +} + +function installer_apply_patches { + # Noop + return +} + +function cleanup_installer_apex { + # Noop + return +} |