-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix driver status #491
Fix driver status #491
Conversation
pkg/utils/status.go
Outdated
log.Infof("either controllerReplicas != controllerStatus.Available or nodeStatus is bad") | ||
log.Infof("controllerReplicas", controllerReplicas) | ||
log.Infof("either controllerStatus.Desired != controllerStatus.Available or nodeStatus is bad") | ||
log.Infof("controllerStatus.Desired", controllerStatus.Desired) |
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.
It will be good if log format same as line 429-430 for line 452-453!
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.
updated log messages to match format + make more clear
pkg/utils/status.go
Outdated
@@ -388,7 +403,7 @@ func calculateState(ctx context.Context, instance *csmv1.ContainerStorageModule, | |||
newStatus.State = constants.Succeeded | |||
// TODO: Currently commented this block of code as the API used to get the latest deployment status is not working as expected |
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.
We should clean up commented code and //TODO in PRs.
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.
I guess I'm ok with getting rid of this comment, since we are planning on refactoring status anyway, so we can check on controller-runtime then. Thoughts @JacobGros ?
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.
makes sense to me
if we ever decide we need that code again, we can look at an older operator version
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, thanks
* check condition for ds, check desired for deployment * fix logs, clean up comments --------- Co-authored-by: Jooseppi Luna <jooseppi_luna@dell.com>
* check condition for ds, check desired for deployment * fix logs, clean up comments --------- Co-authored-by: Jooseppi Luna <jooseppi_luna@dell.com>
Description
This PR fixes issue where a failed driver deployment would lead to a misleading CSM status
Fixes:
GitHub Issues
List the GitHub issues impacted by this PR:
Checklist:
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration