Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Log time waiting for cloud-init in CSE #3718

Merged
merged 2 commits into from
Aug 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion parts/k8s/kubernetescustomscript.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -x
echo `date`,`hostname`, startscript>>/opt/m
echo `date`,`hostname`, startcustomscript>>/opt/m
source /opt/azure/containers/provision_source.sh
source /opt/azure/containers/provision_installs.sh
source /opt/azure/containers/provision_configs.sh
Expand Down Expand Up @@ -35,7 +35,9 @@ function testOutboundConnection() {
}

function waitForCloudInit() {
echo `date`,`hostname`, startwaitingforcloudinit>>/opt/m
wait_for_file 900 1 /var/log/azure/cloud-init.complete || exit $ERR_CLOUD_INIT_TIMEOUT
echo `date`,`hostname`, finishwaitingforcloudinit>>/opt/m
}

function holdWALinuxAgent() {
Expand Down Expand Up @@ -120,6 +122,7 @@ fi

echo "Custom script finished successfully"

echo `date`,`hostname`, endcustomscript>>/opt/m
mkdir -p /opt/azure/containers && touch /opt/azure/containers/provision.complete
ps auxfww > /opt/azure/provision-ps.log &

Expand Down