project-config/jenkins/jobs/nova.yaml
Matt Riedemann a6250b66c4 Run with cells v2 in placement and neutron grenade jobs
cell0 is optional in newton but we support it, and in order
to do that we need some test coverage. We want to test both
ways, with and without cell0 (cellsv2), and by default devstack
and grenade run without it.

This change updates two jobs that run in the nova check queue
that will give coverage to running with cells v2 and the cell0
database.

Nova currently has 3 grenade jobs in it's check queue, but only
one of those runs with neutron, and since cellsv2 is the future
and nova-network is deprecated, we add cells v2 to the single-node
neutron grenade job that runs in nova's check queue.

As for the non-grenade job, we add cellsv2 to the placement API
job which runs with neutron and is non-voting in the nova check
queue. Since the placement-api is optional in newton, and cell0
is optional in newton, it seems natural to lump these into the
same job.

This depends on the devstack and grenade changes, respectively,
that use the new NOVA_CONFIGURE_CELLSV2 flag in devstack.

Depends-On: Ic7d0115da51d6ea17ee49071af259a7789c62ab9
Depends-On: I090d5994c3077d86c60457e4c16a03d35e0c409c

Change-Id: Iacb01bca5d946a260f7d1c397d7f14b00a74bb08
2016-08-31 17:07:30 -04:00

84 lines
2.8 KiB
YAML

- job-template:
name: '{pipeline}-novaclient-dsvm-functional{special}{job-suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 120
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export BRANCH_OVERRIDE={branch-override}
export PROJECTS="openstack/python-novaclient $PROJECTS"
export DEVSTACK_PROJECT_FROM_GIT=python-novaclient
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
# This ensures that if we set override branch to something
# else, we still take python-novaclient from the zuul branch
# name. So override branch can be 'stable/mitaka' but we can
# test master changes.
uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'`
export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH
function post_test_hook {{
# Configure and run functional tests
$BASE/new/python-novaclient/novaclient/tests/functional/hooks/post_test_hook.sh
}}
if [ "{special}" == "-identity-v3-only" ] ; then
export DEVSTACK_LOCAL_CONFIG="ENABLE_IDENTITY_V2=False"
elif [ "{special}" == "-neutron" ] ; then
export DEVSTACK_GATE_NEUTRON=1
fi
export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- test-results
- devstack-logs
- console-log
- job-template:
name: '{pipeline}-tempest-dsvm-neutron-placement-full-{node}{job-suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 180
- timestamps
builders:
- print-template-name:
template-name: "{template-name}"
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export ENABLED_SERVICES=placement-api
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_FULL=1
export DEVSTACK_GATE_NEUTRON=1
# NOTE(mriedem): cells v2 should be the default after newton-eol
export DEVSTACK_LOCAL_CONFIG="NOVA_CONFIGURE_CELLSV2=True"
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log