Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-43687

Empty schedule is not supported in the Backup CR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.18
    • Etcd
    • None
    • Moderate
    • None
    • ETCD Sprint 261
    • 1
    • False
    • Hide

      None

      Show
      None

      Description of problem:

         Empty schedule is not supported in the Backup CR. 

      Version-Release number of selected component (if applicable):

          

      How reproducible:

          Always

      Steps to Reproduce:

          1. Apply the below CR
      
      apiVersion: config.openshift.io/v1alpha1
      kind: Backup
      metadata:
        name: default
      spec:
        etcd:
          schedule: ""
          timeZone: "UTC"
          retentionPolicy:
            retentionType: RetentionNumber
            retentionNumber:
              maxNumberOfBackups: 2
      
      
      Fails with error:
      The Backup "default" is invalid: spec.etcd.schedule: Invalid value: "": spec.etcd.schedule in body should match '^(@(annually|yearly|monthly|weekly|daily|hourly))|(\*|(?:\*|(?:[0-9]|(?:[1-5][0-9])))\/(?:[0-9]|(?:[1-5][0-9]))|(?:[0-9]|(?:[1-5][0-9]))(?:(?:\-[0-9]|\-
      
      
      
          2. When schedule itself is not mentioned.
      The backup pod failed with error:
      
      $ oc logs backup-server-daemon-set-m96bv
      F1022 13:26:10.239742       1 backupserver.go:77] error parsing backup schedule : empty spec string
      
      
          
          

      Actual results:

          

      Expected results:

          empty schedule should be supported.

      Additional info:

          

              melbeher@redhat.com Mustafa Elbehery
              rhn-support-skundu Sandeep Kundu
              Sandeep Kundu Sandeep Kundu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: