Bug 1885959 - Nil pointer when verifying images
Summary: Nil pointer when verifying images
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.6.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On: 1885170
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-07 10:57 UTC by Maciej Szulik
Modified: 2020-10-27 16:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1885170
Environment:
Last Closed: 2020-10-27 16:47:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 605 0 None closed Bug 1885959: fix nil pointer in release code 2021-01-28 00:16:25 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:48:13 UTC

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


Note You need to log in before you can comment on or make changes to this bug.