2015-07-31 19:54:43 +00:00
|
|
|
- job-template:
|
2015-10-24 17:03:27 +00:00
|
|
|
name: '{pipeline}-dsvm-nodepool{job-suffix}'
|
2015-07-31 19:54:43 +00:00
|
|
|
node: '{node}'
|
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
2016-02-06 10:47:12 +00:00
|
|
|
timeout: 70
|
2015-07-31 19:54:43 +00:00
|
|
|
- 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
|
2015-08-17 21:12:16 +00:00
|
|
|
# The nodepool process needs sudo rights in order to
|
|
|
|
# perform dib image builds
|
|
|
|
export DEVSTACK_GATE_REMOVE_STACK_SUDO=0
|
2015-07-31 19:54:43 +00:00
|
|
|
# Override so we get a bare minimum set of base compute services
|
|
|
|
# required to have nodepool function.
|
2016-01-12 11:40:46 +00:00
|
|
|
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-lbaas,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
|
2016-01-13 18:08:52 +00:00
|
|
|
OVERRIDE_ENABLED_SERVICES+=,n-obj,
|
2016-01-12 11:40:46 +00:00
|
|
|
fi
|
|
|
|
export OVERRIDE_ENABLED_SERVICES
|
2015-07-31 19:54:43 +00:00
|
|
|
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 {{
|
2015-08-20 23:02:30 +00:00
|
|
|
/opt/stack/new/nodepool/tools/check_devstack_plugin.sh
|
2015-07-31 19:54:43 +00:00
|
|
|
}}
|
|
|
|
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
|
2015-10-02 21:36:12 +00:00
|
|
|
|
|
|
|
- job-template:
|
2015-10-24 17:03:27 +00:00
|
|
|
name: '{pipeline}-dsvm-nodepool-src-shade{job-suffix}'
|
2015-10-02 21:36:12 +00:00
|
|
|
node: '{node}'
|
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
2016-02-06 10:47:12 +00:00
|
|
|
timeout: 70
|
2015-10-02 21:36:12 +00:00
|
|
|
- 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.
|
2016-01-12 11:40:46 +00:00
|
|
|
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-lbaas,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
|
2016-01-13 18:08:52 +00:00
|
|
|
OVERRIDE_ENABLED_SERVICES+=,n-obj,
|
2016-01-12 11:40:46 +00:00
|
|
|
fi
|
|
|
|
export OVERRIDE_ENABLED_SERVICES
|
2015-10-02 21:36:12 +00:00
|
|
|
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"
|
2015-10-03 00:33:35 +00:00
|
|
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"LIBS_FROM_GIT=shade"
|
2015-10-02 21:36:12 +00:00
|
|
|
|
|
|
|
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
|