-
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
Csm object fails during down scale #245
Conversation
d6fda51
to
f49ba8d
Compare
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.
Please sign the commit
pkg/utils/status.go
Outdated
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()) |
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.
Should the log statement be Daemonset error msg?
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.
Addressed
f49ba8d
to
da73817
Compare
da73817
to
4d087d4
Compare
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:
Checklist:
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
![image](https://private-user-images.githubusercontent.com/82365588/239231105-f765175c-c47a-4022-ba2e-7d2956f1ad85.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMzY4NzQsIm5iZiI6MTczOTEzNjU3NCwicGF0aCI6Ii84MjM2NTU4OC8yMzkyMzExMDUtZjc2NTE3NWMtYzQ3YS00MDIyLWJhMmUtN2QyOTU2ZjFhZDg1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDIxMjkzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgyZDlmOTU0NTA5N2JlNzY5Mzc1MWI4MjRkYmQyMWQ3NGZhMmZjODllMjI0YjRlMjYyMTM3NWNmZjM3MjM1MWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.rmL8bIEhlOrF8tiitqQroPkrhv2JpydjID7Mys-UDs8)
Scaling down to 1
Scaling up to 2
![image](https://private-user-images.githubusercontent.com/82365588/239231204-8a1a5cac-1466-4a4c-be14-17014f33e6f2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMzY4NzQsIm5iZiI6MTczOTEzNjU3NCwicGF0aCI6Ii84MjM2NTU4OC8yMzkyMzEyMDQtOGExYTVjYWMtMTQ2Ni00YTRjLWJlMTQtMTcwMTRmMzNlNmYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDIxMjkzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYyMGY2ODU3MmZiYTJjNWVmZjkzNjQ4NDEwMWE0NGY3ZjVmZTA0ZWM3MDZlODdmZDM1YWU4NWI2NzY5NzQwNTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OaM-2K0g7kVnIfOCGnq2QuexrIoYqZLN42APAnqJMS8)