Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1824834

Summary: httpSecret should always be set
Product: OpenShift Container Platform Reporter: Oleg Bulatov <obulatov>
Component: Image RegistryAssignee: Oleg Bulatov <obulatov>
Status: CLOSED ERRATA QA Contact: Wenjing Zheng <wzheng>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.1.zCC: aos-bugs
Target Milestone: ---Keywords: UpcomingSprint
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: the operator didn't generate httpSecret if its empty Consequence: httpSecret is not properly set when config is created with empty httpSecret (for example, for a manifest from git) Fix: generate httpSecret when it's not set Result: the operator generates httpSecret and uses it for all replicas when the config is created without it or when it is deleted from the config
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 15:57:47 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:
Bug Depends On:    
Bug Blocks: 1895856    

Description Oleg Bulatov 2020-04-16 14:21:08 UTC
spec.httpSecret is marked as optional in our API. But it's essential to generate it and use the same value for all replicas if we have more than one replica.

Today the operator generates this secret only when it bootstraps the config object.

As we can't change API and remove `optional`, we should generate a new secret if the config is provided with an empty httpSecret.

Comment 2 Oleg Bulatov 2020-05-18 12:14:09 UTC
Low priority, won't be fixed this sprint.

Comment 9 Wenjing Zheng 2020-09-14 05:29:05 UTC
Verified on 4.6.0-0.nightly-2020-09-12-230035: spec.httpSecret can be auto-created.

Comment 12 errata-xmlrpc 2020-10-27 15:57:47 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