vbehar / openshift-git

Import/Export OpenShift resources from/to a Git repository
Apache License 2.0
8 stars 3 forks source link

Failed to watch <nil>: the server could not find the requested resource #4

Open varac opened 6 years ago

varac commented 6 years ago

I running openshift-git on openshift for exporting resources from the whole cluster. First of all, it works !

sh-4.2$ ps aux | more
USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
openshift-git export ns,pv,scc,users,groups,bc,dc,rc,pods,is,svc,routes,templates,secrets,limits,quota,pvc,sa,configmaps,endpoints,imagestreamtags,limitranges,projects,replicationcontrollers,resourcequotas,rolebindings,roles,services --watch --all-namespaces --repository-path=/var/repository --repository-remote=... --repository-branch=master --repository-user-name=OpenShift --repository-user-email=openshift@example.com --repository-pull-period=2m --repository-push-period=2m --resync-period=1h --selector=git-export notin (ignore) --format=yaml --v=0

But the logs get flooded with these messages (to the extend that I can't see the logs in the console anymore, I guess because the buffer has grown toy big ?):

reflector.go:271] pkg/openshift/controller.go:59: Failed to watch <nil>: the server could not find the requested resource

Any idea what this is ?

vbehar commented 6 years ago

ok so the error is coming from https://github.com/kubernetes/kubernetes/blob/4a3f9c5b19c7ff804cbc1bf37a15c044ca5d2353/pkg/client/cache/reflector.go#L271 but I don't have any idea of the reason for now...