
This reverts commit 310f3e382be499684f8b5416528c97c6aed50d2d. Depends-On: https://review.openstack.org/#/c/625759/ Change-Id: I3d42233240e1eb09fdf1831d1bc31681b3b77ae7
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
---
|
|
#
|
|
# Browbeat's Rally Install
|
|
#
|
|
|
|
- name: Create rally virtualenv
|
|
command: virtualenv {{ rally_venv }} creates={{ rally_venv }}
|
|
|
|
- name: Rally Add browbeat to Python path
|
|
shell: echo 'export PYTHONPATH=$PYTHONPATH:{{ browbeat_path }}' >> {{ rally_venv }}/bin/activate
|
|
|
|
- name: Setup rally-venv CA certificate path
|
|
lineinfile:
|
|
dest: "{{ rally_venv }}/bin/activate"
|
|
line: 'export REQUESTS_CA_BUNDLE={{ overcloud_ca_path }}'
|
|
when: overcloud_ca_path is defined
|
|
|
|
- name: Install Rally with OpenStack plugins into rally-venv
|
|
pip:
|
|
name: rally-openstack
|
|
version: "{{ rally_version }}"
|
|
virtualenv: "{{ rally_venv }}"
|
|
|
|
- name: Install elasticsearch into rally-venv
|
|
pip:
|
|
name: elasticsearch
|
|
virtualenv: "{{ rally_venv }}"
|
|
|
|
- name: Create rally configuration directory
|
|
file:
|
|
path: "{{ rally_venv }}/etc/rally"
|
|
state: directory
|
|
|
|
- name: Setup rally.conf
|
|
template:
|
|
src: rally.conf.j2
|
|
dest: "{{ rally_venv }}/etc/rally/rally.conf"
|
|
|
|
- name: Setup rally database
|
|
shell: . {{ rally_venv }}/bin/activate; rally db recreate
|
|
|
|
- name: Setup rally deployment
|
|
shell: . {{ rally_venv }}/bin/activate; . {{ overcloudrc }}; rally deployment create --fromenv --name overcloud
|
|
|
|
- name: Check Rally deployment
|
|
shell: . {{ rally_venv }}/bin/activate; . {{ overcloudrc }}; rally deployment check
|
|
register: rally_deployment_check
|
|
|
|
- name: Fail if Rally deployment cannot be verfied
|
|
fail:
|
|
msg: "Failed to verify that your deployment is ready to benchmark"
|
|
when: rally_deployment_check.rc != 0
|