Problem Description
Shipyard has the following script in the startup task to prepare the docker images and download blobxfer.exe
https://github.com/Azure/batch-shipyard/blob/ff49d187a4a082305c97e3e26946f6560ea68f56/scripts/windows/shipyard_nodeprep_nativedocker.ps1
If the node gets reboot or unhealthy then healthy, the start task will be triggered again. but it will not download them since the tag file is in place already:
if (Test-Path $NodePrepFinished -pathType Leaf)
{
Write-Host "$NodePrepFinished file exists, assuming successful completion of node prep"
exit 0
}
The stdout.txt of this startup task which the blobxfer was not downloaded will be attached later.
From node agent log, we can see this folder D:\batch\tasks\startup got deleted due to the recovering or GC task. So the blobxfer.exe was there when the node joined this pool first time. but got deleted with this folder D:\batch\tasks\startup. And it will never get downloaded again because of the script shipyard_nodeprep_nativedocker.ps1
Batch Shipyard Version: latest version
Steps to Reproduce
- Use shipyard to create the node and some task
- shipyard will download blobxfer.exe in D:\batch\tasks\startup
- Restart this node or restart the node agent service
- The startup folder D:\batch\tasks\startup will be deleted, and blobxfer.exe will not be downloaded then we can't use shipyard to pull any container image.
Expected Results
The script should download blobxfer.exe again
Actual Results
No.
Redacted Configuration
INSERT RELEVANT YAML FILES
Additional Logs
INSERT ADDITIONAL LOGS HERE
Additonal Comments
Problem Description
Shipyard has the following script in the startup task to prepare the docker images and download blobxfer.exe
https://github.com/Azure/batch-shipyard/blob/ff49d187a4a082305c97e3e26946f6560ea68f56/scripts/windows/shipyard_nodeprep_nativedocker.ps1
If the node gets reboot or unhealthy then healthy, the start task will be triggered again. but it will not download them since the tag file is in place already:
if (Test-Path $NodePrepFinished -pathType Leaf)
{
Write-Host "$NodePrepFinished file exists, assuming successful completion of node prep"
exit 0
}
The stdout.txt of this startup task which the blobxfer was not downloaded will be attached later.
From node agent log, we can see this folder D:\batch\tasks\startup got deleted due to the recovering or GC task. So the blobxfer.exe was there when the node joined this pool first time. but got deleted with this folder D:\batch\tasks\startup. And it will never get downloaded again because of the script shipyard_nodeprep_nativedocker.ps1
Batch Shipyard Version: latest version
Steps to Reproduce
Expected Results
The script should download blobxfer.exe again
Actual Results
No.
Redacted Configuration
Additional Logs
Additonal Comments