openstack-virtual-baremetal/bin/ovb-instack
Ben Nemec 95ad839b62 Add deploy.py CLI interface
This is intended to replace the informal bin/deploy-* scripts that
were previously used for basically the same purpose.  It combines
both scripts into one, and adds a few useful features like the
ability to define an id for the stack and have that id appended to
all resources.  Unit tests for most of the code are also added.

This change also updates the load-test-job script to use the new
CLI and renames it to be more general since it is also useful for
basic automated OVB testing.
2016-04-18 13:11:52 -05:00

37 lines
995 B
Bash
Executable File

#!/bin/bash
set -ex
# These params need to be configured for the environment
export http_proxy=http://roxy:3128
curl -O http://openstack/CentOS-7-x86_64-GenericCloud-1602.qcow2
export DIB_LOCAL_IMAGE=CentOS-7-x86_64-GenericCloud-1602.qcow2
export DIB_DISTRIBUTION_MIRROR=http://mirror.centos.org/centos
export no_proxy=9.1.1.1,192.0.2.1,9.1.1.2,192.0.2.2
sudo yum install -y git
rm -rf git-tripleo-ci
git clone https://git.openstack.org/openstack-infra/tripleo-ci git-tripleo-ci
echo '#!/bin/bash' > tripleo.sh
echo 'git-tripleo-ci/scripts/tripleo.sh $@' >> tripleo.sh
chmod +x tripleo.sh
export OVERCLOUD_PINGTEST_OLD_HEATCLIENT=0
export TRIPLEOSH=/home/centos/tripleo.sh
$TRIPLEOSH --repo-setup
cat << EOF > undercloud.conf
[DEFAULT]
undercloud_hostname=undercloud.localdomain
EOF
$TRIPLEOSH --undercloud
$TRIPLEOSH --overcloud-images
$TRIPLEOSH --register-nodes
sleep 60
export OVERCLOUD_DEPLOY_ARGS="--libvirt-type qemu"
$TRIPLEOSH --overcloud-deploy
$TRIPLEOSH --overcloud-pingtest