-
Notifications
You must be signed in to change notification settings - Fork 69
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
chore(log): add cspc information in error event #68
chore(log): add cspc information in error event #68
Conversation
@@ -361,7 +361,12 @@ func (c *CVCController) distributeCVRs( | |||
} | |||
|
|||
if len(usablePoolList.Items) < pendingReplicaCount { | |||
return errors.New("not enough pools available to create replicas") | |||
return errors.Errorf( | |||
"not enough pools available are available of CSPC: %s usable pool count %d to create %d replicas", |
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.
available repeated ?
change to --> "not enough pools are available of provided CSPC: " ?
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.
How about this?
"not enough pools are available of provided CSPC: %s usable pool count: %d pending replica count: %d"```
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.
available repeated ? change to --> "not enough pools are available of provided CSPC: " ?
I'm getting this exact error, the only place ive found on github and google with these words is here, i cant find a fix!
Any thoughts ?
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
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
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Signed-off-by: mittachaitu sai.chaithanya@mayadata.io
This PR adds the CPSC information in the error log. When the user Provision a volume with storage replciaCount > no.of available pools (or) when the user mentioned a typo of CSPC name then event will be shown.