Files
openstack-ansible/zuul.d/jobs.yaml
Jean-Philippe Evrard e09216aa4e Implement a scenario with no containers
In order to demonstrate that OSA can be built without
any containers, and to validate on a continuous basis
that it still works, a new scenario is implemented to
test it.

As part of this, the following is done:

1. An example environment override file is added which
   sets all the containers with 'is_metal: true' which
   disables the container creation.

2. As haproxy is not used for the scenario on an AIO,
   the haproxy environment configuration is broken out
   from openstack_user_config into its own conf.d file
   and the implementation of it into user space is added
   to all other scenarios.

3. To ensure that the pip lockdown configuration is not
   implemented by the pip install role when the repo
   server doesn't exist yet, we ensure that the var is
   set in the playbook that does the validation.

4. To ensure that rabbitmq is able to correctly start
   up we implement the same host name on the host as
   we do in the inventory. Without this rabbitmq fails.
   In order to do this successfully with ansible, the
   dbus package must be installed on the host, so it is
   added as part of the AIO bootstrapping.

5. The workflow for a deployment needs no changes
   because when the lxc-related playbooks execute, they
   simply skip over because the lxc-related groups are
   empty.

Depends-On: https://review.openstack.org/542307
Change-Id: I67199e1f35c91c4e2c9973e011e856c6ac3fb086
2018-02-08 16:45:53 +00:00

189 lines
5.1 KiB
YAML

---
# Copyright 2017, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- job:
name: openstack-ansible-deploy-aio
parent: base
description: |
Run functional tests for an OpenStack-Ansible project.
Uses the gate-check-commit.sh script, running a default
aio deploy.
run: zuul.d/playbooks/run.yml
post-run: zuul.d/playbooks/post.yml
timeout: 7200
irrelevant-files:
- ^\.git.*
- ^.*\.(example|md|rst)$
- ^deploy-guide/.*
- ^doc/.*
- ^releasenotes/.*
- ^setup\.(cfg|py)$
- ^tox.ini$
- ^Vagrantfile
vars:
action: deploy
scenario: aio_lxc
# Ensuring overrides work
- job:
name: openstack-ansible-varstest-aio_lxc-ubuntu-xenial
parent: openstack-ansible-deploy-aio_lxc-ubuntu-xenial
vars:
action: varstest
# ubuntu
- job:
name: openstack-ansible-deploy-aio_lxc-ubuntu-xenial
parent: openstack-ansible-deploy-aio
nodeset: ubuntu-xenial
- job:
name: openstack-ansible-deploy-ceph-ubuntu-xenial
# temporarily moved to non voting until
# https://bugs.launchpad.net/cinder/+bug/1737015
# has been fixed.
voting: false
parent: openstack-ansible-deploy-aio_lxc-ubuntu-xenial
vars:
action: deploy
scenario: ceph
- job:
name: openstack-ansible-deploy-aio_metal-ubuntu-xenial
parent: openstack-ansible-deploy-aio-ubuntu-xenial
voting: false
vars:
action: deploy
scenario: aio_metal
- job:
name: openstack-ansible-upgrade-aio_lxc-ubuntu-xenial
parent: openstack-ansible-deploy-aio_lxc-ubuntu-xenial
timeout: 10800
vars:
action: upgrade
scenario: aio
- job:
name: openstack-ansible-upgrade-ceph-ubuntu-xenial
parent: openstack-ansible-deploy-aio_lxc-ubuntu-xenial
timeout: 10800
vars:
action: upgrade
scenario: ceph
- job:
name: openstack-ansible-deploy-octavia-ubuntu-xenial
parent: openstack-ansible-deploy-aio_lxc-ubuntu-xenial
vars:
action: deploy
scenario: octavia
- job:
name: openstack-ansible-deploy-translations-ubuntu-xenial
parent: openstack-ansible-deploy-aio_lxc-ubuntu-xenial
vars:
action: deploy
scenario: translations
# centos
- job:
name: openstack-ansible-deploy-aio_lxc-centos-7
parent: openstack-ansible-deploy-aio
nodeset: centos-7
voting: false
- job:
name: openstack-ansible-deploy-ceph-centos-7
parent: openstack-ansible-deploy-aio_lxc-centos-7
vars:
action: deploy
scenario: ceph
- job:
name: openstack-ansible-upgrade-aio_lxc-centos-7
parent: openstack-ansible-deploy-aio_lxc-centos-7
timeout: 10800
vars:
action: upgrade
scenario: aio
- job:
name: openstack-ansible-upgrade-ceph-centos-7
parent: openstack-ansible-deploy-aio_lxc-centos-7
timeout: 10800
vars:
action: upgrade
scenario: ceph
# opensuse
- job:
name: openstack-ansible-deploy-aio_lxc-opensuse-423
parent: openstack-ansible-deploy-aio
nodeset: opensuse-423
voting: false
- job:
name: openstack-ansible-deploy-ceph-opensuse-423
parent: openstack-ansible-deploy-aio_lxc-opensuse-423
vars:
action: deploy
scenario: ceph
- job:
name: openstack-ansible-upgrade-aio_lxc-opensuse-423
parent: openstack-ansible-deploy-aio_lxc-opensuse-423
timeout: 10800
vars:
action: upgrade
scenario: aio
# NOTE(cloudnull): META JOB MAP
# In order to cater for the possibility that an external job was dependent on the old job name
# the following job items are used to repoint work to the updated job name should the old name
# be referenced. As we updated our zuul dependencies and external job runners these items should
# be removed as soon as they're no longer needed.
- job:
name: openstack-ansible-varstest-aio-ubuntu-xenial
parent: openstack-ansible-varstest-aio_lxc-ubuntu-xenial
- job:
name: openstack-ansible-deploy-aio-ubuntu-xenial
parent: openstack-ansible-deploy-aio
- job:
name: openstack-ansible-upgrade-aio-ubuntu-xenial
parent: openstack-ansible-deploy-aio_lxc-ubuntu-xenial
- job:
name: openstack-ansible-deploy-aio-centos-7
parent: openstack-ansible-deploy-aio_lxc-centos-7
- job:
name: openstack-ansible-upgrade-aio-centos-7
parent: openstack-ansible-upgrade-aio_lxc-centos-7
- job:
name: openstack-ansible-deploy-aio-opensuse-423
parent: openstack-ansible-deploy-aio_lxc-opensuse-423
- job:
name: openstack-ansible-deploy-ceph-opensuse-423
parent: openstack-ansible-deploy-aio_lxc-opensuse-423
- job:
name: openstack-ansible-upgrade-aio-opensuse-423
parent: openstack-ansible-deploy-aio_lxc-opensuse-423