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
42 lines
1.3 KiB
YAML
42 lines
1.3 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.
|
|
|
|
- name: Playbook to run resource tests against an openstack service
|
|
hosts: localhost
|
|
user: root
|
|
become: true
|
|
vars:
|
|
working_dir: "{{ lookup('env', 'WORKING_DIR') }}"
|
|
tasks:
|
|
- name: Install openstack sdk
|
|
pip:
|
|
name: "{{ item }}"
|
|
with_items:
|
|
- "python-openstacksdk"
|
|
- "python-keystoneclient"
|
|
- "python-glanceclient"
|
|
- name: Run rolling test script
|
|
command: ./openstack-ansible-ops/bowling_ball/rolling_tests.py neutron
|
|
args:
|
|
chdir: "{{ working_dir }}"
|
|
async: 100000
|
|
poll: 0
|
|
environment:
|
|
OS_AUTH_URL: "{{ keystone_service_publicurl }}"
|
|
OS_PASSWORD: "{{ keystone_auth_admin_password }}"
|
|
register: rolling_test_benchmark
|
|
vars_files:
|
|
- common/test-vars.yml
|