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

[IBI] openshift-install image-based create image --dir <workdir> crashes if the workdir is missing a template

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.17
    • LCA operator
    • None
    • IB-7
    • 1
    • False
    • Hide

      None

      Show
      None

      openshift-install version
      /root/installer/bin/openshift-install 4.17.0-0.nightly-2024-07-16-033047
      built from commit 8b7d5c6fe26a70eafc47a142666b90ed6081159e
      release image registry.ci.openshift.org/ocp/release@sha256:afb704dd7ab8e141c56f1da15ce674456f45c7767417e625f96a6619989e362b
      release architecture amd64
      
      
      openshift-install image-based create image --dir tt                                                                                                      
      panic: runtime error: invalid memory address or nil pointer dereference                                                                                                                       
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x158 pc=0x5a2ed8e] 
      
      ~/installer/bin/openshift-install image-based create image --dir tt
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x158 pc=0x5a2ed8e]
      
      goroutine 1 [running]:
      github.com/openshift/installer/pkg/asset/imagebased/image.(*RegistriesConf).Generate(0xc00150a000, {0x5?, 0x81d2708?}, 0xc0014f8d80)
              /go/src/github.com/openshift/installer/pkg/asset/imagebased/image/registriesconf.go:38 +0x6e
      github.com/openshift/installer/pkg/asset/store.(*storeImpl).fetch(0xc0014f8270, {0x275ca770, 0xc0014b5220}, {0x275a7900, 0xc00150a000}, {0xc00146cdb0, 0x4})
              /go/src/github.com/openshift/installer/pkg/asset/store/store.go:227 +0x6ec
      github.com/openshift/installer/pkg/asset/store.(*storeImpl).fetch(0xc0014f8270, {0x275ca770, 0xc0014b5220}, {0x275a7990, 0xc000161610}, {0x8189983, 0x2})
              /go/src/github.com/openshift/installer/pkg/asset/store/store.go:221 +0x54c
      github.com/openshift/installer/pkg/asset/store.(*storeImpl).fetch(0xc0014f8270, {0x275ca770, 0xc0014b5220}, {0x7fce0489ad20, 0x2bc3eea0}, {0x0, 0x0})
              /go/src/github.com/openshift/installer/pkg/asset/store/store.go:221 +0x54c
      github.com/openshift/installer/pkg/asset/store.(*storeImpl).Fetch(0xc0014f8270, {0x275ca770?, 0xc0014b5220?}, {0x7fce0489ad20, 0x2bc3eea0}, {0x2bb33070, 0x1, 0x1})
              /go/src/github.com/openshift/installer/pkg/asset/store/store.go:77 +0x4e
      github.com/openshift/installer/pkg/asset/store.(*fetcher).FetchAndPersist(0xc000aa8640, {0x275ca770, 0xc0014b5220}, {0x2bb33070, 0x1, 0x1})
              /go/src/github.com/openshift/installer/pkg/asset/store/assetsfetcher.go:47 +0x16b
      main.newImageBasedCreateCmd.runTargetCmd.func3({0x7ffdb9f8638c?, 0x2?})
              /go/src/github.com/openshift/installer/cmd/openshift-install/create.go:306 +0x6a
      main.newImageBasedCreateCmd.runTargetCmd.func4(0x2bc00100, {0xc00147fd00?, 0x4?, 0x818b15a?})
              /go/src/github.com/openshift/installer/cmd/openshift-install/create.go:320 +0x102
      github.com/spf13/cobra.(*Command).execute(0x2bc00100, {0xc00147fcc0, 0x2, 0x2})
              /go/src/github.com/openshift/installer/vendor/github.com/spf13/cobra/command.go:987 +0xab1
      github.com/spf13/cobra.(*Command).ExecuteC(0xc000879508)
              /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
      

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

              Created:
              Updated: