JobPerparationTask 중에 파일 공유 (BLOB 저장소 아님)를 마운트하려고합니다. 내 노드 OS는 Ubuntu 16.04입니다.Azure 배치 JobPreparationTask가 "UserError"와 함께 실패합니다.
job_user = batchmodels.AutoUserSpecification(
scope=batchmodels.AutoUserScope.pool,
elevation_level=batchmodels.ElevationLevel.admin)
start_task = batch.models.JobPreparationTask(command_line=start_commands, user_identity=batchmodels.UserIdentity(auto_user=job_user))
end_task = batch.models.JobReleaseTask(command_line=end_commands,user_identity=batchmodels.UserIdentity(auto_user=job_user))
job = batch.models.JobAddParameter(
job_id,
batch.models.PoolInformation(pool_id=pool_id),job_preparation_task=start_task, job_release_task=end_task)
이 start_commands
및 end_commands
잘하지만, 사용자 권한에 문제가 ...
이렇게하려면, 나는이 다음을 수행하고 stderr.txt
또는 stdout.txt
파일에 있습니다. 로그가 표시되지 않습니다. (그 위치는?) 내가 찾을 수있는 메시지는 다음을 보여주는 메시지입니다.
Exit code
1
Retry count
0
Failure info
Category
UserError
Code
FailureExitCode
Message
The task exited with an exit code representing a failure
Details
Message: The task exited with an exit code representing a failure
매우 자세한 오류 메시지!
어쨌든 AutoUserScope.oool
을 AutoUserScope.task
으로 변경해 보았지만 변경 사항은 없습니다.
누구든지 아이디어가 있습니까?