summaryrefslogtreecommitdiff
path: root/devstack
diff options
context:
space:
mode:
Diffstat (limited to 'devstack')
-rw-r--r--devstack/lib/osprofiler4
-rw-r--r--devstack/plugin.sh5
2 files changed, 9 insertions, 0 deletions
diff --git a/devstack/lib/osprofiler b/devstack/lib/osprofiler
index 5176a1e..6dc7e0e 100644
--- a/devstack/lib/osprofiler
+++ b/devstack/lib/osprofiler
@@ -71,6 +71,10 @@ function install_jaeger() {
pip_install jaeger-client
}
+function drop_jaeger() {
+ sg docker -c 'docker rm jaeger --force'
+}
+
function install_elasticsearch() {
if is_ubuntu; then
install_package docker.io
diff --git a/devstack/plugin.sh b/devstack/plugin.sh
index 72c0bca..705d6ce 100644
--- a/devstack/plugin.sh
+++ b/devstack/plugin.sh
@@ -19,6 +19,11 @@ elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
echo_summary "Configuring Tempest"
configure_osprofiler_in_tempest
+elif [[ "$1" == "unstack" ]]; then
+ if [[ "$OSPROFILER_COLLECTOR" == "jaeger" ]]; then
+ echo_summary "Deleting jaeger docker container"
+ drop_jaeger
+ fi
fi
# Restore xtrace