a6cb3c08cc
This allows us to automate enabling OSProfiler in OpenStack Just add to DevStack localrc file: enable_plugin ceilometer https://github.com/openstack/ceilometer enable_plugin osprofiler https://github.com/openstack/osprofiler Change-Id: I3607407dd506723c1aad6696ec98eaed8a8ddd9e
25 lines
628 B
Bash
25 lines
628 B
Bash
# DevStack extras script to install Rally
|
|
|
|
# Save trace setting
|
|
XTRACE=$(set +o | grep xtrace)
|
|
set -o xtrace
|
|
|
|
source $DEST/osprofiler/devstack/lib/osprofiler
|
|
|
|
if [[ "$1" == "source" ]]; then
|
|
# Initial source
|
|
source $TOP_DIR/lib/rally
|
|
# elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
# echo_summary "Installing OSprofiler"
|
|
# install_rally
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
echo_summary "Configuring OSprofiler"
|
|
configure_osprofiler
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
echo_summary "Initializing OSprofiler"
|
|
init_osprofiler
|
|
fi
|
|
|
|
# Restore xtrace
|
|
$XTRACE
|