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

made sure that manager is started before staleController #6645

Conversation

DarkInfernus
Copy link

Bug fix for the issue #6152

@antoninbas
Copy link
Contributor

@DarkInfernus do you have logs from before and after the change, so we can confirm that the fix is valid?

@DarkInfernus
Copy link
Author

Hi @antoninbas actually this is my first ever open source contribution, my pr is failing multiple checks, actually i did not check for the previous logs and after logs. I just looked at the code and as per my knowledge of go lang i think this error is happening because we are starting the go routine for running stalecontroller before starting the manager. So i thought it to be intuitive to start the go routine later.

@DarkInfernus
Copy link
Author

But final call should be made after checking the before logs and after logs.For that I would need to set up the project locally but unfortunately I don't know how to do that.
Can you guide me to the correct resource for doing that?
Also can you tell me when this error is triggered so that i can stimulate the situation locally after setting up the project.

@antoninbas
Copy link
Contributor

@DarkInfernus The only way to fix this issue is to first reproduce it locally, understand the code and make the necessary changes, then confirm the issue has been resolved by testing the updated code.
The issue can be reproduced by following the steps in the multi-cluster documentation: https://github.com/antrea-io/antrea/blob/main/docs/multicluster/quick-start.md
I have to warn you that while the fix itself is probably very simple, coming up with the right fix and validating it may not be trivial and may be a bit time-consuming.


klog.InfoS("Leader MC Controller Starting Manager")
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
return fmt.Errorf("error running Manager: %v", err)
}

go staleController.Run(stopCh)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi, I don't think this change will fix the issue, please check my comment on the issue #6152 (comment).
Even we started this after the Controller Manager, it doesn't guarantee that caches are ready before it.

Copy link
Author

Choose a reason for hiding this comment

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

Ok , i will make the required changes in the code and raise another pr.

This pull request was closed.
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