jjb: xci: Run bifrost provisioning as normal user 31/34431/1
authorMarkos Chandras <mchandras@suse.de>
Mon, 8 May 2017 10:55:31 +0000 (11:55 +0100)
committerMarkos Chandras <mchandras@suse.de>
Mon, 8 May 2017 10:55:31 +0000 (11:55 +0100)
Ansible can request elevated privileges using the 'become' directive.
As such there is no need to run ansible using sudo. Furthermore,
OpenStack CI runs all jobs as normal user and we need to do the same
in order to compare behavior and results properly.

Change-Id: Id198efd1d6fdf4619de931fbedc7caba8d68d2a0

jjb/xci/bifrost-provision.sh
jjb/xci/bifrost-verify.sh

index 4724c2e..b37da90 100755 (executable)
@@ -82,13 +82,13 @@ sudo -E ./scripts/destroy-env.sh
 
 # provision VMs for the flavor
 cd /opt/bifrost
-sudo -E ./scripts/bifrost-provision.sh
+./scripts/bifrost-provision.sh
 
 # list the provisioned VMs
 cd /opt/bifrost
 source env-vars
 ironic node-list
-virsh list
+sudo -H -E virsh list
 
 echo "OpenStack nodes are provisioned!"
 # here we have to do something in order to capture what was the working sha1
index 29af7ca..18019a7 100755 (executable)
@@ -117,10 +117,10 @@ sudo -H -E ./scripts/destroy-env.sh
 
 # provision 3 VMs; xcimaster, controller, and compute
 cd /opt/bifrost
-sudo -H -E ./scripts/bifrost-provision.sh
+./scripts/bifrost-provision.sh
 
 # list the provisioned VMs
 cd /opt/bifrost
 source env-vars
 ironic node-list
-virsh list
+sudo -H -E virsh list