summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2016-12-08 12:33:58 -0500
committerDan Radez <dradez@redhat.com>2016-12-20 21:10:10 +0000
commit26449c58cbd83c6bd0fcd8c8bf3b09c9927d87bc (patch)
tree9f0473d9c5640384751e291cb830cd2738103a27 /lib
parenta90e29d412664322bb5b0602ae4870439a0ed038 (diff)
Updating stack-debug to use stack failures list
Change-Id: I8d1455d34d190149579dea9893629145f9d1adaf Signed-off-by: Dan Radez <dradez@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/utility-functions.sh22
1 files changed, 1 insertions, 21 deletions
diff --git a/lib/utility-functions.sh b/lib/utility-functions.sh
index 5c28b46c..c12619ae 100644
--- a/lib/utility-functions.sh
+++ b/lib/utility-functions.sh
@@ -80,26 +80,6 @@ function opendaylight_connect {
##outputs heat stack deployment failures
##params: none
function debug_stack {
- local failure_output
- local phys_id
- declare -a resource_arr
- declare -a phys_id_arr
-
source ~/stackrc
-
- IFS=$'\n'
- for resource in $(openstack stack resource list -n 5 overcloud | grep FAILED); do
- unset IFS
- resource_arr=(${resource//|/ })
- phys_id=$(openstack stack resource show ${resource_arr[-1]} ${resource_arr[0]} | grep physical_resource_id 2> /dev/null)
- if [ -n "$phys_id" ]; then
- phys_id_arr=(${phys_id//|/ })
- failure_output+="******************************************************"
- failure_output+="\n${resource}:\n\n$(openstack stack deployment show ${phys_id_arr[-1]} 2> /dev/null)"
- failure_output+="\n******************************************************"
- fi
- unset phys_id
- done
-
- echo -e $failure_output
+ openstack stack failures list overcloud --long
}