462df5c3de
In the -legacy functional tests, besides enabling keystone v2.0, shade needs to be told to use v2.0 Change-Id: I3aee7a396199532c7e43da057cf8ea5e1e82ced1
206 lines
7.0 KiB
YAML
206 lines
7.0 KiB
YAML
- builder:
|
|
name: shade-local-conf
|
|
builders:
|
|
- local_conf:
|
|
conf: |
|
|
[[local|localrc]]
|
|
ENABLE_IDENTITY_V2=False
|
|
enable_plugin heat https://git.openstack.org/openstack/heat
|
|
disable_service ceilometer-acentral
|
|
disable_service ceilometer-acompute
|
|
disable_service ceilometer-alarm-evaluator
|
|
disable_service ceilometer-alarm-notifier
|
|
disable_service ceilometer-anotification
|
|
disable_service ceilometer-api
|
|
disable_service ceilometer-collector
|
|
disable_service horizon
|
|
[[post-config|$CINDER_CONF]]
|
|
[DEFAULT]
|
|
osapi_max_limit=6
|
|
|
|
- job-template:
|
|
name: '{pipeline}-shade-functional{legacy}{libs}{python}{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 70
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- shade-local-conf
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
if [ "{legacy}" == "-legacy" ]; then
|
|
export DEVSTACK_GATE_NEUTRON=0
|
|
# the local.conf macro doesn't allow for conditional setting.
|
|
# Set the default above, then edit it here for the legacy case
|
|
# where we want to flip the bit. This should work unless someone
|
|
# redefines the /tmp/dg-local.conf location in the local_conf:
|
|
# macro.
|
|
sed -i -e 's/ENABLE_IDENTITY_V2=False/ENABLE_IDENTITY_V2=True/' /tmp/dg-local.conf
|
|
export SHADE_USE_KEYSTONE_V2=1
|
|
else
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
fi
|
|
export DEVSTACK_GATE_HEAT=1
|
|
export PYTHONUNBUFFERED=true
|
|
export SHADE_HAS_DESIGNATE=0
|
|
export SHADE_HAS_HEAT=1
|
|
export SHADE_HAS_MAGNUM=0
|
|
export SHADE_HAS_NEUTRON=$DEVSTACK_GATE_NEUTRON
|
|
export SHADE_HAS_SWIFT=1
|
|
if [ "{python}" == "-py35" ]; then
|
|
export SHADE_TOX_PYTHON=python3
|
|
fi
|
|
|
|
export PROJECTS="openstack-infra/shade $PROJECTS"
|
|
if [ "{libs}" == "-libs" ]; then
|
|
export PROJECTS="openstack/keystoneauth $PROJECTS"
|
|
export PROJECTS="openstack/os-client-config $PROJECTS"
|
|
export PROJECTS="openstack/python-keystoneclient $PROJECTS"
|
|
export PROJECTS="openstack/python-novaclient $PROJECTS"
|
|
|
|
if [ "{legacy}" == "-legacy" ]; then
|
|
# The purpose of the -legacy-libs job is to test that latest
|
|
# libs work with old OpenStack. We don't want to install
|
|
# OpenStack from tip of master of the libs. We want to
|
|
# install tip of master of the libs into our functional venv.
|
|
export OVERRIDE_OS_CLIENT_CONFIG_PROJECT_BRANCH="master"
|
|
export OVERRIDE_KEYSTONEAUTH_PROJECT_BRANCH="master"
|
|
export OVERRIDE_PYTHON_NOVACLIENT_PROJECT_BRANCH="master"
|
|
export OVERRIDE_PYTHON_KEYSTONECLIENT_PROJECT_BRANCH="master"
|
|
fi
|
|
fi
|
|
|
|
if [ "{legacy}" == "-legacy" ]; then
|
|
export BRANCH_OVERRIDE="stable/newton"
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
else
|
|
export BRANCH_OVERRIDE="default"
|
|
fi
|
|
|
|
function post_test_hook {{
|
|
$BASE/new/shade/shade/tests/functional/hooks/post_test_hook.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}-shade-functional-magnum{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 70
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- local_conf:
|
|
conf: |
|
|
[[local|localrc]]
|
|
enable_plugin magnum https://git.openstack.org/openstack/magnum
|
|
MAGNUM_GUEST_IMAGE_URL=https://tarballs.openstack.org/magnum/images/fedora-atomic-f23-dib.qcow2
|
|
MAGNUM_IMAGE_NAME=fedora-atomic-f23-dib
|
|
disable_service ceilometer-acentral
|
|
disable_service ceilometer-acompute
|
|
disable_service ceilometer-alarm-evaluator
|
|
disable_service ceilometer-alarm-notifier
|
|
disable_service ceilometer-anotification
|
|
disable_service ceilometer-api
|
|
disable_service ceilometer-collector
|
|
disable_service horizon
|
|
disable_service s-account
|
|
disable_service s-container
|
|
disable_service s-object
|
|
disable_service s-proxy
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
export SHADE_HAS_DESIGNATE=0
|
|
export SHADE_HAS_HEAT=0
|
|
export SHADE_HAS_MAGNUM=1
|
|
export SHADE_HAS_NEUTRON=1
|
|
export SHADE_HAS_SWIFT=0
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
|
|
export PROJECTS="openstack-infra/shade $PROJECTS"
|
|
export PROJECTS="openstack/magnum $PROJECTS"
|
|
export PROJECTS="openstack/python-magnumclient $PROJECTS"
|
|
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
fi
|
|
|
|
function post_test_hook {{
|
|
$BASE/new/shade/shade/tests/functional/hooks/post_test_hook.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}-shade-ansible{release}{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 70
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- shade-local-conf
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export DEVSTACK_GATE_HEAT=1
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
export PYTHONUNBUFFERED=true
|
|
export SHADE_HAS_DESIGNATE=0
|
|
export SHADE_HAS_HEAT=1
|
|
export SHADE_HAS_MAGNUM=0
|
|
export SHADE_HAS_NEUTRON=1
|
|
export SHADE_HAS_SWIFT=1
|
|
if [ "{release}" == "-dev" ]; then
|
|
export SHADE_ANSBILE_DEV=1
|
|
fi
|
|
|
|
export PROJECTS="openstack-infra/shade $PROJECTS"
|
|
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
fi
|
|
|
|
function post_test_hook {{
|
|
$BASE/new/shade/shade/tests/ansible/hooks/post_test_hook.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
|