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

[IBI] Running 'openshift-install image-based create image --dir /tmp/target-0/ibi-iso-ibi_workdir' results in a crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • 4.17
    • LCA operator
    • None
    • False
    • Hide

      None

      Show
      None

      Version: openshift-install-linux-4.17.0-0.nightly-2024-07-17-183402.tar.gz

      openshift-install image-based create image --dir /tmp/target-0/ibi-iso-ibi_workdir                                                                                
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x158 pc=0x5a49cee]
      
      goroutine 1 [running]:
      github.com/openshift/installer/pkg/asset/imagebased/image.(*RegistriesConf).Generate(0xc000c0e880, {0x5?, 0x81f896b?}, 0xc000ee0e40)                                                         
              /go/src/github.com/openshift/installer/pkg/asset/imagebased/image/registriesconf.go:38 +0x6e                                                                                         
      github.com/openshift/installer/pkg/asset/store.(*storeImpl).fetch(0xc000ee0330, {0x275f1b10, 0xc000c0a410}, {0x275ceca0, 0xc000c0e880}, {0xc0009f699c, 0x4})                                 
              /go/src/github.com/openshift/installer/pkg/asset/store/store.go:227 +0x6ec
      github.com/openshift/installer/pkg/asset/store.(*storeImpl).fetch(0xc000ee0330, {0x275f1b10, 0xc000c0a410}, {0x275ced30, 0xc000e3a110}, {0x81afba3, 0x2})                                    
              /go/src/github.com/openshift/installer/pkg/asset/store/store.go:221 +0x54c
      github.com/openshift/installer/pkg/asset/store.(*storeImpl).fetch(0xc000ee0330, {0x275f1b10, 0xc000c0a410}, {0x7f7880aeeb80, 0x2bc73180}, {0x0, 0x0})                                        
              /go/src/github.com/openshift/installer/pkg/asset/store/store.go:221 +0x54c
      github.com/openshift/installer/pkg/asset/store.(*storeImpl).Fetch(0xc000ee0330, {0x275f1b10?, 0xc000c0a410?}, {0x7f7880aeeb80, 0x2bc73180}, {0x2bb67070, 0x1, 0x1})                          
              /go/src/github.com/openshift/installer/pkg/asset/store/store.go:77 +0x4e
      github.com/openshift/installer/pkg/asset/store.(*fetcher).FetchAndPersist(0xc00073a6d0, {0x275f1b10, 0xc000c0a410}, {0x2bb67070, 0x1, 0x1})                                                  
              /go/src/github.com/openshift/installer/pkg/asset/store/assetsfetcher.go:47 +0x16b
      main.newImageBasedCreateCmd.runTargetCmd.func3({0x7ffccc868688?, 0x21?})
              /go/src/github.com/openshift/installer/cmd/openshift-install/create.go:306 +0x6a
      main.newImageBasedCreateCmd.runTargetCmd.func4(0x2bc343e0, {0xc000c0e5a0?, 0x4?, 0x81b137a?})
              /go/src/github.com/openshift/installer/cmd/openshift-install/create.go:320 +0x102
      github.com/spf13/cobra.(*Command).execute(0x2bc343e0, {0xc000c0e560, 0x2, 0x2})
              /go/src/github.com/openshift/installer/vendor/github.com/spf13/cobra/command.go:987 +0xab1                                                                                           
      github.com/spf13/cobra.(*Command).ExecuteC(0xc000b40f08)
              /go/src/github.com/openshift/installer/vendor/github.com/spf13/cobra/command.go:1115 +0x3ff                                                                                          
      github.com/spf13/cobra.(*Command).Execute(...)
              /go/src/github.com/openshift/installer/vendor/github.com/spf13/cobra/command.go:1039
      main.installerMain()
              /go/src/github.com/openshift/installer/cmd/openshift-install/main.go:67 +0x3c6
      main.main()
              /go/src/github.com/openshift/installer/cmd/openshift-install/main.go:39 +0x168
      
      

      Same generated config yaml /tmp/target-0/ibi-iso-ibi_workdir/image-based-install-iso.yaml works fine with the ib-cli tool.

            mresvani@redhat.com Michail Resvanis
            achuzhoy@redhat.com Alexander Chuzhoy
            Yang Liu Yang Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: