User Tools

Site Tools


joid:ci_integration

This is an old revision of the document!


Propositions for Joid integration in CI

Prerequisites

Jenkins install

Jump host preparation

The jumphost must be a flavor of Ubuntu The following things must be set on the jumphost before starting any deploy:

  • applications must be installed
    • git
    • bridge-utils
    • vlan
  • The network must also be set to host 3 bridges (TO BE DISCUSSED)
    • brAdm
    • brData
    • brStorage

All those pre-requisits can be managed bu Master MAAS.

Now you can launch jenkins

Jenkins parameters

Jenkins fixes those parameters:

Projects default

SDN_CONTROLLER=nosdn
HA_MODE=ha
OS_RELEASE=liberty
OPNFV_FEATURE=none

Pod defaults

None today, but CEPH options may be set here.

Cleanup steps

The cleanup is done at each deploy in the script

HOW TO

Add my pod deployed by jenkins

  1. Edit Releng jjb/joid/joid.yml to add your node to pod list in the project section
  2. Add your pod description in jjb/opnfv/pod-params.yml
  3. Setup (or not) your local config file, as described in "Set specific pod parameters". If no. check your NODE_NAME is formated like this: <POD_DATA_CENTER>-<POD_NAME> as set in joid/ci/maas subfolders
  4. Ask jenkins to deploy :)

Set specific pod parameters

The pod admin can set a few parameters

sudo -s jenkins
mkdir ~/joid_config
cat << EOF > ~/joid_config/config.sh

### Set Pod name
export POD_DC=orange
export POD_NUM=pod2
# This must be the same name as the one configured in joid deployment files
export POD_NAME=\$POD_DC\$POD_NUM

### Reinstall MAAS at each jenkins deploy
export MAAS_REINSTALL=true

### Set passwords
export MAAS_USER=ubuntu
export MAAS_PASSWORD=ubuntu
export OS_ADMIN_PASSWORD=openstack

### Set CEPH parameters
# disks to use by ceph (comma separated list)
export CEPH_DISKS=/dev/sdb,/dev/sdc
# format or not disk before using ceph (must be done the first time)
export CEPH_REFORMAT=false

EOF

Deploy or not MAAS at each time

Testing MAAS deploy is not the core of CI tests, so to gain time, MAAS reinstall can be disabled by setting local parameter MAAS_REINSTALL=false. Juju will be cleaned and all nodes managed will return in ready mode.

joid/ci_integration.1450456531.txt.gz · Last modified: 2015/12/18 16:35 by David Blaisonneau