From ce4012a6d255281dc889581c0af7d2c2a5da06da Mon Sep 17 00:00:00 2001 From: Roman Prykhodchenko Date: Fri, 25 Oct 2013 19:26:13 +0300 Subject: [PATCH] Support Ironic in devstack gate Now Devstack can deploy Ironic baremetal provisioning service, so it's possible to test it using gate tests. This patch enables Ironic in devstack gates if the DEVSTACK_GATE_IRONIC variable is set to 1. Change-Id: I56ea3a3e2576f5488a43ca4ece35a5a250cef04c --- devstack-vm-gate-wrap.sh | 5 +++++ devstack-vm-gate.sh | 3 +++ 2 files changed, 8 insertions(+) diff --git a/devstack-vm-gate-wrap.sh b/devstack-vm-gate-wrap.sh index 769983eb..acd1d83a 100755 --- a/devstack-vm-gate-wrap.sh +++ b/devstack-vm-gate-wrap.sh @@ -393,6 +393,7 @@ PROJECTS="openstack/cinder $PROJECTS" PROJECTS="openstack/glance $PROJECTS" PROJECTS="openstack/heat $PROJECTS" PROJECTS="openstack/horizon $PROJECTS" +PROJECTS="openstack/ironic $PROJECTS" PROJECTS="openstack/keystone $PROJECTS" PROJECTS="openstack/neutron $PROJECTS" PROJECTS="openstack/nova $PROJECTS" @@ -402,6 +403,7 @@ PROJECTS="openstack/python-ceilometerclient $PROJECTS" PROJECTS="openstack/python-cinderclient $PROJECTS" PROJECTS="openstack/python-glanceclient $PROJECTS" PROJECTS="openstack/python-heatclient $PROJECTS" +PROJECTS="openstack/python-ironicclient $PROJECTS" PROJECTS="openstack/python-keystoneclient $PROJECTS" PROJECTS="openstack/python-neutronclient $PROJECTS" PROJECTS="openstack/python-novaclient $PROJECTS" @@ -484,6 +486,9 @@ export DEVSTACK_GATE_NEUTRON=${DEVSTACK_GATE_NEUTRON:-0} # Set to 1 to run nova in cells mode instead of the default mode export DEVSTACK_GATE_CELLS=${DEVSTACK_GATE_CELLS:-0} +# Set to 1 to run ironic baremetal provisioning service. +export DEVSTACK_GATE_IRONIC=${DEVSTACK_GATE_IRONIC:-0} + # The following variables are set for different directions of Grenade updating # for a stable branch we want to both try to upgrade forward n => n+1 as # well as upgrade from last n-1 => n. diff --git a/devstack-vm-gate.sh b/devstack-vm-gate.sh index 37495e79..5d6bac35 100755 --- a/devstack-vm-gate.sh +++ b/devstack-vm-gate.sh @@ -70,6 +70,9 @@ function setup_localrc() { if [ "$DEVSTACK_GATE_CELLS" -eq "1" ]; then MY_ENABLED_SERVICES=$MY_ENABLED_SERVICES,n-cell fi + if [ "$DEVSTACK_GATE_IRONIC" -eq "1" ]; then + MY_ENABLED_SERVICES=$MY_ENABLED_SERVICES,ir-api,ir-cond + fi # When uncommented this will download and register the most recent successfully built # ubuntu-vm-heat-cfntools image from jenkins.tripleo.org # echo "IMAGE_URLS+=,\"http://jenkins.tripleo.org:8080/job/autobuilt-images/elements=ubuntu%20vm%20heat-cfntools/lastSuccessfulBuild/artifact/ubuntu-vm-heat-cfntools.qcow2\"" >>localrc