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

Csm object fails during down scale #245

Merged
merged 1 commit into from
May 19, 2023

Conversation

rajendraindukuri
Copy link
Collaborator

@rajendraindukuri rajendraindukuri commented May 18, 2023

Description

Fix for CSM object getting into failed state when we scale down deployments in csm-operator

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
dell/csm#816

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have maintained backward compatibility

How Has This Been Tested?

Tested this specific scenario by scaling down and scaling up the deployment replicas. Also ran sanity jobs on k8s 1.27 and the results look good
Scaling down to 1
image

Scaling up to 2
image

Copy link
Contributor

@rensyct rensyct left a comment

Choose a reason for hiding this comment

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

Please sign the commit

if daemonSetErr != nil && controllerErr != nil {
err = fmt.Errorf("ControllerError: %s, Daemonseterror: %s", controllerErr.Error(), daemonSetErr.Error())
log.Infof("calculate overall error msg [%s]", err.Error())
log.Infof("calculate overall Daemonseterror msg [%s]", daemonSetErr.Error())
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the log statement be Daemonset error msg?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed

@rajendraindukuri rajendraindukuri force-pushed the csm_object_fails_during_down_scale branch from f49ba8d to da73817 Compare May 19, 2023 09:51
@rajendraindukuri rajendraindukuri force-pushed the csm_object_fails_during_down_scale branch from da73817 to 4d087d4 Compare May 19, 2023 09:58
@rajendraindukuri rajendraindukuri requested a review from rensyct May 19, 2023 09:59
@rajendraindukuri rajendraindukuri merged commit 4c0801b into main May 19, 2023
@rensyct rensyct deleted the csm_object_fails_during_down_scale branch July 17, 2023 12:15
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