Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-3298

Give an informative error if fsGroup is not define when trying to setup backup

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 2.6.1
    • None
    • operator
    • None
    • Pre-Christmas Completions
    • 1

    Description

      When I try to follow the 2.6.0 documentation for enabling backup, I'm seeing the following errors:

       

      kubectl logs pods/my-backup-full-bk2vh
      Traceback (most recent call last):
        File "/usr/local/bin/backup.py", line 1243, in <module>
          Backup(context).run()
        File "/usr/local/bin/backup.py", line 379, in run
          self._setup_logging()
        File "/usr/local/bin/backup.py", line 1151, in _setup_logging
          os.makedirs(self.context.log_path, exist_ok=True)
        File "/usr/lib/python3.8/os.py", line 223, in makedirs
          mkdir(name, mode)
      PermissionError: [Errno 13] Permission denied: '/data/scriptlogs' 

      Steps:
      1) bin/cao create backup

      2) Enable automatic backup

      apiVersion: couchbase/v2
      kind: CouchbaseCluster
      spec:
      backup:
      managed: true
      image: couchbase/operator-backup:1.3.2
      serviceAccountName: couchbase-backup

      3) Create a yaml with an immediate backup

      apiVersion: couchbase.com/v2
      kind: CouchbaseBackup
      metadata:
      name: my-backup
      spec:
      strategy: immediate_full
      size: 20Gi

       

       

      Justin Ashworth 

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            usamah.jassat Usamah Jassat
            gilad.kalchheim Gilad Kalchheim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty