The Run Bash artifacts use not the latest version of the Custom Script Extension
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- azure
- Área
- cloud
Línea de trabajo
Abre azure-devtestlab/Artifacts/linux-run-bash/Artifactfile.json e inspecciona la configuración de runAzureVMExtension, especialmente typeHandlerVersion. Compárala con la versión de la Custom Script Extension documentada en el issue y, después, verifica que el artefacto Run Bash pueda descargar y ejecutar su script sin que se produzca el error de versión de la extensión informado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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"
- Lenguaje dominante
- PowerShell
- Estrellas
- 465
- Forks
- 594
- Merge medio
- 1 d 17 h
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Azure/azure-devtestlab
-
CopyAzVHDFromVMToLab.ps1 - warn that source VM will be stopped for as long as the copy takesAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Azure/azure-devtestlab#911 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Azure/azure-devtestlab#914 ·
-
Node 10 Deprecation WarningAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Azure/azure-devtestlab#912 ·
-
windows-domain-join-newAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Azure/azure-devtestlab#909 ·
-
Copy custom images across DTLAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Azure/azure-devtestlab#905 ·
Todos los issues de Azure/azure-devtestlab
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
[BUG] OpenSearch domain endpoint includes a URI scheme and breaks standard Terraform consumersAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
floci-io/floci#7707 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
CRT transfer manager mutates the caller's ExtraArgs, so reusing the dict fails on the next uploadAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
boto/s3transfer#433 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
S3 input fails in Docker image: DuckDB can't find home directoryPosiblemente ocupada @jnioche la tomó hoy. Abiertobug docker reporting
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DigitalPebble/spruce#315 ·
Los mantenedores suelen responder en 1 día