azure-cli
azure-cli copied to clipboard
The `az batchai job create` command failed
az feedback
auto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug
When I create a job by executing batchai's test case, I get the following error.
command:
az batchai job create -c cluster -g MyResourceGroup -w workspace -e experiment -n job -f job_with_file_systems.json
Show part results:
"executionInfo": { "endTime": "2021-06-29T02:16:30+00:00", "errors": [ { "category": "UserError", "code": "AZFMountError", "details": [ { "name": "Info", "value": "Could not mount Azure File Share //clitestyosqm33gqdpek7b75.file.core.windows.net/share at /mnt/batch/tasks/shared/LS_root/jobs/workspace/experiment/job/mounts/afs: " }, { "name": "Info", "value": "Failed to setup runtime for job execution: Job environment preparation failed on 10.0.0.4 with err exit status 1." } ], "message": "Unable to mount Azure File" } ], "exitCode": -1, "startTime": "2021-06-29T02:15:45+00:00", "totalJobNodeHours": 0.0125 }, "executionState": "failed",
To Reproduce
#Prepare resource group and storage az storage share create -n share az storage container create -n container az batchai workspace create -g MyResourceGroup -n workspace az batchai cluster create -g MyResourceGroup -w workspace -n cluster -f simple_cluster.json -u DemoUser -k key.txt az batchai experiment create -g MyResourceGroup -w workspace -n experiment az batchai job create -c cluster -g MyResourceGroup -w workspace -e experiment -n job -f job_with_file_systems.json az batchai job wait -g MyResourceGroup -w workspace -e experiment -n job az batchai job show -g MyResourceGroup -w workspace -e experiment -n job
Expected behavior
"executionInfo": { "endTime": "2021-06-29T02:16:30+00:00", "errors": [], "exitCode": 0, "startTime": "2021-06-29T02:15:45+00:00", "totalJobNodeHours": 0.0125 }, "executionState": "successed",
Environment summary
python Windows-10-10.0.19041 Python 3.8.8 Installer: pip
azure-cli 2.23.0
Additional context
Doc: https://docs.microsoft.com/en-us/cli/azure/batchai/job?view=azure-cli-latest#az_batchai_job_create