Install updates.

Change-Id: I73d3afad0879e6ef2b37248e326404adedc3d698
This commit is contained in:
Alex Krzos 2016-02-13 10:13:18 -05:00
parent 8218ea5c0c
commit c47f0ad59b
9 changed files with 40 additions and 26 deletions

5
.gitignore vendored
View File

@ -4,10 +4,7 @@
ansible/hosts ansible/hosts
ansible/pbench-host-file ansible/pbench-host-file
# Prevent Results from sneaking into the git repo
results/
log/* log/*
#Swap files # Swap files
*.sw[po] *.sw[po]

View File

@ -84,8 +84,6 @@ $ ssh undercloud-root
(browbeat-venv)[stack@ospd ~]$ cd browbeat/ (browbeat-venv)[stack@ospd ~]$ cd browbeat/
(browbeat-venv)[stack@ospd browbeat]$ vi browbeat-config.yaml # Edit browbeat-config.yaml to control how many stress tests are run. (browbeat-venv)[stack@ospd browbeat]$ vi browbeat-config.yaml # Edit browbeat-config.yaml to control how many stress tests are run.
(browbeat-venv)[stack@ospd browbeat]$ ./browbeat.py -w (browbeat-venv)[stack@ospd browbeat]$ ./browbeat.py -w
...
(browbeat-venv)[stack@ospd browbeat]$ ./graphing/rallyplot.py test01
``` ```
## Install Browbeat directly on undercloud: ## Install Browbeat directly on undercloud:
@ -125,9 +123,8 @@ Your Overcloud check output is located in check/bug_report.log
(browbeat-venv)[stack@ospd ansible]$ cd .. (browbeat-venv)[stack@ospd ansible]$ cd ..
(browbeat-venv)[stack@ospd browbeat]$ vi browbeat-config.yaml # Edit browbeat.cfg to control how many stress tests are run. (browbeat-venv)[stack@ospd browbeat]$ vi browbeat-config.yaml # Edit browbeat.cfg to control how many stress tests are run.
(browbeat-venv)[stack@ospd browbeat]$ ./browbeat.py -w (browbeat-venv)[stack@ospd browbeat]$ ./browbeat.py -w
...
(browbeat-venv)[stack@ospd browbeat]$ ./graphing/rallyplot.py test01
``` ```
## Contributing ## Contributing
Contributions are most welcome! Pull requests need to be submitted using the gerrit code review system. Firstly, you need to login to GerritHub using your GitHub credentials and need to authorize GerritHub to access your account. Once you are logged in click you user name in the top-right corner, go to 'Settings' and under 'SSH Public Keys' you need to paste your public key. You can view your public key using: Contributions are most welcome! Pull requests need to be submitted using the gerrit code review system. Firstly, you need to login to GerritHub using your GitHub credentials and need to authorize GerritHub to access your account. Once you are logged in click you user name in the top-right corner, go to 'Settings' and under 'SSH Public Keys' you need to paste your public key. You can view your public key using:
``` ```

View File

@ -3,7 +3,7 @@
# Browbeat Install # Browbeat Install
# #
- name: Install Browbeat dependencies - name: Install browbeat matplotlib dependencies
yum: name={{ item }} state=present yum: name={{ item }} state=present
become: true become: true
with_items: with_items:
@ -18,10 +18,13 @@
become: true become: true
pip: name=virtualenv pip: name=virtualenv
- name: Create virtualenv - name: Create browbeat virtualenv
command: virtualenv /home/stack/browbeat-venv creates="/home/stack/browbeat-venv" command: virtualenv /home/stack/browbeat-venv creates="/home/stack/browbeat-venv"
- name: Clone Browbeat on undercloud - name: Create rally virtualenv
command: virtualenv /home/stack/rally-venv creates="/home/stack/rally-venv"
- name: Clone browbeat on undercloud
git: repo=https://github.com/jtaleric/browbeat.git dest=/home/stack/browbeat git: repo=https://github.com/jtaleric/browbeat.git dest=/home/stack/browbeat
when: "'localhost' not in '{{ inventory_hostname }}'" when: "'localhost' not in '{{ inventory_hostname }}'"
@ -33,15 +36,19 @@
command: mv /home/stack/hosts /home/stack/browbeat/ansible/hosts command: mv /home/stack/hosts /home/stack/browbeat/ansible/hosts
when: "'localhost' not in '{{ inventory_hostname }}'" when: "'localhost' not in '{{ inventory_hostname }}'"
- name: Install requirements.txt - name: Install requirements.txt into browbeat-venv
become: true become: true
pip: requirements=/home/stack/browbeat/requirements.txt virtualenv=/home/stack/browbeat-venv pip: requirements=/home/stack/browbeat/requirements.txt virtualenv=/home/stack/browbeat-venv
- name: Setup Rally database - name: Install rally into rally-venv
shell: . /home/stack/browbeat-venv/bin/activate; rally-manage db recreate become: true
pip: name=rally virtualenv=/home/stack/rally-venv
- name: Setup Rally deployment - name: Setup rally database
shell: . /home/stack/browbeat-venv/bin/activate; . /home/stack/overcloudrc; rally deployment create --fromenv --name overcloud shell: . /home/stack/rally-venv/bin/activate; rally-manage db recreate
- name: Setup rally deployment
shell: . /home/stack/rally-venv/bin/activate; . /home/stack/overcloudrc; rally deployment create --fromenv --name overcloud
# #
# Serve results out of httpd if results_in_httpd is set to true # Serve results out of httpd if results_in_httpd is set to true

View File

@ -22,15 +22,16 @@ grafana:
- openstack-general-system-performance - openstack-general-system-performance
url: http://grafana-host.example.com:3000/dashboard/db/ url: http://grafana-host.example.com:3000/dashboard/db/
rally: rally:
venv: /home/stack/browbeat-venv/bin/activate venv: /home/stack/rally-venv/bin/activate
benchmarks: benchmarks:
cinder: cinder:
enabled: true enabled: true
concurrency: concurrency:
- 16
- 32
- 48
- 64 - 64
- 128 times: 128
- 256
times: 1024
scenarios: scenarios:
create-attach-volume-centos: create-attach-volume-centos:
enabled: true enabled: true
@ -51,7 +52,7 @@ rally:
- 384 - 384
- 448 - 448
- 512 - 512
times: 5000 times: 10000
scenarios: scenarios:
authentic-keystone: authentic-keystone:
enabled: true enabled: true
@ -65,9 +66,15 @@ rally:
create-list-tenant: create-list-tenant:
enabled: true enabled: true
file: rally/keystone/keystone-create-list-tenant-cc.yml file: rally/keystone/keystone-create-list-tenant-cc.yml
times: 5000
concurrency:
- 256
create-list-user: create-list-user:
enabled: true enabled: true
file: rally/keystone/keystone-create-list-user-cc.yml file: rally/keystone/keystone-create-list-user-cc.yml
times: 5000
concurrency:
- 256
nova: nova:
enabled: true enabled: true
concurrency: concurrency:

View File

@ -22,7 +22,7 @@ grafana:
- openstack-general-system-performance - openstack-general-system-performance
url: http://grafana-host.example.com:3000/dashboard/db/ url: http://grafana-host.example.com:3000/dashboard/db/
rally: rally:
venv: /home/stack/browbeat-venv/bin/activate venv: /home/stack/rally-venv/bin/activate
benchmarks: benchmarks:
cinder: cinder:
enabled: true enabled: true

View File

@ -29,7 +29,7 @@ class Rally:
from_ts = int(time.time() * 1000) from_ts = int(time.time() * 1000)
task_args = str(scenario_args).replace("'", "\"") task_args = str(scenario_args).replace("'", "\"")
cmd = "source {}; \\".format(self.config['rally']['venv']) cmd = "source {}; ".format(self.config['rally']['venv'])
cmd += "rally task start {} --task-args \'{}\' 2>&1 | tee {}.log".format(task_file, cmd += "rally task start {} --task-args \'{}\' 2>&1 | tee {}.log".format(task_file,
task_args, test_name) task_args, test_name)
self.tools.run_cmd(cmd) self.tools.run_cmd(cmd)
@ -117,8 +117,7 @@ class Rally:
scenario_args)) scenario_args))
result_dir = self.tools.create_results_dir( result_dir = self.tools.create_results_dir(
self.config['browbeat']['results'], time_stamp, benchmark, self.config['browbeat']['results'], time_stamp, benchmark, scenario)
scenario)
self.logger.debug("Created result directory: {}".format(result_dir)) self.logger.debug("Created result directory: {}".format(result_dir))
self.workload_logger(result_dir) self.workload_logger(result_dir)

4
log/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View File

@ -1,3 +1,2 @@
ansible==1.9.4 ansible==1.9.4
matplotlib matplotlib
rally

4
results/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore