RETIRED, CI for the TripleO project
Go to file
Dan Prince fa9a24e323 Updates to work with latest setup-baremetal cmds.
TOCI updates to work with the latest triple-incubator
scripts.

Recently we changed setup-baremetal and register-nodes in
the incubator so that the way it handles MACS works differently.
Specifically we now only pass the MAC addresses we want
register-nodes to actually use (previously that script contained
some rather janky logic to decide which MACs to use on its own).
This makes good sense for the devtest story and makes testing
w/ VMs more sensible.

When using TOCI w/ real bare metal (using a predined set of MAC
addresses and power management commands) we make the following
assumptions:

 1) when setting up the seed VM we assign the first MAC in the list

 2) when setting up the undercloud we skip the first MAC and assign
   all the others.

** This should work well and allow us to bring up a single undercloud
node and possibly a multi-node overcloud as well.

This patch also includes updates to pass in parameters to
setup-baremetal instead of relying on environment variables for
everything.

Lastly, this change also gets rid of some TOCI logic to handle
using real bare metal nodes (using power management commands etc).
Now that we have support in incubator/register-nodes for power
management we can just use that instead.

Change-Id: I112c4a18c8e9d6e8ad5f152305ff018e79e97ecc
2013-09-27 13:48:08 -04:00
patches Remove virsh prealloc patch 2013-09-12 09:20:39 +01:00
patches_dev Update patch of diskimage-builder 2013-09-02 12:27:23 +01:00
.gitignore Ignore editor backup files. 2013-09-17 08:39:52 +12:00
.gitreview Add .gitreview file 2013-07-22 15:03:30 +01:00
FAQ.md Updates passing of HW params to scripts 2013-09-09 14:54:47 +02:00
README.md HTTPS proxy's arn't currently working 2013-07-25 19:57:53 +01:00
toci-defaults Add the (now missing) DHCP_DRIVER. 2013-09-25 09:19:21 -04:00
toci.sh Source $HOME/.toci before sourcing toci-defaults 2013-09-16 11:33:29 -07:00
toci_cleanup.sh Sync toci with current devtest 2013-07-23 15:50:57 +01:00
toci_functions.sh Use ovs-vsctl instead of brctl for debug output. 2013-09-26 07:11:27 -04:00
toci_git.sh Don't restrict the source-repositories type 2013-09-04 11:05:07 +01:00
toci_setup.sh Add the (now missing) DHCP_DRIVER. 2013-09-25 09:19:21 -04:00
toci_test.sh Updates to work with latest setup-baremetal cmds. 2013-09-27 13:48:08 -04:00
updated_launch.sh Adding run log with simple timeings 2013-05-17 14:40:50 +01:00

README.md

toci

Description

TripleO CI test framework.

By default it uses bm_poseur nodes. Options exist to deploy on real hardware as well.

Configuration

edit ~/.toci and add values for

TOCI_UPLOAD=0
TOCI_RESULTS_SERVER=1.2.3.4
TOCI_CLEANUP=1
TOCI_REMOVE=1
TOCI_GIT_CHECKOUT=1
export http_proxy=http://1.2.3.4:3128

# set the arch (defaults to i386)
TOCI_ARCH="x86_64"


# The following options can be used w/ real hardware
# Space delimited, aligned in order
#export TOCI_MACS="12:34:56:78:9A:E1 12:34:56:78:9A:E2"
#export TOCI_PM_DRIVER="nova.virt.baremetal.ipmi.IPMI"
#export TOCI_PM_IPS="10.0.0.1 10.0.0.2"
#export TOCI_PM_USERS="user1 user2"
#export TOCI_PM_PASSWORDS="user1 user2"

Then run updated_launch.sh (this does a git update) or you can use toci.sh directly to start the setup and tests.

Using Toci to setup a dev environment

I usually do this as root, in theory it will also work as a non privilaged user.

$ git clone https://github.com/openstack-infra/tripleo-ci.git
$ cd toci
$ vi ~/.toci # Will work without a proxy but a lot slower
export http_proxy=http://192.168.1.104:8080

To run toci here is your command

$ ./toci.sh

Toci will start with a line outputing the working and log directories e.g. Starting run Wed 3 Jul 11:46:39 IST 2013 ( /opt/toci /tmp/toci_logs_nGnrhLN )

Once it ran successfully (ERROR wasn't echo'd to the terminal) you should have

  1. seed vm
  2. undercloud vm
  3. overcloud controller vm
  4. overcloud compute vm