sodafoundation / strato

SODA Strato (Multi-cloud) project provides a cloud vendor agnostic data management for hybrid cloud, intercloud or intracloud. This project is renamed as 'Strato'
Apache License 2.0
233 stars 329 forks source link

[AWS Block Support] Invalid Error message in the response for the failed operations #1116

Closed himanshuvar closed 4 years ago

himanshuvar commented 4 years ago

Issue/Feature Description: AWS Block Creation is failing with inValid Error Response to the client. image

Error Logs:

}%!(EXTRA *awserr.requestError=InvalidParameterValue: The volume size is invalid for gp2 volumes: 0 GiB. gp2 volumes must be at least 1 GiB in size. Please specify a volume size above the minimum limit.
        status code: 400, request id: c9b73815-3530-48af-8a26-5f53138a7049)
[2020-09-28T13:30:51+05:30] [ERROR] [/root/gopath/src/github.com/opensds/multi-cloud/contrib/datastore/block/aws/aws.go] [aws.(*AwsAdapter).CreateVolume():178] [PID:1] InvalidParameterValue: The volume size is invalid for gp2 volumes: 0 GiB. gp2 volumes must be at least 1 GiB in size. Please specify a volume size above the minimum limit.
        status code: 400, request id: c9b73815-3530-48af-8a26-5f53138a7049
[2020-09-28T13:30:51+05:30] [ERROR] [/root/gopath/src/github.com/opensds/multi-cloud/block/pkg/service/service.go] [service.(*blockService).CreateVolume():166] [PID:1] received error in creating volume at backend , error: Get object from backend failed.

Why this issue to fixed / feature is needed(give scenarios or use cases): To support AWS Block for Negative Scenarios

How to reproduce, in case of a bug:

Other Notes / Environment Information: (Please give the env information, log link or any useful information for this issue)

kumarashit commented 4 years ago

Closing as fixed