Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance error handling for list disks #1295

Merged
merged 1 commit into from
Feb 21, 2023
Merged

Conversation

seokho-son
Copy link
Member

Fix #1294

테스트 과정

  1. CB-TB를 통해 (AWS) Disk 생성
  2. AWS 콘솔에서 볼륨 임의 삭제
  3. CB-TB를 통해 Disk 리스트 조회

'GET' 'http://localhost:1323/tumblebug/ns/ns01/resources/dataDisk'

{
  "dataDisk": [
    {
      "id": "aws-ap-southeast-1-datadisk",
      "name": "aws-ap-southeast-1-datadisk",
      "connectionName": "aws-ap-southeast-1",
      "diskType": "standard",
      "diskSize": "77",
      "cspDataDiskId": "vol-0993959da05d4ae08",
      "cspDataDiskName": "ns01-aws-ap-southeast-1-datadisk",
      "status": "Failed",
      "associatedObjectList": [],
      "createdTime": "2023-02-21T02:13:42.538Z",
      "keyValueList": [
        {
          "Key": "Encrypted",
          "Value": "false"
        },
        {
          "Key": "MultiAttachEnabled",
          "Value": "false"
        }
      ],
      "description": "string",
      "systemMessage": "{\"message\":\"InvalidVolume.NotFound: The volume 'vol-0993959da05d4ae08' does not exist.\\n\\tstatus code: 400, request id: a3b66639-1b7b-412b-986e-381582718969\"}\n"
    }
  ]
}

(조회에) 오류가 있는 Disk 리소스 정보도 함께 제공

  • "status": "Failed"
  • "systemMessage": "{"message":"InvalidVolume.NotFound: The volume 'vol-0993959da05d4ae08' does not exist.\n\tstatus code: 400, request id: a3b66639-1b7b-412b-986e-381582718969"}\n"

@seokho-son
Copy link
Member Author

/approve

@seokho-son seokho-son merged commit 888598d into cloud-barista:main Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to compensate for failed data disk list lookup
1 participant