Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Bug fix: generate fuel reporting page when no aarch64 available"
[releng.git]
/
jjb
/
xci
/
bifrost-provision.sh
diff --git
a/jjb/xci/bifrost-provision.sh
b/jjb/xci/bifrost-provision.sh
index
d8e17c4
..
4d646a6
100755
(executable)
--- a/
jjb/xci/bifrost-provision.sh
+++ b/
jjb/xci/bifrost-provision.sh
@@
-38,7
+38,7
@@
if [[ ! "$DISTRO" =~ (xenial|centos7|suse) ]]; then
fi
# remove previously cloned repos
fi
# remove previously cloned repos
-sudo /bin/rm -rf /opt/bifrost /opt/openstack-ansible /opt/releng /opt/functest
+sudo /bin/rm -rf /opt/bifrost /opt/openstack-ansible /opt/releng
-xci
/opt/functest
# Fix up permissions
fix_ownership
# Fix up permissions
fix_ownership
@@
-65,28
+65,30
@@
cd /opt/bifrost && sudo git checkout --quiet $OPENSTACK_BIFROST_VERSION
echo "xci: using bifrost commit"
git show --oneline -s --pretty=format:'%h - %s (%cr) <%an>'
echo "xci: using bifrost commit"
git show --oneline -s --pretty=format:'%h - %s (%cr) <%an>'
-sudo git clone --quiet https://gerrit.opnfv.org/gerrit/releng
/opt/releng
-cd /opt/releng && sudo git checkout --quiet $OPNFV_RELENG_VERSION
+sudo git clone --quiet https://gerrit.opnfv.org/gerrit/releng
-xci /opt/releng-xci
+cd /opt/releng
-xci
&& sudo git checkout --quiet $OPNFV_RELENG_VERSION
echo "xci: using releng commit"
git show --oneline -s --pretty=format:'%h - %s (%cr) <%an>'
echo "xci: using releng commit"
git show --oneline -s --pretty=format:'%h - %s (%cr) <%an>'
+# source flavor vars
+source "$WORKSPACE/xci/config/${XCI_FLAVOR}-vars"
+
# combine opnfv and upstream scripts/playbooks
# combine opnfv and upstream scripts/playbooks
-sudo /bin/cp -rf /opt/releng
/prototypes
/bifrost/* /opt/bifrost/
+sudo /bin/cp -rf /opt/releng
-xci
/bifrost/* /opt/bifrost/
# cleanup remnants of previous deployment
cd /opt/bifrost
sudo -E ./scripts/destroy-env.sh
# cleanup remnants of previous deployment
cd /opt/bifrost
sudo -E ./scripts/destroy-env.sh
-# provision
6 VMs; xcimaster, controller00, controller01, controller02, compute00, and compute01
+# provision
VMs for the flavor
cd /opt/bifrost
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
# 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
echo "OpenStack nodes are provisioned!"
# here we have to do something in order to capture what was the working sha1