afe63f6f19
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
35 lines
1.0 KiB
YAML
35 lines
1.0 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
|
|
when:
|
|
- groups['neutron_calico_dhcp_agent'] | length > 0
|
|
|
|
# Install Keystone
|
|
- include: common/test-install-keystone.yml
|
|
|
|
# Install previous Neutron
|
|
- include: test-install-previous-neutron.yml
|