You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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
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
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
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
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
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
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
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
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
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
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
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
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"
The text was updated successfully, but these errors were encountered: