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

chore(log): add cspc information in error event #68

Merged
merged 1 commit into from
May 12, 2020

Conversation

mittachaitu
Copy link
Contributor

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.

@@ -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",
Copy link
Contributor

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: " ?

Copy link
Contributor Author

@mittachaitu mittachaitu May 12, 2020

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"```

Copy link

@jadsy2107 jadsy2107 Nov 8, 2022

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>
Copy link
Contributor

@prateekpandey14 prateekpandey14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@prateekpandey14 prateekpandey14 merged commit c080212 into openebs-archive:master May 12, 2020
mittachaitu pushed a commit to mittachaitu/cstor-operators that referenced this pull request May 12, 2020
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
prateekpandey14 pushed a commit that referenced this pull request May 12, 2020
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
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.

3 participants