Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nagworld9 committed Mar 19, 2024
1 parent b9dd227 commit 3977926
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests_e2e/orchestrator/scripts/install-agent
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ echo "Agent Version:"
$python "$waagent" --version
echo "Service Status:"

# Sometimes the service can take a while to start and provision completed; give it a few minutes,
# We need to wait for the provisioning code to complete before stopping the agent's service to do the test setup
started=false
for i in {1..6}
do
if [[ -f /var/lib/waagent/provisioned ]]; then
started=true
break
fi
echo "Waiting for service to complete provision..."
echo "Waiting for agent to complete provisioning."
sleep 30
done
if [ $started == false ]; then
echo "Service failed to complete provision."
echo "Provisioning did not complete within the given timeout (cannot find /var/lib/waagent/provisioned)"
exit 1
fi

Expand Down

0 comments on commit 3977926

Please sign in to comment.