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

[IBMCloud] [CAPI] create manifests panic with the default install-config.yaml (no zones field)

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required

      Description of problem:

      with the default install-config (not zones field),create manifests panic

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

       4.19   

      How reproducible:

      Always    

      Steps to Reproduce:

      1.openshift-install create install-config
      2.enable CAPI in install-config.yaml
      featureSet: CustomNoUpgrade
      featureGates: ["ClusterAPIInstall=true"]     
      3. openshift-install   create manifests     

      Actual results:

      INFO Consuming Install Config from target directory
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x3b93434]goroutine 1 [running]:
      github.com/openshift/installer/pkg/asset/manifests/ibmcloud.GenerateClusterAssets(0xc0017a3080, 0xc001999700, {0xc0006847e9, 0x31})
              /go/src/github.com/openshift/installer/pkg/asset/manifests/ibmcloud/cluster.go:73 +0x754
      github.com/openshift/installer/pkg/asset/manifests/clusterapi.(*Cluster).Generate(0x2718f500, {0x5?, 0x89d1e67?}, 0xc00135bd10)
              /go/src/github.com/openshift/installer/pkg/asset/manifests/clusterapi/cluster.go:142 +0x7ef
      github.com/openshift/installer/pkg/asset/store.(*storeImpl).fetch(0xc000c12180, {0x224f8690, 0xc000ffbe00}, {0x224d4a90, 0x2718f500}, {0x0, 0x0})
              /go/src/github.com/openshift/installer/pkg/asset/store/store.go:227 +0x6e2
      github.com/openshift/installer/pkg/asset/store.(*storeImpl).Fetch(0xc000c12180, {0x224f8690?, 0xc000ffbe00?}, {0x224d4a90, 0x2718f500}, {0x27151c80, 0x6, 0x6})
              /go/src/github.com/openshift/installer/pkg/asset/store/store.go:77 +0x4e
      github.com/openshift/installer/pkg/asset/store.(*fetcher).FetchAndPersist(0xc0006c6be0, {0x224f8690, 0xc000ffbe00}, {0x27151c80, 0x6, 0x6})
              /go/src/github.com/openshift/installer/pkg/asset/store/assetsfetcher.go:47 +0x16b
      main.newCreateCmd.runTargetCmd.func3({0x7ffde172857f?, 0x1?})
              /go/src/github.com/openshift/installer/cmd/openshift-install/create.go:307 +0x6a
      main.newCreateCmd.runTargetCmd.func4(0x2715d2c0, {0xc000a32a60?, 0x4?, 0x8986d1f?})
              /go/src/github.com/openshift/installer/cmd/openshift-install/create.go:321 +0x102
      github.com/spf13/cobra.(*Command).execute(0x2715d2c0, {0xc000a32a20, 0x2, 0x2})
              /go/src/github.com/openshift/installer/vendor/github.com/spf13/cobra/command.go:989 +0xa91
      github.com/spf13/cobra.(*Command).ExecuteC(0xc0009cef08)
              /go/src/github.com/openshift/installer/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
      github.com/spf13/cobra.(*Command).Execute(...)
              /go/src/github.com/openshift/installer/vendor/github.com/spf13/cobra/command.go:1041
      main.installerMain()
              /go/src/github.com/openshift/installer/cmd/openshift-install/main.go:67 +0x390
      main.main()
              /go/src/github.com/openshift/installer/cmd/openshift-install/main.go:39 +0x168
          

      Expected results:

      create manifest file succeed.    

      Additional info:

      the default install-config.yaml without zones field:
        controlPlane:
          architecture: amd64
          hyperthreading: Enabled
          name: master
          platform: {}
          replicas: 3
        compute:
        - architecture: amd64
          hyperthreading: Enabled
          name: worker
          platform: {}
          replicas: 3
        metadata:
          name: maxu-capi1
        platform:
          ibmcloud:
            region: eu-gb    

      After adding the zones field, create manifests succeed.

       controlPlane:
         architecture: amd64
         hyperthreading: Enabled
         name: master
         platform:
           ibmcloud:
             zones:
             - eu-gb-1
             - eu-gb-2
             - eu-gb-3
         replicas: 3
       compute:
       - architecture: amd64
         hyperthreading: Enabled
         name: worker
         platform:
           ibmcloud:
             zones:
             - eu-gb-1
             - eu-gb-2
             - eu-gb-3
         replicas: 3
       metadata:
         name: maxu-capi2
       platform:
         ibmcloud:
           region: eu-gb  

       

              cschaefe@redhat.com Christopher Schaefer
              maxu@redhat.com May Xu
              May Xu May Xu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: