Azure / Azure/Azure-Spring-Apps

Container deployment fails with Invalid memory quantity '1'

オープン
#11 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
Enhancement Question Tracking
主要言語
言語のデータがありません
スター
9
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

説明

**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**

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

.github/workflows/apply-cfg-test-deployments.yml と、issue に示されている Microsoft.AppPlatform/Spring/apps/deployments リソースから始めます。deployment を再現し、deploymentSettings.resourceRequests.memory が Azure Spring Apps にどのように渡されるかを確認します。Invalid memory quantity エラーなしでコンテナーの deployment が完了すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, docker, spring-boot
領域
cloud, devops
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。