-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.15
-
-
-
Low
-
No
-
False
-
Description of problem:
I'm overriding the OS image, however in this case the "rhcos-4.15" image doesn't exist in the cloud:
export OPENSHIFT_INSTALL_OS_IMAGE_OVERRIDE="rhcos-4.15"
nerc-dev ❯ openstack image show rhcos-4.15 No Image found for rhcos-4.15
The installer will fail with a stacktrace
ERROR ERROR Error: Your query returned no results. Please change your search criteria and try again. ERROR ERROR with data.openstack_images_image_v2.base_image, ERROR on main.tf line 29, in data "openstack_images_image_v2" "base_image": ERROR 29: data "openstack_images_image_v2" "base_image" { ERROR panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x194e88c] goroutine 1 [running]: github.com/openshift/installer/pkg/asset.PersistToFile({0x229da6c0?, 0x2799e520?}, {0x7fff7c1d994f, 0xf}) /go/src/github.com/openshift/installer/pkg/asset/asset.go:57 +0xac github.com/openshift/installer/pkg/asset.(*fileWriterAdapter).PersistToFile(0x22971e40?, {0x7fff7c1d994f?, 0x2799e520?}) /go/src/github.com/openshift/installer/pkg/asset/filewriter.go:19 +0x31 main.runTargetCmd.func1({0x7fff7c1d994f, 0xf}) /go/src/github.com/openshift/installer/cmd/openshift-install/create.go:277 +0x24a main.runTargetCmd.func2(0x27830180?, {0xc000d92c30?, 0x3?, 0x3?}) /go/src/github.com/openshift/installer/cmd/openshift-install/create.go:302 +0xe7 github.com/spf13/cobra.(*Command).execute(0x27830180, {0xc000d92ba0, 0x3, 0x3}) /go/src/github.com/openshift/installer/vendor/github.com/spf13/cobra/command.go:944 +0x847 github.com/spf13/cobra.(*Command).ExecuteC(0xc000157200) /go/src/github.com/openshift/installer/vendor/github.com/spf13/cobra/command.go:1068 +0x3bd github.com/spf13/cobra.(*Command).Execute(...) /go/src/github.com/openshift/installer/vendor/github.com/spf13/cobra/command.go:992 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): Seen with openshift-install-4.15 4.15.0-ec.2. This probably affects older versions too.
How reproducible:
Steps to Reproduce:
1. 2. 3.
Actual results:
Expected results:
Additional info: