performa/performa/scenarios/mq/omsimulator-ha-call.yaml

46 lines
1.2 KiB
YAML

title: OMSimulator HA test
description:
This scenario uses oslo.messaging simulator tool to execute MQ test plan.
parameters:
tester_hosts: List of hosts were omsimulator will be executed
rabbit_url: RabbitMQ address
setup:
-
hosts: {{ tester_hosts }}
tasks:
- apt: name=git
become: yes
- apt: name=daemon
become: yes
- name: installing omsimulator
git: repo=git://git.openstack.org/openstack/oslo.messaging
dest=/tmp/performa/oslo.messaging
- apt: name=python-dev
become: yes
- apt: name=python-pip
become: yes
- pip: name=virtualenv
become: yes
- pip: requirements=/tmp/performa/oslo.messaging/requirements.txt virtualenv=/tmp/performa/oslo.messaging/.venv
- pip: name=eventlet virtualenv=/tmp/performa/oslo.messaging/.venv
- command: /tmp/performa/oslo.messaging/.venv/bin/python setup.py install
args:
chdir: /tmp/performa/oslo.messaging
execution:
-
hosts: {{ tester_hosts }}
tasks:
- omsimulator:
mode: call
duration: 100
threads: 1
host_count: 1
url: {{ rabbit_url }}
report:
template: omsimulator-ha-call.rst