Changes to juju result in human readable output no longer
being applicable for the deployment completion check.
Changes to use json output instead.
Fixes Bug 1934
Change-Id: I65358c7f472956ed4238a5a61cceb1651d88feff
Signed-off-by: beierlm <mark.beierl@canonical.com>
(cherry picked from commit
67a3447f8a7a25812b4efecfd9be5dafd4f0e293)
previous_count=0
while true
do
- service_count=$(juju status -m $MODEL_NAME | grep kubernetes | grep active | wc -l)
+ service_count=$(juju status --format json -m $MODEL_NAME | jq '.applications[]."application-status".current' | grep active | wc -l)
echo "$service_count / $total_service_count services active"
if [ $service_count -eq $total_service_count ]; then
break
#
-juju destroy-model osm --destroy-storage -y --force --no-wait
+juju destroy-model osm --destroy-storage -y --force
sudo snap unalias osm
sudo snap remove osmclient
CONTROLLER_NAME="osm-vca"