Azure / Azure/Azure-Spring-Apps

Container deployment fails with Invalid memory quantity '1'

Abierto
#11 4 comentarios 0 reacciones 0 asignados Ver en GitHub
Enhancement Question Tracking
Lenguaje dominante
Sin datos de lenguaje
Estrellas
9
Forks
11
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Describe the bug**
Container deployment with Bicep fails with Invalid memory quantity '1'

I have the Bicep below
```sh
// https://learn.microsoft.com/en-us/azure/templates/microsoft.appplatform/2022-09-01-preview/spring/apps/deployments?pivots=deployment-language-bicep
resource shellcfgtestappdeployment 'Microsoft.AppPlatform/Spring/apps/deployments@2022-09-01-preview' = {
name: 'default'
parent: shellcfgtestapp
sku: {
name: azureSpringAppsSkuName
}
properties: {
active: true
deploymentSettings: {
containerProbeSettings: {
disableProbe: true
}
resourceRequests: {
cpu: any(1)
memory: any(1)
}
}

source: {
version: '1.0.0'
type: 'Container' // Jar, Container or Source https://learn.microsoft.com/en-us/azure/templates/microsoft.appplatform/2022-09-01-preview/spring/apps/deployments?pivots=deployment-language-bicep#usersourceinfo
customContainer: {
/*
args: [
'string'
]*/
command: [
'curl https://asa-petcliasa.svc.azuremicroservices.io/config/'
'curl https://github.com/ezYakaEagle442/spring-petclinic-microservices-config/blob/main/application.yml'
'curl https://github.com/ezYakaEagle442/spring-petclinic-microservices-config/Config'
]
containerImage: 'bash' // This should be in the form of {repository}:{tag} without the server name of the registry
/*imageRegistryCredential: {
password: 'string'
username: 'string'
}*/
languageFramework: 'string'
server: 'https://index.docker.io/v1' // The name of the registry that contains the container image
}
}
}
}

```

It fails with :
```console
ERROR: ***"status":"Failed","error":***"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[***"code":"BadRequest","message":"***\r\n \"error\": ***\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Invalid memory quantity '1'\",\r\n \"target\": \"value\",\r\n \"details\": null\r\n ***\r\n***"***]***
Error: Process completed with exit code 1.
```

**To Reproduce**
Steps to reproduce the behavior:
1. Run [https://github.com/ezYakaEagle442/azure-spring-apps-petclinic-mic-srv/blob/azure/.github/workflows/apply-cfg-test-deployments.yml](https://github.com/ezYakaEagle442/azure-spring-apps-petclinic-mic-srv/blob/azure/.github/workflows/apply-cfg-test-deployments.yml)

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
N/A

**Additional context**

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Comienza con .github/workflows/apply-cfg-test-deployments.yml y el recurso Microsoft.AppPlatform/Spring/apps/deployments mostrado en la incidencia. Reproduce el deployment e inspecciona cómo se pasa deploymentSettings.resourceRequests.memory a Azure Spring Apps; se considera terminado cuando el deployment del contenedor se completa sin el error Invalid memory quantity.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
azure, docker, spring-boot
Área
cloud, devops
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.