Make ceph tests more portable
Change-Id: If93325f2651a02f98f9d480c10bf7b849cc9617e
This commit is contained in:
parent
5cb53838a6
commit
db8b0b6bc4
1
.gitignore
vendored
1
.gitignore
vendored
@ -22,3 +22,4 @@ subunit.log
|
|||||||
test/probe/.noseids
|
test/probe/.noseids
|
||||||
RELEASENOTES.rst
|
RELEASENOTES.rst
|
||||||
releasenotes/notes/reno.cache
|
releasenotes/notes/reno.cache
|
||||||
|
/tools/playbooks/**/*.retry
|
||||||
|
@ -273,6 +273,7 @@
|
|||||||
pre-run:
|
pre-run:
|
||||||
- tools/playbooks/common/install_dependencies.yaml
|
- tools/playbooks/common/install_dependencies.yaml
|
||||||
- tools/playbooks/saio_single_node_setup/setup_saio.yaml
|
- tools/playbooks/saio_single_node_setup/setup_saio.yaml
|
||||||
|
- tools/playbooks/saio_single_node_setup/add_s3api.yaml
|
||||||
- tools/playbooks/saio_single_node_setup/make_rings.yaml
|
- tools/playbooks/saio_single_node_setup/make_rings.yaml
|
||||||
run: tools/playbooks/ceph-s3tests/run.yaml
|
run: tools/playbooks/ceph-s3tests/run.yaml
|
||||||
post-run:
|
post-run:
|
||||||
|
@ -14,16 +14,13 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
- hosts: all
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
# TODO: remove this task when s3api is in the pipeline by default
|
- name: Shutdown main swift services
|
||||||
- name: Add s3api in proxy-server.conf
|
shell: "swift-init stop main"
|
||||||
replace:
|
|
||||||
path: "/etc/swift/proxy-server.conf"
|
|
||||||
regexp: "container_sync tempauth"
|
|
||||||
replace: "container_sync s3api tempauth"
|
|
||||||
become: true
|
become: true
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Starts main swift servers
|
- name: Start main swift services
|
||||||
shell: "swift-init main start"
|
shell: "swift-init start main"
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Clone s3compat repository
|
- name: Clone s3compat repository
|
||||||
@ -35,17 +32,18 @@
|
|||||||
pip:
|
pip:
|
||||||
requirements: "{{ ansible_env.HOME }}/s3compat/requirements.txt"
|
requirements: "{{ ansible_env.HOME }}/s3compat/requirements.txt"
|
||||||
virtualenv: "{{ ansible_env.HOME }}/venv"
|
virtualenv: "{{ ansible_env.HOME }}/venv"
|
||||||
|
virtualenv_python: python2
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Run s3compat tests
|
- name: Run s3compat tests
|
||||||
shell: '{{ ansible_env.HOME }}/venv/bin/python {{ ansible_env.HOME }}/s3compat/bin/run_ceph_tests.py "$@" || true'
|
shell: '{{ ansible_env.HOME }}/venv/bin/python {{ ansible_env.HOME }}/s3compat/bin/run_ceph_tests.py "$@"'
|
||||||
|
ignore_errors: true
|
||||||
environment:
|
environment:
|
||||||
S3TEST_CONF: "{{ ansible_env.HOME }}/{{ zuul.project.src_dir }}/tools/playbooks/ceph-s3tests/ceph-s3.conf"
|
S3TEST_CONF: "{{ ansible_env.HOME }}/{{ zuul.project.src_dir }}/tools/playbooks/ceph-s3tests/ceph-s3.conf"
|
||||||
S3ACL: "true"
|
|
||||||
DNS_BUCKET_NAMES: "false"
|
|
||||||
CHECK_BUCKET_OWNER: "true"
|
|
||||||
args:
|
args:
|
||||||
chdir: '{{ ansible_env.HOME }}/s3compat'
|
chdir: '{{ ansible_env.HOME }}/s3compat'
|
||||||
|
tags:
|
||||||
|
- tests
|
||||||
|
|
||||||
- name: Show report
|
- name: Show report
|
||||||
shell: |
|
shell: |
|
||||||
@ -58,3 +56,5 @@
|
|||||||
args:
|
args:
|
||||||
chdir:
|
chdir:
|
||||||
"{{ ansible_env.HOME }}/s3compat"
|
"{{ ansible_env.HOME }}/s3compat"
|
||||||
|
tags:
|
||||||
|
- tests
|
||||||
|
23
tools/playbooks/saio_single_node_setup/add_s3api.yaml
Normal file
23
tools/playbooks/saio_single_node_setup/add_s3api.yaml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Copyright (c) 2018 OpenStack Foundation
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
# TODO: remove this task when s3api is in the pipeline by default
|
||||||
|
- name: Add s3api in proxy-server.conf
|
||||||
|
replace:
|
||||||
|
path: "/etc/swift/proxy-server.conf"
|
||||||
|
regexp: "container_sync tempauth"
|
||||||
|
replace: "container_sync s3api tempauth"
|
||||||
|
become: true
|
Loading…
x
Reference in New Issue
Block a user