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
41 lines
1.2 KiB
YAML
41 lines
1.2 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.
|
|
|
|
tempest_run: yes
|
|
|
|
tempest_plugins:
|
|
- name: neutron
|
|
repo: https://git.openstack.org/openstack/neutron
|
|
branch: master
|
|
|
|
tempest_test_whitelist:
|
|
- neutron.tests.tempest.api.test_networks*
|
|
|
|
haproxy_ssl: false
|
|
external_lb_vip_address: 10.1.0.1
|
|
internal_lb_vip_address: 10.1.0.1
|
|
|
|
test_neutron_server_host: "{{ external_lb_vip_address }}"
|
|
|
|
haproxy_default_services:
|
|
- service:
|
|
haproxy_service_name: neutron_server
|
|
haproxy_backend_nodes: "{{ groups['neutron_server'] | default([]) }}"
|
|
haproxy_port: 9696
|
|
haproxy_ssl: "{{ haproxy_ssl }}"
|
|
haproxy_balance_type: http
|
|
haproxy_backend_options:
|
|
- "httpchk GET /"
|