-
Notifications
You must be signed in to change notification settings - Fork 912
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
rb created by ResourceDetector is overwriten by DependenciesDistributor #5929
Comments
Hi @lianzhanbiao, thank you for your feedback. Did you encounter this error by chance, or did it happen every time you test it? |
I encounter this error by chance. I reviewed the code again, and it seems that the setupwithmanager function in DependenciesDistributor shouldn't affect the deployment's rb, but should only affect dependencies like the deployment's volume? I am confused about the phenomenon described above... |
Let me try and have a see. |
Hi @lianzhanbiao, sorry for reply late. You added the log and then it recurred, and it seems that this problem occurs frequently. What is the interval between steps 3 and 4? Besides, do you share your journal? Which version is your specific version? |
I1205 16:17:40.993931 77524 detector.go:837] set replicas for workload(f8-btif-3vqrriuz-0-preempt-online-126168), replicas=0
I1205 16:17:41.003928 77524 detector.go:837] set replicas for workload(f8-btif-3vqrriuz-0-preempt-online-126168), replicas=0
I1205 16:17:41.029818 77524 detector.go:837] set replicas for workload(f8-btif-3vqrriuz-0-preempt-online-126168), replicas=0
I1205 16:17:41.033789 77524 detector.go:837] set replicas for workload(f8-btif-3vqrriuz-0-preempt-online-126168), replicas=5 Some logs about my problem is above. |
Let's keep this issue open and see if we can get similar questions.
The spec and status are not always consistent. The status changes based on the status of the member cluster and takes a certain period of time to check the content of the spec. Even when the cluster is faulty, the status is inconsistent for a long time. |
What happened:
When using Karmada, I discovered that in certain scenarios, the
ResourceBinding
created by theResourceDetector
has its replicas modified when updated by theDependenciesDistributor
. The specific process is as follows:propagateDeps: true
.replicas=0
and add apersistentVolumeClaim
volume.replicas=5
.Upon checking the logs, I found that the
spec.replicas
of theResourceBinding
changed in the sequence 0->5->0. Ultimately, this value was inconsistent with the Deployment.What you expected to happen:
I reviewed the relevant code and found that when the
DependenciesDistributor
updates theResourceBinding
, it does not set the replicas parameter for theResourceBinding
:I would like to confirm if this could be the cause of the phenomenon described above?
How to reproduce it (as minimally and precisely as possible):
Environment:
The text was updated successfully, but these errors were encountered: