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

CRD validation cases fails due to runtime panic from schema.Convert() call

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.1.0
    • 1.1.0
    • supportability
    • None

    Description

      CRD Validation cases are failing due to the runTime panic while execution of line,

      File: couchbase-operator/pkg/util/k8sutil/crd.go:96
      err := scheme.Scheme.Convert(getCustomResourceValidation(), &validation, nil)
      

      Last known working build: 1.1.0-520

      Runtime error prints

      	/Users/ashwin/go/src/github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/conversion/converter.go:621 +0x1106
      github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/conversion.(*Converter).convert(0xc4201f67e0, 0x250d7a0, 0xc42000e968, 0x199, 0x250d720, 0xc42000e958, 0x199, 0xc4208c8b90, 0x40, 0x38)
      	/Users/ashwin/go/src/github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/conversion/converter.go:577 +0xa7a
      github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/conversion.(*Converter).(github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/conversion.convert)-fm(0x250d7a0, 0xc42000e968, 0x199, 0x250d720, 0xc42000e958, 0x199, 0xc4208c8b90, 0x1, 0x1085405)
      	/Users/ashwin/go/src/github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/conversion/converter.go:480 +0x9b
      github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/conversion.(*Converter).doConversion(0xc4201f67e0, 0x2590ba0, 0xc42000e968, 0x24ea280, 0xc42000e958, 0x8, 0xc4209356e0, 0xc420a89038, 0xc4204ae000, 0x24d77a0)
      	/Users/ashwin/go/src/github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/conversion/converter.go:517 +0x488
      github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/conversion.(*Converter).Convert(0xc4201f67e0, 0x2590ba0, 0xc42000e968, 0x24ea280, 0xc42000e958, 0x8, 0xc4209356e0, 0x0, 0x0)
      	/Users/ashwin/go/src/github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/conversion/converter.go:480 +0x122
      github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/runtime.(*Scheme).Convert(0xc4200d12c0, 0x2590ba0, 0xc42000e968, 0x24ea280, 0xc42000e958, 0x0, 0x0, 0x9, 0x0)
      	/Users/ashwin/go/src/github.com/couchbase/couchbase-operator/vendor/k8s.io/apimachinery/pkg/runtime/scheme.go:470 +0x40b
      github.com/couchbase/couchbase-operator/pkg/util/k8sutil.ValidateCRD(0xc42000e8e0, 0x1, 0x1)
      	/Users/ashwin/go/src/github.com/couchbase/couchbase-operator/pkg/util/k8sutil/crd.go:96 +0x145
      github.com/couchbase/couchbase-operator/pkg/util/decoder.DecodeCouchbaseCluster(0xc4206ae000, 0x9b6, 0xbb6, 0x9b6, 0xbb6, 0x0)
      	/Users/ashwin/go/src/github.com/couchbase/couchbase-operator/pkg/util/decoder/decoder.go:33 +0x193
      github.com/couchbase/couchbase-operator/test/e2e.YAMLToCluster(0x2657eb2, 0x26, 0x10, 0xc4206619d8, 0x1)
      	/Users/ashwin/go/src/github.com/couchbase/couchbase-operator/test/e2e/validation_test.go:79 +0x7c
      github.com/couchbase/couchbase-operator/test/e2e.runValidationTest(0xc4206c23c0, 0xc4209c5c00, 0x7, 0x8, 0xc4207a5860, 0xb, 0x2632f33, 0x6)
      	/Users/ashwin/go/src/github.com/couchbase/couchbase-operator/test/e2e/validation_test.go:259 +0x2e6
      github.com/couchbase/couchbase-operator/test/e2e.TestValidationCreate(0xc4206c23c0)
      	/Users/ashwin/go/src/github.com/couchbase/couchbase-operator/test/e2e/validation_test.go:432 +0x7db
      github.com/couchbase/couchbase-operator/test/e2e/framework.RecoverDecorator.func1(0xc4206c23c0)
      	/Users/ashwin/go/src/github.com/couchbase/couchbase-operator/test/e2e/framework/test_util.go:498 +0x7b
      testing.tRunner(0xc4206c23c0, 0xc4204a3520)
      	/usr/local/opt/go/libexec/src/testing/testing.go:777 +0x16e
      created by testing.(*T).Run
      	/usr/local/opt/go/libexec/src/testing/testing.go:824 +0x565

      Attachments

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

        Activity

          There are no comments yet on this issue.

          People

            simon.murray Simon Murray
            ashwin.govindarajulu Ashwin Govindarajulu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty