Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

blobxfer.exe is missing #358

Description

@adamzhangsm

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

  1. Use shipyard to create the node and some task
  2. shipyard will download blobxfer.exe in D:\batch\tasks\startup
  3. Restart this node or restart the node agent service
  4. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions