This is an old revision of the document!
The jumphost must be a flavor of Ubuntu The following things must be set on the jumphost before starting any deploy:
libvirt-bin
git
iptables-persistent
bridge-utils
vlan
brAdm
brData
brStorage
The pod admin must also set a few parameters
cat << EOF > ~/joid_local_config export POD_DC=orange export POD_NUM=pod2 export POD_NAME=\$POD_DC\$POD_NUM export MAAS_USER=ubuntu export MAAS_PASSWORD=ubuntu export OS_ADMIN_PASSWORD=openstack EOF
cd ~/ git clone http://gerrit.opnfv.org/gerrit/joid.git
Cleanup can be on Juju only or also on the jumphost (destroying MAAS and Bootstrap VM) So we can split that step in 2 templates:
cd ~/joid/ci ./clean.sh
To enhance for 'juju not deployed' case
virsh...
To be completed
No build needed
Installation can be automatically done following those steps:
All those steps can be done in one jenkins template
load local pod parameters and jenkins parameters
source ~/joid_local_config export JOID_MODE=<ha|nonha|tip> export JOID_RELEASE=<kilo|liberty> export JOID_SDN_CONTROLLER=<odl|opencontrail>
cd ~/ source joid_local_config rm -rf joid git clone http://gerrit.opnfv.org/gerrit/joid.git cd ~/joid/ci
MAASCONFIG=~/joid/ci/maas/$POD_DC/$POD_NUM/deployment.yaml sed -i -- 's/user: ubuntu/user: $MAAS_USER/' $MAASCONFIG sed -i -- 's/password: ubuntu/user: $MAAS_PASSWORD/' $MAASCONFIG ./02-maasdeploy.sh $POD_NAME
if [ "$JOID_MODE" == 'nonha' ] then SRCBUNDLE=~/joid/ci/$JOID_SDN_CONTROLLER/juju-deployer/ovs-$JOID_SDN_CONTROLLER.yaml else SRCBUNDLE=~/joid/ci/$JOID_SDN_CONTROLLER/juju-deployer/ovs-$JOID_SDN_CONTROLLER-$JOID_MODE.yaml fi echo $SRCBUNDLE sed -i -- 's/"admin-password": openstack/"admin-password": $OS_ADMIN_PASSWORD/' $SRCBUNDLE ./deploy.sh -t $JOID_MODE -o $JOID_RELEASE -s $JOID_SDN_CONTROLLER -l $POD_NAME
cat << EOF > ~/admin-openrc export OS_USERNAME=admin export OS_PASSWORD=$OS_ADMIN_PASSWORD export OS_TENANT_NAME=admin export OS_AUTH_URL=http://192.168.2.23:5000/v2.0 export OS_REGION_NAME=Canonical EOF