Uploaded image for project: 'Percona Kubernetes Operator for Percona Server for MongoDB'
  1. Percona Kubernetes Operator for Percona Server for MongoDB
  2. K8SPSMDB-22

Arbiter support throws failure messages w/Arbiters disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 0.2.0
    • Fix Version/s: 0.3.0
    • Component/s: None
    • Labels:
      None

      Description

      When arbiter support is disabled the operator is throwing errors:

      time="2019-01-15T15:51:56Z" level=error msg="failed to ensure replset rs0: failed to update arbiter stateful set for replset rs0: StatefulSet.apps \"my-cluster-name-rs0arbiter\" is invalid: [spec.selector: Required value, spec.template.metadata.labels: Invalid value: map[string]string(nil): `selector` does not match template `labels`, spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden.]" 

      CR spec:

      $ kubectl describe psmdb|grep Arbiter -A2
          Arbiter:
            Enabled:  false
            Size:     1 

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              andrew.pogrebnoi Andrii Pogrebnoi
              Reporter:
              tim.vaillancourt Tim Vaillancourt (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 2 hours, 30 minutes
                  1d 2h 30m