Current behavior <!-- The actual behavior observed --
We are running the setup.sh script from Microsoft.Azure.Extensions.CustomScript, which is running from WaLinuxAgent. The script triggers a signal to the existing WaLinuxAgent to terminate so it can get upgraded.
The WaLinuxAgent is designed to wait until all extensions have finished executing before terminating, leading to a circular dependency. This ultimately leads to hitting the 90 minute timeout for custom scripts and dies.
Known workarounds
Prevent the script from trying to upgrade walinuxagent by either removing the call to "apt-get upgrade" or blacklisting walinuxagent before the call by running "apt-mark hold walinuxagent" and "apt-mark unhold walinuxagent" after.
Type of issue
Current behavior <!-- The actual behavior observed --
We are running the setup.sh script from Microsoft.Azure.Extensions.CustomScript, which is running from WaLinuxAgent. The script triggers a signal to the existing WaLinuxAgent to terminate so it can get upgraded.
The WaLinuxAgent is designed to wait until all extensions have finished executing before terminating, leading to a circular dependency. This ultimately leads to hitting the 90 minute timeout for custom scripts and dies.
Known workarounds
Prevent the script from trying to upgrade walinuxagent by either removing the call to "apt-get upgrade" or blacklisting walinuxagent before the call by running "apt-mark hold walinuxagent" and "apt-mark unhold walinuxagent" after.
Context and Environment
Similar issue: https://github.com/Azure/WALinuxAgent/issues/178