project-config/jenkins/jobs/patrole.yaml
Felipe Monteiro 2eec3c1f19 Remove enabled_services=tempest from patrole gate jobs.
Currently, ENABLED_SERVICES=tempest is contained in the gate jobs
for patrole. This appears to be causing problem when setting
up the multinode devstack environment [0], because

  tempest verify-config

is executed, which fails because:

  AttributeError: 'Manager' object has no attribute 'image_client'

which probably happens because tempest isn't set up on the other nodes,
causing tempest verify-config to fail.

Other multinode setups do not contain ENABLED_SERVICES=tempest:
for example [1]. Regardless, tempest is added to ENABLED_SERVICES
automatically by a script, apparently after devstack is done [1].

[0] http://logs.openstack.org/68/452768/2/check/gate-tempest-dsvm-patrole-multinode-admin-ubuntu-xenial-nv/6401f12/logs/devstack-subnodes-early.txt.gz
[1] http://logs.openstack.org/41/452041/7/check/gate-tempest-dsvm-neutron-scenario-multinode-ubuntu-xenial-nv/5907cf4/logs/devstack-subnodes-early.txt.gz

Change-Id: I0d59d6b956ff50e18364775054e16be79c39d799
2017-04-03 17:24:39 +00:00

124 lines
3.7 KiB
YAML

# Job for Patrole + Tempest.
- job-template:
name: '{pipeline}-tempest-dsvm-patrole-{rbac-role}-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- print-template-name:
template-name: "{template-name}"
- link-logs
- net-info
- devstack-checkout
- local_conf:
conf: |
[[local|localrc]]
enable_plugin patrole git://git.openstack.org/openstack/patrole
enable_plugin heat git://git.openstack.org/openstack/heat
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
# Ensure that tempest set up is executed, but do not automatically
# execute tempest tests; they are executed in post_test_hook.
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_NEUTRON=1
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
export PROJECTS="openstack/patrole $PROJECTS"
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
# Keep localrc to be able to set some vars in pre_test_hook
export KEEP_LOCALRC=1
function pre_test_hook {{
source $BASE/new/patrole/contrib/pre_test_hook.sh \
{rbac-role}
}}
export -f pre_test_hook
function post_test_hook {{
source $BASE/new/patrole/contrib/post_test_hook.sh \
{rbac-role}
}}
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 for Patrole + Tempest multinode environment.
- job-template:
name: '{pipeline}-tempest-dsvm-patrole-multinode-{rbac-role}-{node-release}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- print-template-name:
template-name: "{template-name}"
- link-logs
- net-info
- devstack-checkout
- local_conf:
conf: |
[[local|localrc]]
enable_plugin patrole git://git.openstack.org/openstack/patrole
enable_plugin heat git://git.openstack.org/openstack/heat
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
# Ensure that tempest set up is executed, but do not automatically
# execute tempest tests; they are executed in post_test_hook.
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_NEUTRON=1
export DEVSTACK_GATE_TOPOLOGY="multinode"
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
export PROJECTS="openstack/patrole $PROJECTS"
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
# Keep localrc to be able to set some vars in pre_test_hook
export KEEP_LOCALRC=1
function pre_test_hook {{
source $BASE/new/patrole/contrib/pre_test_hook.sh \
{rbac-role} multinode
}}
export -f pre_test_hook
function post_test_hook {{
source $BASE/new/patrole/contrib/post_test_hook.sh \
{rbac-role} multinode
}}
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