-
Notifications
You must be signed in to change notification settings - Fork 406
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
[BUG] Yurthub cloud mode is not working as intended. #600
Labels
kind/bug
kind/bug
Comments
@DrmagicE Thank you for raising issue.
|
rambohe-ch
added a commit
to rambohe-ch/openyurt
that referenced
this issue
Nov 18, 2021
--> solution: service topology filter will list/watch node from kube-apsierver if working mode is cloud fixes openyurtio#600 2. optimize shared informers registeration. extract all of informers registeration and make a comman function named registerInformers
MrGirl
pushed a commit
to MrGirl/openyurt
that referenced
this issue
Mar 29, 2022
openyurtio#607) --> solution: service topology filter will list/watch node from kube-apsierver if working mode is cloud fixes openyurtio#600 2. optimize shared informers registeration. extract all of informers registeration and make a comman function named registerInformers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
The Yurthub "working mode" feature was introduced via #483 , which distinguishes cloud node and edge node by setting the
--working-mode
flag of yurthub tocloud
andedge
respectively.This feature aims to enable service topology feature in cloud side, as a prerequisite for enabling yurt-tunnel DNS mode.
What happened
When Yurthub is running in cloud mode, the local cache manager is disabled, which means no data will be written to the local disk. However, the
servicetopology
filter (and maybe other components too) in yurthub will try to read data from disk cache:openyurt/pkg/yurthub/filter/servicetopology/filter.go
Lines 127 to 136 in 2369aef
The
ssf.nodeSynced
in the above code will try to sync node state from the local disk and hang forever.openyurt/pkg/yurthub/filter/servicetopology/filter.go
Lines 91 to 102 in 2369aef
How to fix
We should check all usages of the
StorageWrapper
interface, and make them compatible with yurthub in cloud mode.openyurt/pkg/yurthub/cachemanager/storage_wrapper.go
Lines 35 to 46 in 709cd7b
A Temporary Solution
For users who encounter the same problem, here is a temporary solution:
/kind bug
The text was updated successfully, but these errors were encountered: