summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-01-10 21:26:23 -0500
committerTim Rozet <trozet@redhat.com>2016-01-10 21:26:23 -0500
commit55d2f073a5f4efe1c51e2c20fb1c8f05ba81e200 (patch)
tree9bb5d53f6093c8e8f5755f49640ed4c182f2b9e9
parent1621296d7337d198f5f8d2d0790208f511bceed8 (diff)
Adds sudo to virsh command for functest with apex
Change-Id: Iec731b40b78609a5a5ce5b926e27eb4206426a4f Signed-off-by: Tim Rozet <trozet@redhat.com>
-rw-r--r--jjb/functest/functest-ci-jobs.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/jjb/functest/functest-ci-jobs.yml b/jjb/functest/functest-ci-jobs.yml
index c556404f3..bd7affef3 100644
--- a/jjb/functest/functest-ci-jobs.yml
+++ b/jjb/functest/functest-ci-jobs.yml
@@ -186,7 +186,7 @@
# labconfig is used only for joid
labconfig=""
if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
- instack_mac=$(virsh domiflist instack | grep default | \
+ instack_mac=$(sudo virsh domiflist instack | grep default | \
grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"