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

[vsphere] IPI installation get panic when no active hosts in vSphere

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Normal Normal
    • None
    • 4.15
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • No
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When vSphere have no active esxi hosts, ipi install get panic
      
      # ./openshift-install create cluster --dir cluster --log-level debug
      ...
      DEBUG vsphere_folder.folder["nesteddatacenter-sgao-devqe-mz2vz"]: Creation complete after 1s [id=group-v5001] 
      DEBUG vsphereprivate_import_ova.import["generated-failure-domain"]: Creating... 
      ERROR                                              
      ERROR Error: failed to lease wait: There are no active hosts in the cluster. 
      ERROR                                              
      ERROR   with vsphereprivate_import_ova.import["generated-failure-domain"], 
      ERROR   on main.tf line 63, in resource "vsphereprivate_import_ova" "import": 
      ERROR   63: resource "vsphereprivate_import_ova" "import" { 
      ERROR                                              
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1936dcc]
      
      goroutine 1 [running]:
      github.com/openshift/installer/pkg/asset.PersistToFile({0x22860500?, 0x277372b0?}, {0x7ffd15e5654d, 0x7})
      	/go/src/github.com/openshift/installer/pkg/asset/asset.go:57 +0xac
      github.com/openshift/installer/pkg/asset.(*fileWriterAdapter).PersistToFile(0x227fa7a0?, {0x7ffd15e5654d?, 0x277372b0?})
      	/go/src/github.com/openshift/installer/pkg/asset/filewriter.go:19 +0x31
      main.runTargetCmd.func1({0x7ffd15e5654d, 0x7})
      	/go/src/github.com/openshift/installer/cmd/openshift-install/create.go:277 +0x24a
      main.runTargetCmd.func2(0x275d0340?, {0xc000a9a080?, 0x4?, 0x4?})
      	/go/src/github.com/openshift/installer/cmd/openshift-install/create.go:302 +0xe7
      github.com/spf13/cobra.(*Command).execute(0x275d0340, {0xc000a9a040, 0x4, 0x4})
      	/go/src/github.com/openshift/installer/vendor/github.com/spf13/cobra/command.go:920 +0x847
      github.com/spf13/cobra.(*Command).ExecuteC(0xc000b34000)
      	/go/src/github.com/openshift/installer/vendor/github.com/spf13/cobra/command.go:1040 +0x3bd
      github.com/spf13/cobra.(*Command).Execute(...)
      	/go/src/github.com/openshift/installer/vendor/github.com/spf13/cobra/command.go:968
      main.installerMain()
      	/go/src/github.com/openshift/installer/cmd/openshift-install/main.go:56 +0x2b0
      main.main()
      	/go/src/github.com/openshift/installer/cmd/openshift-install/main.go:33 +0xff
       

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

      4.15.0-0.nightly-2023-11-01-080931
      

      How reproducible:

      always

      Steps to Reproduce:

      1. On nested cluster, disconnect/poweroff all esxi hosts
      2. Install OCP with prepared install-config.yaml
      

      Actual results:

      installer got panic

      Expected results:

      installer should report error and avoid panic

      Additional info:

       

              rhn-support-rvanderp Richard Vanderpool
              sgaoshang Shang Gao
              None
              None
              Shang Gao Shang Gao
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: