The Run Bash artifacts use not the latest version of the Custom Script Extension
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- azure
- 领域
- cloud
调研方向
打开 azure-devtestlab/Artifacts/linux-run-bash/Artifactfile.json 并检查 runAzureVMExtension 配置,尤其是 typeHandlerVersion。将其与 issue 中记录的 Custom Script Extension 版本进行比较,然后验证 Run Bash 工件可以下载并执行其脚本,而不会出现报告的扩展版本错误。
由索引模型根据 Issue 内容生成。
描述
I think Run Bash uses a Custom Script Extension, but its latest version is 2.1..
It now specifies 2.0. and is an older version.
I failed to add run bash artifact, I think it's probably due to a mismatch between the versions, so I'd like you to change the version.
azure-devtestlab/Artifacts/linux-run-bash/Artifactfile.json
"runAzureVMExtension": {
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"settings": {
"fileUris": "[parameters('scriptFileUris')]",
"commandToExecute": "[concat('sh', ' ', parameters('scriptToRun'), ' ', parameters('scriptArguments'))]",
"skipDos2Unix": "[parameters('skipDos2Unix')]"
}
}
I checked the version of the Custom Script Extension in the following article:
https://docs.microsoft.com/ja-jp/azure/virtual-machines/extensions/custom-script-linux#property-values
Issue:
I ran the following script in the Run Bash artifact in Azure DevTest Lab and tried to add some extensions to the Linux VM.
Because I wanted to create a VM with an VM extension added using a formula.
az login --identity --username {user-assigned managed identities}
vmname=hostname
az vm extension set -n {extension name} --publisher {publisher name} -g {Resource Group} --vm-name $vmname
(In fact I use multiple az vm extension set commands and add multiple extensions. Also I applied the apt-get artifact to run the az command)
However, the artifact failed with a timeout.
When the az vm extension set uses a custom script extension, its version is 2.1.16.
Run only az command that if no artifacts are used, the execution succeeds.
However, Run Bash uses 2.0.7. After 2.1.16 was uninstalled and 2.0.7 was installed, the script download seems to be failing.
I checked it in the handler.log described below.
/var/log/azure/custom-script/handler.log
- /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.1.6/bin/custom-script-extension disable
time=2022-04-13T07:14:28Z version=v2.1.6/git@fc181d8-dirty operation=disable seq=3 event=start
time=2022-04-13T07:14:28Z version=v2.1.6/git@fc181d8-dirty operation=disable seq=3 event=noop
time=2022-04-13T07:14:28Z version=v2.1.6/git@fc181d8-dirty operation=disable seq=3 event=end - /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.1.6/bin/custom-script-extension update
time=2022-04-13T07:14:30Z version=v2.1.6/git@fc181d8-dirty operation=update seq=3 event=start
time=2022-04-13T07:14:30Z version=v2.1.6/git@fc181d8-dirty operation=update seq=3 event=noop
time=2022-04-13T07:14:30Z version=v2.1.6/git@fc181d8-dirty operation=update seq=3 event=end - /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.1.6/bin/custom-script-extension uninstall
time=2022-04-13T07:14:32Z version=v2.1.6/git@fc181d8-dirty operation=uninstall seq=3 event=start
time=2022-04-13T07:14:32Z version=v2.1.6/git@fc181d8-dirty operation=uninstall seq=3 status="not reported for operation (by design)"
time=2022-04-13T07:14:32Z version=v2.1.6/git@fc181d8-dirty operation=uninstall seq=3 path=/var/lib/waagent/custom-script event="removing data dir" path=/var/lib/waagent/custom-script
time=2022-04-13T07:14:32Z version=v2.1.6/git@fc181d8-dirty operation=uninstall seq=3 path=/var/lib/waagent/custom-script event="removed data dir"
time=2022-04-13T07:14:32Z version=v2.1.6/git@fc181d8-dirty operation=uninstall seq=3 path=/var/lib/waagent/custom-script event=uninstalled
time=2022-04-13T07:14:32Z version=v2.1.6/git@fc181d8-dirty operation=uninstall seq=3 status="not reported for operation (by design)"
time=2022-04-13T07:14:32Z version=v2.1.6/git@fc181d8-dirty operation=uninstall seq=3 event=end - /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/bin/custom-script-extension install
time=2022-04-13T07:14:34Z version=v2.0.7/git@1f9c51c-clean operation=install seq=3 event=start
time=2022-04-13T07:14:34Z version=v2.0.7/git@1f9c51c-clean operation=install seq=3 status="not reported for operation (by design)"
time=2022-04-13T07:14:34Z version=v2.0.7/git@1f9c51c-clean operation=install seq=3 event="created data dir" path=/var/lib/waagent/custom-script
time=2022-04-13T07:14:34Z version=v2.0.7/git@1f9c51c-clean operation=install seq=3 event=installed
time=2022-04-13T07:14:34Z version=v2.0.7/git@1f9c51c-clean operation=install seq=3 status="not reported for operation (by design)"
time=2022-04-13T07:14:34Z version=v2.0.7/git@1f9c51c-clean operation=install seq=3 event=end
Not writing a placeholder status file, already exists: /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/status/3.status - nohup /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/bin/custom-script-extension enable
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=start
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=pre-check
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="comparing seqnum" path=mrseq
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="seqnum saved" path=mrseq
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="reading configuration"
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="read configuration"
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="validating json schema"
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="json schema valid"
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="parsing configuration json"
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="parsed configuration json"
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="validating configuration logically"
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="validated configuration"
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="creating output directory" path=/var/lib/waagent/custom-script/download/3
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="created output directory"
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 files=1
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 event="download start"
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 retry=0 error="unexpected status code: got=403 expected=200"
time=2022-04-13T07:14:36Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 retry=0 sleep=3s
time=2022-04-13T07:14:39Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 retry=1 error="unexpected status code: got=403 expected=200"
time=2022-04-13T07:14:39Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 retry=1 sleep=6s
time=2022-04-13T07:14:46Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 retry=2 error="unexpected status code: got=403 expected=200"
time=2022-04-13T07:14:46Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 retry=2 sleep=12s
time=2022-04-13T07:14:58Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 retry=3 error="unexpected status code: got=403 expected=200"
time=2022-04-13T07:14:58Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 retry=3 sleep=24s
time=2022-04-13T07:15:22Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 retry=4 error="unexpected status code: got=403 expected=200"
time=2022-04-13T07:15:22Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 retry=4 sleep=48s
time=2022-04-13T07:16:10Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 retry=5 error="unexpected status code: got=403 expected=200"
time=2022-04-13T07:16:10Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 retry=5 sleep=1m36s
time=2022-04-13T07:17:46Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 retry=6 error="unexpected status code: got=403 expected=200"
time=2022-04-13T07:17:46Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 file=0 event="download failed" error="failed to download file: unexpected status code: got=403 expected=200"
time=2022-04-13T07:17:46Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="failed to handle" error="processing file downloads failed: failed to download file[0]: failed to down
load file: unexpected status code: got=403 expected=200"
Not writing a placeholder status file, already exists: /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/status/3.status - nohup /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/bin/custom-script-extension enable
time=2022-04-13T07:44:39Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=start
time=2022-04-13T07:44:39Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=pre-check
time=2022-04-13T07:44:39Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="comparing seqnum" path=mrseq
time=2022-04-13T07:44:39Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=exit message="this script configuration is already processed, will not run again"
Not writing a placeholder status file, already exists: /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/status/3.status - nohup /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/bin/custom-script-extension enable
time=2022-04-13T08:44:43Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=start
time=2022-04-13T08:44:43Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=pre-check
time=2022-04-13T08:44:43Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="comparing seqnum" path=mrseq
time=2022-04-13T08:44:43Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=exit message="this script configuration is already processed, will not run again"
Not writing a placeholder status file, already exists: /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/status/3.status - nohup /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/bin/custom-script-extension enable
time=2022-05-23T10:03:17Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=start
time=2022-05-23T10:03:17Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=pre-check
time=2022-05-23T10:03:17Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="comparing seqnum" path=mrseq
time=2022-05-23T10:03:17Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=exit message="this script configuration is already processed, will not run again"
Not writing a placeholder status file, already exists: /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/status/3.status - nohup /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/bin/custom-script-extension enable
time=2022-05-23T10:08:31Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=start
time=2022-05-23T10:08:31Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=pre-check
time=2022-05-23T10:08:31Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="comparing seqnum" path=mrseq
time=2022-05-23T10:08:31Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=exit message="this script configuration is already processed, will not run again"
Not writing a placeholder status file, already exists: /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/status/3.status - nohup /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/bin/custom-script-extension enable
time=2022-05-23T10:23:37Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=start
time=2022-05-23T10:23:37Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=pre-check
time=2022-05-23T10:23:37Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="comparing seqnum" path=mrseq
time=2022-05-23T10:23:37Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=exit message="this script configuration is already processed, will not run again"
Not writing a placeholder status file, already exists: /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/status/3.status - nohup /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.0.7/bin/custom-script-extension enable
time=2022-05-24T00:06:50Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=start
time=2022-05-24T00:06:50Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=pre-check
time=2022-05-24T00:06:50Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event="comparing seqnum" path=mrseq
time=2022-05-24T00:06:50Z version=v2.0.7/git@1f9c51c-clean operation=enable seq=3 event=exit message="this script configuration is already processed, will not run again"
- 主要语言
- PowerShell
- 星标
- 465
- 派生
- 594
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Azure/azure-devtestlab 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
Azure/azure-devtestlab#911 ·
-
难度 5/5 一周以上 新手友好度 35/100
Azure/azure-devtestlab#914 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Azure/azure-devtestlab#912 ·
-
难度 4/5 3-5 天 新手友好度 25/100
Azure/azure-devtestlab#909 ·
-
难度 4/5 3-5 天 新手友好度 35/100
Azure/azure-devtestlab#905 ·
查看 Azure/azure-devtestlab 的全部 Issue
相似的 Issue
-
Updating an `OidcIssuer` without `thumbprints` fails with "You must provide at least one thumbprint"未关闭Bug kind/bug pulumi/pulumi-pulumiservice R1 S1
难度 2/5 1-3 小时 新手友好度 83/100
pulumi/pulumi-pulumiservice#1370 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
Documentation Gemini - Enterprise Level of Effort - Low Priority - Low Scope - Blueprint Scope - Module
难度 2/5 1-3 小时 新手友好度 78/100
google/stellar-engine#401 ·
维护者通常 1 天内回复
-
ECS host-network user check misses UID 0 and root user/group forms可能已有人在做 @leela-padala 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
prowler-cloud/prowler#13281 ·
维护者通常 1 天内回复
-
RemoteFileSystem uploads all files when ignore patterns exclude every entry可能已有人在做 @devin-ai-integration 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复