diff options
-rw-r--r-- | devstack/lib/osprofiler | 4 | ||||
-rw-r--r-- | devstack/plugin.sh | 5 | ||||
-rw-r--r-- | releasenotes/notes/drop-jaeger-container-when-unstacking-e8fcdc036f80158a.yaml | 7 |
3 files changed, 16 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 diff --git a/releasenotes/notes/drop-jaeger-container-when-unstacking-e8fcdc036f80158a.yaml b/releasenotes/notes/drop-jaeger-container-when-unstacking-e8fcdc036f80158a.yaml new file mode 100644 index 0000000..47fa88f --- /dev/null +++ b/releasenotes/notes/drop-jaeger-container-when-unstacking-e8fcdc036f80158a.yaml @@ -0,0 +1,7 @@ +--- +issues: + - | + Using devstack, when unstacking, the docker container running + Jaeger tracing will be deleted that to correctly clean processes + started by devstack.. This also avoid `./stack.sh` to fail when + recreating the environnement. |