#check whether charms are still executing the code even juju-deployer says installed.
check_status() {
waitstatus=$1
- waittime=$2
retval=0
timeoutiter=0
while [ $retval -eq 0 ]; do
if juju status | grep -q $waitstatus; then
echo -n '.'
- if [ $timeoutiter -ge $waittime ]; then
+ if [ $timeoutiter -ge 180 ]; then
echo 'timed out'
retval=1
else
# with JUJU 2.0 bundles has to be deployed only once.
juju deploy bundles.yaml --debug
-sleep 720
-check_status allocating 220
+sleep 120
+check_status allocating
# need to revisit later if not needed we will remove the below.
openfile_fix() {