
Depends-On: Idcff5d79b4884dd1cc7ed1ab42c9e4ce89d4a6d2 Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com> Change-Id: I74cdcb2aa99b0162ba1c14059111f09d0bb534e3
32 lines
837 B
Bash
32 lines
837 B
Bash
#!/bin/bash
|
|
# DevStack extras script to install osprofiler
|
|
|
|
# Save trace setting
|
|
XTRACE=$(set +o | grep xtrace)
|
|
set -o xtrace
|
|
|
|
source $DEST/osprofiler/devstack/lib/osprofiler
|
|
|
|
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
echo_summary "Configuring system services for OSProfiler"
|
|
install_osprofiler_collector
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
echo_summary "Configuring OSProfiler"
|
|
configure_osprofiler
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
|
|
echo_summary "Configuring Tempest"
|
|
configure_osprofiler_in_tempest
|
|
|
|
elif [[ "$1" == "unstack" ]]; then
|
|
if [[ "$OSPROFILER_COLLECTOR" == "jaeger" || \
|
|
"$OSPROFILER_COLLECTOR" == "otlp" ]]; then
|
|
echo_summary "Deleting jaeger docker container"
|
|
drop_jaeger
|
|
fi
|
|
fi
|
|
|
|
# Restore xtrace
|
|
$XTRACE
|