Pod stopped working with error the resourceVersion for the provided watch is too old

10/5/2018

I deployed pod in OpenShift cluster, it stops processing PVC's after some time and it is giving following statements in log:

watch of *v1.PersistentVolume ended with:The resourceVersion for the provided watch is too old.
watch of *v1.StorageClass ended with: The resourceVersion for the provided watch is too old.
watch of *v1.PersistentVolumeClaim ended with: The resourceVersion for the provided watch is too old.

I wanted to know in which case above error occures and how to handle it.

-- Nilesh Salunkhe
kubernetes
openshift

1 Answer

3/20/2019

It's informational as suggested in your question's comments:

The warning is issued as a result of watch being restarted, which happens when etcd drops the connection and we relist the resources. This warning is not fatal and informs the user that the watchers are operating properly. If customer won't see this warning in logs, that will be somewhat concerning and might suggest that their watches/cache is not healthy.

https://bugzilla.redhat.com/show_bug.cgi?id=1573460

-- Rene Romero Benavides
Source: StackOverflow