From bc84e0bf84c49cd4f5c0d80b008b5efbf30e5b5a Mon Sep 17 00:00:00 2001 From: Roman Podoliaka Date: Tue, 8 Apr 2014 17:24:44 +0300 Subject: [PATCH] Add rally element Add an element installing Rally. Rally is a tool for benchmarking and profiling OpenStack installations. It can be useful for detection of bottlenecks and debugging performance issues in deployed clouds. Change-Id: Ib8b5b937d19a59610da375b1a8256fd5a412c223 --- elements/rally/README.md | 11 +++++++++++ elements/rally/elements-deps | 2 ++ elements/rally/environment.d/10-rally-venv-dir.bash | 3 +++ .../rally/install.d/rally-source-install/51-rally | 12 ++++++++++++ elements/rally/source-repository-rally | 1 + 5 files changed, 29 insertions(+) create mode 100644 elements/rally/README.md create mode 100644 elements/rally/elements-deps create mode 100644 elements/rally/environment.d/10-rally-venv-dir.bash create mode 100755 elements/rally/install.d/rally-source-install/51-rally create mode 100644 elements/rally/source-repository-rally diff --git a/elements/rally/README.md b/elements/rally/README.md new file mode 100644 index 000000000..0d958ee32 --- /dev/null +++ b/elements/rally/README.md @@ -0,0 +1,11 @@ +Installs Rally OpenStack benchmarking and profiling tool. + +Overview +-------- + +[Rally] (https://wiki.openstack.org/wiki/Rally) is a CLI tool (and optional API +service) that allows you to test how your OpenStack installation performs at +scale and find bottlenecks using the integrated profiler. + +Wiki [HowTo page] (https://wiki.openstack.org/wiki/Rally/HowTo) provides examples +how to use Rally. diff --git a/elements/rally/elements-deps b/elements/rally/elements-deps new file mode 100644 index 000000000..f5a85e717 --- /dev/null +++ b/elements/rally/elements-deps @@ -0,0 +1,2 @@ +os-svc-install +source-repositories diff --git a/elements/rally/environment.d/10-rally-venv-dir.bash b/elements/rally/environment.d/10-rally-venv-dir.bash new file mode 100644 index 000000000..95b07a8e6 --- /dev/null +++ b/elements/rally/environment.d/10-rally-venv-dir.bash @@ -0,0 +1,3 @@ +if [ -z "${RALLY_VENV_DIR:-}" ]; then + export RALLY_VENV_DIR=${OPENSTACK_VENV_DIR:-"/opt/stack/venvs/rally"} +fi diff --git a/elements/rally/install.d/rally-source-install/51-rally b/elements/rally/install.d/rally-source-install/51-rally new file mode 100755 index 000000000..efc29e3df --- /dev/null +++ b/elements/rally/install.d/rally-source-install/51-rally @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -eux + +install-packages libpq-dev python-dev libevent-dev libssl-dev libffi-dev + +os-svc-install -u rally -r /opt/stack/rally + +ln -sf $RALLY_VENV_DIR/bin/rally /usr/local/bin/rally +ln -sf $RALLY_VENV_DIR/bin/rally-manage /usr/local/bin/rally-manage + +$RALLY_VENV_DIR/bin/rally-manage db recreate diff --git a/elements/rally/source-repository-rally b/elements/rally/source-repository-rally new file mode 100644 index 000000000..fdf6e831a --- /dev/null +++ b/elements/rally/source-repository-rally @@ -0,0 +1 @@ +rally git /opt/stack/rally https://git.openstack.org/stackforge/rally