diff options
author | Markos Chandras <mchandras@suse.de> | 2017-05-08 11:55:31 +0100 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2017-05-08 11:55:31 +0100 |
commit | 307cbefce1e0774b2de5aa21b01e75d34433df17 (patch) | |
tree | 6184db65764059836a5a06e9278c8b8db4b0ade7 /jjb/xci | |
parent | 69f8d1167c7f3c9b10fa919c196ecff5239a8a93 (diff) |
jjb: xci: Run bifrost provisioning as normal user
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
Diffstat (limited to 'jjb/xci')
-rwxr-xr-x | jjb/xci/bifrost-provision.sh | 4 | ||||
-rwxr-xr-x | jjb/xci/bifrost-verify.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/jjb/xci/bifrost-provision.sh b/jjb/xci/bifrost-provision.sh index 4724c2ee5..b37da9059 100755 --- a/jjb/xci/bifrost-provision.sh +++ b/jjb/xci/bifrost-provision.sh @@ -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 diff --git a/jjb/xci/bifrost-verify.sh b/jjb/xci/bifrost-verify.sh index 29af7ca3b..18019a7cb 100755 --- a/jjb/xci/bifrost-verify.sh +++ b/jjb/xci/bifrost-verify.sh @@ -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 |