Bug 1986707

Summary: CVO log "resource has already been removed" is confusing in a fresh install
Product: OpenShift Container Platform Reporter: Yang Yang <yanyang>
Component: Cluster Version OperatorAssignee: Jack Ottofaro <jack.ottofaro>
Status: CLOSED ERRATA QA Contact: Yang Yang <yanyang>
Severity: low Docs Contact:
Priority: low    
Version: 4.9CC: aos-bugs, jokerman
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:42:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yang Yang 2021-07-28 07:27:35 UTC
Description of problem:

As PR[1] is introduced, CVO logs "helper.go:97] imagestream "openshift/hello-openshift" has already been removed" in a fresh installed cluster. It sounds like the resource was created previously and then removed. But actually it's not created at all. It doesn't bother installation process, so set it to low severity.

[1] https://github.com/openshift/cluster-version-operator/pull/629/files

Version-Release number of the following components:

4.9.0-0.nightly-2021-07-26-220837

How reproducible:
1/1

Steps to Reproduce:
1. Install a cluster
2.
3.

Actual results:
Installation is successful and imagestream hello-openshift is not created as expected. But the CVO log shows:

W0723 07:08:11.051012       1 helper.go:97] imagestream "openshift/hello-openshift" has already been removed.

Expected results:

Do not log this message during a fresh install or update the log message.

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 1 Jack Ottofaro 2021-07-28 16:27:00 UTC
Either suggested change is straightforward however we have a full plate so not likely to be addressed this sprint.

Comment 4 Yang Yang 2021-08-27 03:30:09 UTC
Verified with 4.9.0-0.nightly-2021-08-26-164418 and passed

2832 W0827 03:12:22.674430       1 helper.go:97] imagestream "openshift/hello-openshift" not found. It either has already been removed or it has never been installed on this cluster.

Comment 7 errata-xmlrpc 2021-10-18 17:42: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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), 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/RHSA-2021:3759