zalando / zalando/postgres-operator

chown: changing ownership of '/home/postgres/pgdata/pgroot/data': Operation not permitted when using NFS

Open
#2,325 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
5.2k
Forks
1.1k
Avg merge
2d 16h
Merged PRs (30d)
3

Description

  • Which image of the operator are you using? registry.opensource.zalan.do/acid/postgres-operator:v1.10.0
  • Where do you run it? - Bare Metal K8s
  • Are you running Postgres Operator in production? no
  • Type of issue? [Bug report]

I just tried a minimal cluster:

helm repo add postgres-operator-charts https://opensource.zalando.com/postgres-operator/charts/postgres-operator -n postgres-operator
helm install postgres-operator postgres-operator-charts/postgres-operator -n postgres-operator
curl https://raw.githubusercontent.com/zalando/postgres-operator/master/manifests/minimal-postgres-manifest.yaml | kubectl apply -n postgres-operator -f -

The commands above work fine using EKS in AWS. But when I try to create it in bare-metal k8s, it throws permission errors:

chown: changing ownership of '/home/postgres/pgdata/pgroot/data': Operation not permitted
...
chown: changing ownership of '/home/postgres/pgdata/pgroot': Operation not permitted

I can use the NFS with other postgresql solutions, e.g. with bitnami's helm chart. How could I debug this?
I'm using this NFS provisioner without any custom settings (except for setting NFS server IP and path): https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure from the minimal-postgres-manifest.yaml on bare-metal Kubernetes and compare it with the working EKS case. Inspect the nfs-subdir-external-provisioner setup and the reported chown errors; done means identifying the cause and documenting a verified configuration or limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, kubernetes, postgresql
Domain
databases, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.