openstack-ansible-os_neutron/tests/test.yml
Jesse Pretorius afe63f6f19 Resolve migration issues
A run_once task decides on a host without the
context of conditionals related to the task.
The filter is done prior to evaluating any
conditionals.

Also, only the neutron-server neutron.conf has
the database connection credentials as a
security measure, so it is not able to execute
the database migrations.

This patch ensures that the database migrations
are only run once, but are also executed
wherever neutron-server is. It also adds
multiple instances of neutron-server and
neutron-agents to better test against problems
of this nature happening again.

Additionally, the patch uses the handlers for
the offline migrations to ensure that
neutron-server is only restarted once when a
new tag is deployed.

Change-Id: I672ceb0848415c8f2653ebc8f7556db77f7f001c
2017-06-22 19:24:03 +01:00

44 lines
1.2 KiB
YAML

---
# Copyright 2015, 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.
# Setup the user ssh keys, host and containers
- include: common/test-setup-host.yml
# Install haproxy
- include: common/test-install-haproxy.yml
# Install RabbitMQ/MariaDB
- include: common/test-install-infra.yml
# Install etcd
- include: common/test-install-etcd.yml
# Install Keystone
- include: common/test-install-keystone.yml
# Install Neutron
- include: common/test-install-neutron.yml
# Install and execute tempest
- include: common/test-install-tempest.yml
- include: test-calico-functional.yml
when:
- "neutron_plugin_type == 'ml2.calico'"
- include: test-dragonflow-functional.yml
when:
- "neutron_plugin_type == 'ml2.dragonflow'"