Adds sudo to virsh command for functest with apex 67/6067/1
authorTim Rozet <trozet@redhat.com>
Mon, 11 Jan 2016 02:26:23 +0000 (21:26 -0500)
committerTim Rozet <trozet@redhat.com>
Mon, 11 Jan 2016 02:26:23 +0000 (21:26 -0500)
Change-Id: Iec731b40b78609a5a5ce5b926e27eb4206426a4f
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/functest/functest-ci-jobs.yml

index c556404..bd7affe 100644 (file)
             # 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"