The Run Bash artifacts use not the latest version of the Custom Script Extension
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- azure
- Lĩnh vực
- cloud
Hướng nghiên cứu
Mở azure-devtestlab/Artifacts/linux-run-bash/Artifactfile.json và kiểm tra cấu hình runAzureVMExtension, đặc biệt là typeHandlerVersion. So sánh cấu hình này với phiên bản Custom Script Extension được ghi lại trong issue, sau đó xác minh rằng artifact Run Bash có thể tải xuống và thực thi script của nó mà không gặp lỗi phiên bản extension đã được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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"
- Ngôn ngữ chính
- PowerShell
- Star
- 465
- Fork
- 594
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure/azure-devtestlab
-
CopyAzVHDFromVMToLab.ps1 - warn that source VM will be stopped for as long as the copy takesĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Azure/azure-devtestlab#911 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Azure/azure-devtestlab#914 ·
-
Node 10 Deprecation WarningĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Azure/azure-devtestlab#912 ·
-
windows-domain-join-newĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Azure/azure-devtestlab#909 ·
-
Copy custom images across DTLĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Azure/azure-devtestlab#905 ·
Tất cả issue của Azure/azure-devtestlab
Issue tương tự
-
enhancement new
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
sassoftware/viya4-iac-aws#450 ·
-
Library Request: highspyĐang mởlibrary-request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
QuantConnect/Lean#10034 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement security-hardening
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
gke-labs/kube-agents#4819 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Sh1n1230/SpotifyEmbedded#501 ·
Maintainer thường phản hồi trong vòng 1 ngày