-
Notifications
You must be signed in to change notification settings - Fork 642
Closed
Description
When the /data directory already exists and the run.sh script is executed, it skips creating the crunch-pvc resource. This in turn will cause the pgo create cluster testcluster to fail when attempting to attach /pgdata
kubectl get pods
NAME READY STATUS RESTARTS AGE
postgres-operator-3650826749-59nxb 1/1 Running 0 2h
testcluster-4275003772-ddfwn 0/1 ContainerCreating 0 2h
testcluster-replica-4058347393-88mhd 0/1 ContainerCreating 0 2h
testcluster-replica-4058347393-q19v2 0/1 ContainerCreating 0 2h
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
2h 32s 23 kubelet, minikube Warning FailedMount Unable to mount volumes for pod "testcluster-4275003772-ddfwn_default(d2a2f3a7-4d68-11e7-a09f-080027d45d33)": timeout expired waiting for volumes to attach/mount for pod "default"/"testcluster-4275003772-ddfwn". list of unattached/unmounted volumes=[pgdata]
Based on kubelet logs, the crunchy-pvc is not found:
Jun 10 02:02:05 minikube localkube[3372]: E0610 02:02:05.042059 3372 desired_state_of_world_populator.go:259] Error processing volume "pgdata" for pod "testcluster-replica-4058347393-88mhd_default(d2a6ecc5-4d68-11e7-a09f-080027d45d33)": error processing PVC "default"/"crunchy-pvc": failed to fetch PVC default/crunchy-pvc from API server. err=persistentvolumeclaims "crunchy-pvc" not found
Jun 10 02:02:08 minikube localkube[3372]: E0610 02:02:08.062501 3372 desired_state_of_world_populator.go:259] Error processing volume "pgdata" for pod "testcluster-4275003772-ddfwn_default(d2a2f3a7-4d68-11e7-a09f-080027d45d33)": error processing PVC "default"/"crunchy-pvc": failed to fetch PVC default/crunchy-pvc from API server. err=persistentvolumeclaims "crunchy-pvc" not found
Metadata
Metadata
Assignees
Labels
No labels