-
Notifications
You must be signed in to change notification settings - Fork 625
Closed
Description
Overview
When I create a postgres cluster, the instance crash on initialization. The bug happened only on kubernetes 1.22.
Environment
- Platform:
Kubernetes
on ovh managed kubernetes service - Platform Version: 1.22.2
- PGO Image Tag: ubi8-5.0.4-0
- Postgres Version: 13.5
- Storage: csi-cinder-classic
Steps to Reproduce
REPRO
- Install postgres-operator example with customize
- Install the postgres hippo cluster defined in the example
EXPECTED
- The postgres cluster starts correctely.
ACTUAL
The postgres-startup container failed to init the cluster
Initializing ...
::postgres-operator: uid::26
::postgres-operator: gid::26
::postgres-operator: postgres path::/usr/pgsql-13/bin/postgres
::postgres-operator: postgres version::postgres (PostgreSQL) 13.5
::postgres-operator: config directory::/pgdata/pg13
::postgres-operator: data directory::/pgdata/pg13
install: cannot change permissions of ‘/pgdata/pg13’: No such file or directory
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 40s default-scheduler 0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
Normal Scheduled 38s default-scheduler Successfully assigned postgres-operator/hippo-instance1-mzs4-0 to node-b4422cc5-9dc5-4116-a4d5-a194f6171309
Normal SuccessfulAttachVolume 35s attachdetach-controller AttachVolume.Attach succeeded for volume "ovh-managed-kubernetes-uo1sfr-pvc-729b89ad-c0dd-48f9-847b-36e36d8cc8e6"
Normal Pulled 30s kubelet Successfully pulled image "registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-13.5-0" in 1.260460237s
Normal Pulled 28s kubelet Successfully pulled image "registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-13.5-0" in 1.232337581s
Normal Pulling 15s (x3 over 32s) kubelet Pulling image "registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-13.5-0"
Normal Created 14s (x3 over 30s) kubelet Created container postgres-startup
Normal Started 14s (x3 over 30s) kubelet Started container postgres-startup
Normal Pulled 14s kubelet Successfully pulled image "registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-13.5-0" in 1.226427728s
Warning BackOff 13s (x3 over 27s) kubelet Back-off restarting failed container
Venryx, Leedwing, wenerme, mckunda, camden-lowrance and 3 more