From c86ec3568c7ed11ce38584b654b91594eb0d235a Mon Sep 17 00:00:00 2001 From: Yuriy Zveryanskyy Date: Wed, 12 Feb 2014 11:03:18 +0200 Subject: [PATCH] Fix hook script for Ironic cleanup_ironic should not be started on "unstack" phase, otherwise API service not restarted because auth cache directory removed. Change-Id: I3da86b9fb8c3ce1185aff05df0fa83cf259708f4 --- extras.d/50-ironic.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extras.d/50-ironic.sh b/extras.d/50-ironic.sh index f68a14680f..9e61dc5d78 100644 --- a/extras.d/50-ironic.sh +++ b/extras.d/50-ironic.sh @@ -28,6 +28,9 @@ if is_service_enabled ir-api ir-cond; then if [[ "$1" == "unstack" ]]; then stop_ironic + fi + + if [[ "$1" == "clean" ]]; then cleanup_ironic fi fi