-
Bug
-
Resolution: Done
-
Undefined
-
None
-
4.17
-
None
-
False
-
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.
- duplicates
-
OCPBUGS-37164 [IBI] openshift-install image-based create image --dir <workdir> crashes if the workdir is missing a template
- MODIFIED