From 1041cbfc25fa59f12e00cf4480edf4fd742a4715 Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Fri, 28 Oct 2016 04:30:54 -0400 Subject: Updating heat cli calls to converged cli In newton the heat cli is deprecated: WARNING (shell) "heat stack-list" is deprecated, please use "openstack stack list" instead WARNING (shell) "heat resource-list" is deprecated, please use "openstack stack resource list" instead Change-Id: Ia32f05c72500e5fdd525c32a9b41b2be3cb1599c Signed-off-by: Dan Radez --- lib/utility-functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/utility-functions.sh') diff --git a/lib/utility-functions.sh b/lib/utility-functions.sh index bc9a9592..bf4128a0 100644 --- a/lib/utility-functions.sh +++ b/lib/utility-functions.sh @@ -88,14 +88,14 @@ function debug_stack { source ~/stackrc IFS=$'\n' - for resource in $(heat resource-list -n 5 overcloud | grep FAILED); do + for resource in $(openstack stack resource list -n 5 overcloud | grep FAILED); do unset IFS resource_arr=(${resource//|/ }) - phys_id=$(heat resource-show ${resource_arr[-1]} ${resource_arr[0]} | grep physical_resource_id 2> /dev/null) + 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$(heat deployment-show ${phys_id_arr[-1]} 2> /dev/null)" + failure_output+="\n${resource}:\n\n$(openstack stack deployment show ${phys_id_arr[-1]} 2> /dev/null)" failure_output+="\n******************************************************" fi unset phys_id -- cgit 1.2.3-korg