Skip to content

CIFS Backup Repo not working since Update 5.8.0 #4156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MSandro opened this issue Apr 8, 2025 · 5 comments · May be fixed by #4166
Open

CIFS Backup Repo not working since Update 5.8.0 #4156

MSandro opened this issue Apr 8, 2025 · 5 comments · May be fixed by #4166
Labels

Comments

@MSandro
Copy link

MSandro commented Apr 8, 2025

Overview

I've updated PGO to 5.8.0, now all my Repo-Hosts are upgrading and are not able to come up because of the pgbackrest-log-dir Init-Container.

chmod: changing permissions of '/pgbackrest/repo1/log': Operation not permitted

I've viewed the command and noticed 0775 permissions are trying to apply on /pgbackrest/repo1/log
Now I have created a new CIFS Volume with the exact permissions set to 0775, but still the same problem.

Environment

Please provide the following details:

  • Platform: Kubernetes RKE2
  • Platform Version: v1.32.3
  • PGO Image Tag: ubi9-5.8.0-0
  • Postgres Version: 17.4
  • Storage: vsphere-csi for data, and SMB / CIFS for Backups

Steps to Reproduce

REPRO

  1. install PGO 5.8.0
  2. create a CIFS/SMB StorageClass
  3. apply
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
  name: test
  namespace: default
spec:
  backups:
    pgbackrest:
      global:
        repo1-retention-archive: '1'
        repo1-retention-diff: '1'
        repo1-retention-full: '1'
        repo1-type: cifs
      repos:
        - name: repo1
          schedules:
            full: 0 1 * * *
          volume:
            volumeClaimSpec:
              accessModes:
                - ReadWriteOnce
              resources:
                requests:
                  storage: 10Gi
              storageClassName: smb
  instances:
    - dataVolumeClaimSpec:
        accessModes:
          - ReadWriteOnce
        resources:
          requests:
            storage: 5Gi
      name: ''
      replicas: 1
  port: 5432
  postgresVersion: 17
  users:
    - databases:
        - test
      name: test
  1. database and repo host are not getting ready

EXPECTED

  1. it should work like bevore (PGO 5.7.4)

ACTUAL

  1. container pgbackrest-log-dir: chmod: changing permissions of '/pgbackrest/repo1/log': Operation not permitted
@andrewlecuyer
Copy link
Collaborator

Hi @MSandro, thanks for submitting this!

I was able to reproduce your issue, and will now be routing this over to the engineering team for resolution.

@MSandro
Copy link
Author

MSandro commented Apr 9, 2025

Hi @MSandro, thanks for submitting this!

I was able to reproduce your issue, and will now be routing this over to the engineering team for resolution.

perfect thank you very much

@MSandro
Copy link
Author

MSandro commented Apr 20, 2025

The Bug is still present in 5.8.1!

@andrewlecuyer
Copy link
Collaborator

Hi @MSandro, that is correct. We're actively working on a fix for this, but unfortunately it didn't make it into the v5.8.1 release.

We therefore plan to have a fix ready for the next release in May. And in the meantime, I'll note that the v5.7.5 release, which also just came out last week, does not have this issue.

Thanks for you patience with this one, and if you have any questions, please feel free to reach out.

@Alansyf
Copy link

Alansyf commented Apr 23, 2025

I am seeing same issue when use k8s-csi-s3 when i run 5.8.1
Please help release your fix at earliest, thanks.

@cbandy cbandy linked a pull request Apr 29, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants