-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
OCP cluster (at least usually) don't give permissions to even list persistentvolumes.
This way, pg clusters go in "SyncFailed" status after 30 min (default resync_period ).
Workaround is to make resync_period a big value, but not desired.
Proper solution would be allow disable of PV resize or shift to checking PVC instead (like PR #958 does).
Here is the error before PR #958 .
time="2020-06-12T15:44:40Z" level=debug msg="syncing persistent volumes" cluster-name=namespace/postgres-operator-cluster pkg=cluster
time="2020-06-12T15:44:40Z" level=warning msg="error while syncing cluster state: could not sync persistent volumes: could not compare size of the volumes: could not list persistent volumes: could not get PersistentVolume: persistentvolumes \"pvc-7742222b-cbde-4d32-b303-8c5deb1b9e58\" is forbidden: User \"system:serviceaccount:namespace:postgres-operator\" cannot get resource \"persistentvolumes\" in API group \"\" at the cluster scope" cluster-name=namespace/postgres-operator-cluster pkg=cluster
Metadata
Metadata
Assignees
Labels
No labels