osprofiler/devstack/lib/osprofiler

76 lines
1.6 KiB
Plaintext

# lib/rally
# Functions to control the configuration and operation of the **Rally**
# Dependencies:
#
# - ``functions`` file
# - ``DEST``, ``DATA_DIR``, ``STACK_USER`` must be defined
# ``stack.sh`` calls the entry points in this order:
#
# - install_osprofiler
# - configure_osprofiler
# - init_osprofiler
# Save trace setting
XTRACE=$(set +o | grep xtrace)
set +o xtrace
# Defaults
# --------
CONF_FILES=(
/etc/cinder/cinder.conf
/etc/heat/heat.conf
/etc/keystone/keystone.conf
/etc/nova/nova.conf
/etc/neutron/neutron.conf
/etc/glance/glance-api.conf
/etc/glance/glance-registry.conf
/etc/trove/trove.conf
/etc/trove/trove-conductor.conf
/etc/trove/trove-guestagent.conf
/etc/trove/trove-taskmanager.conf
/etc/senlin/senlin.conf
/etc/magnum/magnum.conf
/etc/zun/zun.conf
)
# This will update CEILOMETER_NOTIFICATION_TOPICS in ceilometer.conf file
export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler
# Functions
# ---------
# configure_osprofiler() - Nothing for now
function configure_osprofiler() {
for conf in ${CONF_FILES[@]}; do
if [ -f $conf ]
then
iniset $conf profiler enabled True
iniset $conf profiler trace_sqlalchemy True
iniset $conf profiler hmac_keys $OSPROFILER_HMAC_KEYS
fi
done
CEILOMETER_CONF=/etc/ceilometer/ceilometer.conf
iniset $CEILOMETER_CONF event store_raw info
}
# init_rally() - Initialize databases, etc.
function init_osprofiler() {
echo "Do nothing here for now"
}
# Restore xtrace
$XTRACE
# Tell emacs to use shell-script-mode
## Local variables:
## mode: shell-script
## End: