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
19 lines
651 B
YAML
19 lines
651 B
YAML
---
|
|
# Copyright 2016, 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.
|
|
|
|
ansible_host: 10.1.0.4
|
|
ansible_become: True
|
|
ansible_user: root
|