-
Notifications
You must be signed in to change notification settings - Fork 33
vpc acadia profile support #221
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
Conversation
Signed-off-by: Arashad Ahamad <[email protected]>
Signed-off-by: Arashad Ahamad <[email protected]>
Signed-off-by: Arashad Ahamad <[email protected]>
Signed-off-by: Arashad Ahamad <[email protected]>
Signed-off-by: Arashad Ahamad <[email protected]>
Following tests has been done:
|
@@ -128,6 +128,9 @@ const ( | |||
|
|||
// MinimumSDPVolumeSizeInBytes ... This is minimum size require for sdp (acadia profile) | |||
MinimumSDPVolumeSizeInBytes int64 = 1 * utils.GiB | |||
|
|||
// Throughput ... | |||
Throughput = "throughput" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to call throughput on CSI side and bandwidht on RIAAS side ? Do we need to keep it same ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sameshai , actually I align with volumeattributeclass and what k8s talk about so it looks we need to have this mapping as k8s always talk about throughput
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -39,5 +42,9 @@ func (msg Message) Error() string { | |||
|
|||
// Info ... | |||
func (msg Message) Info() string { | |||
return fmt.Sprintf("{Code:%s, Type:%s, Description:%s, BackendError:%s, RC:%d}", msg.Code, msg.Type, msg.Description, msg.BackendError, msg.RC) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test this for couple of errors like invalid iops , throughput and see the format of error message your are getting. Test 2 scenarios one actual RIAAS error and other is the error from Driver itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sameshai I verified both tests, here is the results
Invalid iops:
Warning ProvisioningFailed 68s vpc.block.csi.ibm.io_ibm-vpc-block-csi-controller-6d55756ddf-pg8bh_7ecb9acb-25a6-423c-9b2e-3e111a2357e5 failed to provision volume with StorageClass "ibmc-vpc-block-sdp": rpc error: code = Internal desc = {RequestID: c12e52e9-6a96-43f5-84cb-6e84cc33c987 , Code: InternalError, Description: Internal error occurred%!(EXTRA string=creation), BackendError: {Trace Code:c12e52e9-6a96-43f5-84cb-6e84cc33c987, The volume profile specified in the request is not valid for the provided capacity and/or IOPS. Please check .Failed to create volume with the storage provider}, Action: Please check 'BackendError' tag for more details}
Invalid throughput/bandwidth:
Warning ProvisioningFailed 58s vpc.block.csi.ibm.io_ibm-vpc-block-csi-controller-6d55756ddf-pg8bh_7ecb9acb-25a6-423c-9b2e-3e111a2357e5 failed to provision volume with StorageClass "ibmc-vpc-block-sdp": rpc error: code = Internal desc = {RequestID: a2326fa7-d1ff-46a7-8ccf-1964fe3e023d , Code: InternalError, Description: Internal error occurred%!(EXTRA string=creation), BackendError: {Trace Code:a2326fa7-d1ff-46a7-8ccf-1964fe3e023d, The volume profile specified in the request is not valid for the provided capacity and/or Bandwidth. Please check .Failed to create volume with the storage provider}, Action: Please check 'BackendError' tag for more details}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Post the sample error messages we get today as we are including new interface changes but not the csi common
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: arahamad, prankulmahajan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
new vpc profile sdp support