Bug 1885959

Summary: Nil pointer when verifying images
Product: OpenShift Container Platform Reporter: Maciej Szulik <maszulik>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED ERRATA QA Contact: zhou ying <yinzhou>
Severity: high Docs Contact:
Priority: high    
Version: 4.6CC: aos-bugs, jokerman, mfojtik, wking, yinzhou
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1885170 Environment:
Last Closed: 2020-10-27 16:47:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1885170    
Bug Blocks:    

Description Maciej Szulik 2020-10-07 10:57:40 UTC
+++ This bug was initially created as a clone of Bug #1885170 +++

See https://prow.ci.openshift.org/view/gcs/origin-ci-test/logs/release-openshift-ocp-installer-e2e-aws-mirrors-4.6/1312810584852402176 

warning: No release authenticity verification is configured, all releases are considered unverified
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x22993ba]

goroutine 1 [running]:
github.com/openshift/library-go/pkg/verify.(*ReleaseVerifier).Verify(0x0, 0x34ed9c0, 0xc00360e100, 0x0, 0x0, 0x0, 0x0)
	/go/src/github.com/openshift/oc/vendor/github.com/openshift/library-go/pkg/verify/verify.go:132 +0x3a
github.com/openshift/oc/pkg/cli/admin/release.(*MirrorOptions).Run(0xc001316200, 0x0, 0x0)
	/go/src/github.com/openshift/oc/pkg/cli/admin/release/mirror.go:519 +0x72c
github.com/openshift/oc/pkg/cli/admin/release.(*NewOptions).mirrorImages(0xc0015b8a00, 0xc0003ac900, 0xc0024b5600, 0x4d604e0)
	/go/src/github.com/openshift/oc/pkg/cli/admin/release/new.go:1060 +0x219
github.com/openshift/oc/pkg/cli/admin/release.(*NewOptions).Run(0xc0015b8a00, 0x0, 0x0)
	/go/src/github.com/openshift/oc/pkg/cli/admin/release/new.go:705 +0x1b2e
github.com/openshift/oc/pkg/cli/admin/release.NewRelease.func1(0xc0017abb80, 0xc001824e40, 0x0, 0x6)
	/go/src/github.com/openshift/oc/pkg/cli/admin/release/new.go:114 +0xd3
github.com/spf13/cobra.(*Command).execute(0xc0017abb80, 0xc001824de0, 0x6, 0x6, 0xc0017abb80, 0xc001824de0)
	/go/src/github.com/openshift/oc/vendor/github.com/spf13/cobra/command.go:846 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0xc00157a2c0, 0x2, 0xc00157a2c0, 0x2)
	/go/src/github.com/openshift/oc/vendor/github.com/spf13/cobra/command.go:950 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	/go/src/github.com/openshift/oc/vendor/github.com/spf13/cobra/command.go:887
main.main()
	/go/src/github.com/openshift/oc/cmd/oc/oc.go:110 +0x885
ignore: the release could not be reproduced from its inputs
error: unable to retrieve release image info: unable to read image registry.svc.ci.openshift.org/ci-op-zgjy6n80/release-scratch:release: name unknown

Comment 2 zhou ying 2020-10-10 09:07:48 UTC
Checked the later https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/release-openshift-ocp-installer-e2e-aws-mirrors-4.6/1314260582748131328, can't see the same panic again, will wait for more runs .

Comment 3 zhou ying 2020-10-12 01:04:27 UTC
From https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/release-openshift-ocp-installer-e2e-aws-mirrors-4.6/1314985620598165504, can't reproduce the panic error , will move to verified status.

Comment 6 errata-xmlrpc 2020-10-27 16:47:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4196