Uploaded image for project: 'Cloud Dev'
  1. Cloud Dev
  2. CLOUD-52

[PSMDB] fix resorces quotas: no requests

    Details

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

      Description

      it should be possible to set "limits" without "requests"

      STR:
      apply cr config without requests

          resources:
            limits:
              cpu: "300m"
              memory: "0.5G"
              storage: "1Gi"
      

      check PSMDB statefulset yaml with following command

      kubectl get -o yaml statefulset/my-cluster-name-rs0
      

      expected result:

              resources:
                limits:
                  cpu: 300m
                  memory: 500M
      

      current result:

      ERROR: logging before flag.Parse: E1204 10:53:52.741265       1 runtime.go:66] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:72
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51
      /usr/local/go/src/runtime/asm_amd64.s:522
      /usr/local/go/src/runtime/panic.go:513
      /usr/local/go/src/runtime/panic.go:82
      /usr/local/go/src/runtime/signal_unix.go:390
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/pkg/stub/util.go:72
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/pkg/stub/util.go:123
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/pkg/stub/replset.go:170
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/pkg/stub/replset.go:225
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/pkg/stub/handler.go:129
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/github.com/operator-framework/operator-sdk/pkg/sdk/informer-sync.go:88
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/github.com/operator-framework/operator-sdk/pkg/sdk/informer-sync.go:52
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/github.com/operator-framework/operator-sdk/pkg/sdk/informer-sync.go:36
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/github.com/operator-framework/operator-sdk/pkg/sdk/informer.go:98
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134
      /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88
      /usr/local/go/src/runtime/asm_amd64.s:1333
      panic: runtime error: invalid memory address or nil pointer dereference [recovered]
      	panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x108b7e8]
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                tim.vaillancourt Tim Vaillancourt (Inactive)
                Reporter:
                mykola.marzhan Mykola Marzhan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: