-
Notifications
You must be signed in to change notification settings - Fork 68
[VirtualCluster] Error creating: failed to list services from cluster xxxxx cache: service is not ready #325
Comments
Hi, @LuBingtan. Which version of virtual cluster and root cluster are you running? And I did not get this part "There is apparently no services in that namespace". This doesn't make sense, it should have at least kubernetes.default.svc. |
Hi, I have retried and found the root cause might be that the
It looks like @wondywang What do you think? If this thought sounds ok, I can help to fix. And FYI
serverVersion:
buildDate: "2022-09-22T05:28:27Z"
compiler: gc
gitCommit: 5835544ca568b757a8ecae5c153f317e5736700e
gitTreeState: clean
gitVersion: v1.25.2
goVersion: go1.19.1
major: "1"
minor: "25"
platform: linux/arm64
serverVersion:
buildDate: "2022-08-17T18:23:45Z"
compiler: gc
gitCommit: a43c0904d0de10f92aa3956c74489c45e6453d6e
gitTreeState: clean
gitVersion: v1.22.13
goVersion: go1.16.15
major: "1"
minor: "22"
platform: linux/arm64 |
thanks @LuBingtan PTAL @Fei-Guo @christopherhein , It seems that it is indeed necessary to reset the |
Yes, looks like a bug. @wondywang can you fix it? |
Agreed, seems like a great catch. thanks! |
ok, i will |
What steps did you take and what happened:
I followed the vc demo doc here to create a virtual cluster.
But when I tried to create a pod in the vc. The pod is always pending.
Try to describe the pod in vc
output:
What did you expect to happen:
The pod should be running.
Anything else you would like to add:
It seems that the error occurs here: https://github.com/kubernetes-sigs/cluster-api-provider-nested/blob/4cc1422fd340d19c0d21b4f336dc664e45a12954/virtualcluster/pkg/syncer/resources/pod/dws.go#L334
Why do we need to check services in
pPod.Namespace
? There is apparently no services in that namespace unless I manually create one, because that namespace is just created by the syncer.Is this a bug or is there anything I missed?
Environment:
kubectl version
): 1.25.2/etc/os-release
):/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api-provider-nested/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: