diff options
Diffstat (limited to 'lib/utility-functions.sh')
-rw-r--r-- | lib/utility-functions.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utility-functions.sh b/lib/utility-functions.sh index bc9a9592..5c28b46c 100644 --- a/lib/utility-functions.sh +++ b/lib/utility-functions.sh @@ -24,7 +24,7 @@ function undercloud_connect { ##outputs the Undercloud's IP address ##params: none function get_undercloud_ip { - echo $(arp -a | grep $(virsh domiflist undercloud | grep default |\ + echo $(arp -an | grep $(virsh domiflist undercloud | grep default |\ awk '{print $5}') | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+") } @@ -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 |