4a61bc67f5
We have now some rather long job-template names, shorten them with replacing job-suffix with suffix. Before this change we had 1500 usages of job-suffix and 700 of just suffix. This change therefore unifies to one setting. Note that this does not change any job names at all, they are unchanged, it changes and shortens only the names of job-templates. Change-Id: I514df039a848d9f6619bca3adc05dfb84a761fc9
172 lines
6.9 KiB
YAML
172 lines
6.9 KiB
YAML
- job-template:
|
|
name: '{pipeline}-dsvm-nodepool{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 70
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
# Disable tempest as nodepool is talking to the cloud not tempest.
|
|
export DEVSTACK_GATE_TEMPEST=0
|
|
# Use neutron as the public clouds in use are neutron based.
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
# The nodepool process needs sudo rights in order to
|
|
# perform dib image builds
|
|
export DEVSTACK_GATE_REMOVE_STACK_SUDO=0
|
|
# Override so we get a bare minimum set of base compute services
|
|
# required to have nodepool function.
|
|
OVERRIDE_ENABLED_SERVICES=dstat,g-api,g-reg,key,mysql,n-api,n-cond,n-cpu,n-crt,n-sch,q-agt,q-dhcp,q-l3,q-meta,q-metering,q-svc,rabbit,s-account,s-container,s-object,s-proxy
|
|
# n-obj has been removed from mitaka
|
|
if [[ "stable/kilo stable/liberty" =~ $ZUUL_BRANCH ]]; then
|
|
OVERRIDE_ENABLED_SERVICES+=,n-obj,
|
|
fi
|
|
export OVERRIDE_ENABLED_SERVICES
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
fi
|
|
# Because we are testing a non standard project, add the
|
|
# our project repository. This makes zuul do the right
|
|
# reference magic for testing changes.
|
|
export PROJECTS="openstack-infra/nodepool $PROJECTS"
|
|
# note the actual url here is somewhat irrelevant because it
|
|
# caches in nodepool, however make it a valid url for
|
|
# documentation purposes.
|
|
export DEVSTACK_LOCAL_CONFIG="enable_plugin nodepool git://git.openstack.org/openstack-infra/nodepool"
|
|
|
|
function post_test_hook {{
|
|
/opt/stack/new/nodepool/tools/check_devstack_plugin.sh
|
|
}}
|
|
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:
|
|
- devstack-logs
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: '{pipeline}-dsvm-nodepool-src-shade{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 70
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
# Disable tempest as nodepool is talking to the cloud not tempest.
|
|
export DEVSTACK_GATE_TEMPEST=0
|
|
# Use neutron as the public clouds in use are neutron based.
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
# The nodepool process needs sudo rights in order to
|
|
# perform dib image builds
|
|
export DEVSTACK_GATE_REMOVE_STACK_SUDO=0
|
|
# Override so we get a bare minimum set of base compute services
|
|
# required to have nodepool function.
|
|
OVERRIDE_ENABLED_SERVICES=dstat,g-api,g-reg,key,mysql,n-api,n-cond,n-cpu,n-crt,n-sch,q-agt,q-dhcp,q-l3,q-meta,q-metering,q-svc,rabbit,s-account,s-container,s-object,s-proxy
|
|
# n-obj has been removed from mitaka
|
|
if [[ "stable/kilo stable/liberty" =~ $ZUUL_BRANCH ]]; then
|
|
OVERRIDE_ENABLED_SERVICES+=,n-obj,
|
|
fi
|
|
export OVERRIDE_ENABLED_SERVICES
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
fi
|
|
# Because we are testing a non standard project, add the
|
|
# our project repository. This makes zuul do the right
|
|
# reference magic for testing changes.
|
|
export PROJECTS="openstack-infra/nodepool $PROJECTS"
|
|
export PROJECTS="openstack-infra/shade $PROJECTS"
|
|
# note the actual url here is somewhat irrelevant because it
|
|
# caches in nodepool, however make it a valid url for
|
|
# documentation purposes.
|
|
export DEVSTACK_LOCAL_CONFIG="enable_plugin nodepool git://git.openstack.org/openstack-infra/nodepool"
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"LIBS_FROM_GIT=shade"
|
|
|
|
function post_test_hook {{
|
|
/opt/stack/new/nodepool/tools/check_devstack_plugin.sh
|
|
}}
|
|
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:
|
|
- devstack-logs
|
|
- console-log
|
|
|
|
|
|
- job-template:
|
|
name: '{pipeline}-dsvm-nodepool-src-diskimage-builder{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 70
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
# Disable tempest as nodepool is talking to the cloud not tempest.
|
|
export DEVSTACK_GATE_TEMPEST=0
|
|
# Use neutron as the public clouds in use are neutron based.
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
# The nodepool process needs sudo rights in order to
|
|
# perform dib image builds
|
|
export DEVSTACK_GATE_REMOVE_STACK_SUDO=0
|
|
# Override so we get a bare minimum set of base compute services
|
|
# required to have nodepool function.
|
|
OVERRIDE_ENABLED_SERVICES="dstat,g-api,g-reg,key,mysql,rabbit"
|
|
OVERRIDE_ENABLED_SERVICES+=",n-api,n-cond,n-cpu,n-crt,n-sch"
|
|
OVERRIDE_ENABLED_SERVICES+=",q-agt,q-dhcp,q-l3,q-meta,q-metering,q-svc"
|
|
OVERRIDE_ENABLED_SERVICES+=",s-account,s-container,s-object,s-proxy"
|
|
export OVERRIDE_ENABLED_SERVICES
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
fi
|
|
# Because we are testing a non standard project, add the
|
|
# our project repository. This makes zuul do the right
|
|
# reference magic for testing changes.
|
|
export PROJECTS="openstack-infra/nodepool $PROJECTS"
|
|
export PROJECTS="openstack/diskimage-builder $PROJECTS"
|
|
# note the actual url here is somewhat irrelevant because it
|
|
# caches in nodepool, however make it a valid url for
|
|
# documentation purposes.
|
|
export DEVSTACK_LOCAL_CONFIG="enable_plugin nodepool git://git.openstack.org/openstack-infra/nodepool"
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"LIBS_FROM_GIT=diskimage-builder"
|
|
|
|
function post_test_hook {{
|
|
/opt/stack/new/nodepool/tools/check_devstack_plugin.sh
|
|
}}
|
|
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:
|
|
- devstack-logs
|
|
- console-log
|