Bug 1955879

Summary: Customer tags cannot be seen in S3 level when set spec.managementState from Managed-> Removed-> Managed in configs.imageregistry with high ratio
Product: OpenShift Container Platform Reporter: Wenjing Zheng <wzheng>
Component: Image RegistryAssignee: Ricardo Maraschini <rmarasch>
Status: CLOSED ERRATA QA Contact: Wenjing Zheng <wzheng>
Severity: medium Docs Contact:
Priority: high    
Version: 4.8CC: aos-bugs
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Bucket tags were being overwritten during a subsequent operator sync cycle. Consequence: Bucket was loosing user provided tags. Fix: A patch was placed making the operator to start to respect spec.storage.managementState when setting the tags. This way users can now clearly inform their intention on who/what is managing the remote storage (aws bucket on this case). Result: User provided tags are always set in the bucket if user sets spec.storage.managementState to "Managed".
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:05:33 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:
Bug Depends On:    
Bug Blocks: 1957308    

Description Wenjing Zheng 2021-05-01 08:20:16 UTC
Description of problem:
Launch a cluster with userTags in install-config defined, tags can be seen in S3 level when cluster is ready; but when set spec.managementState from Managed-> Removed-> Managed in configs.imageregistry, tags are gone in S3 level.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Launch a cluster with userTags defined in install-config, below values can be seen in infrastructure.config.openshift.io:
      region: us-east-2
      - key: adminContact
        value: wzheng
      - key: costCenter
        value: qe
    type: AWS
2.Check the tags in S3 level from AWS console
3.Set spec.managementState from Managed-> Removed-> Managed in configs.imageregistry

Actual results:
2. Tags can be seen and they are the same with the ones defined in install-config.
3. Tags are gone.

Expected results:
Tags should exist when image registry is restarted.

Additional info:
Definition in install-config:
    region: us-east-2
    experimentalPropagateUserTags: yes
      adminContact: wzheng
      costCenter: qe

Comment 3 Wenjing Zheng 2021-05-06 03:10:16 UTC
No available payload to verify the bug till now.

Comment 4 Wenjing Zheng 2021-05-07 03:42:22 UTC
Verified on 4.8.0-0.nightly-2021-05-06-210840: cannot reproduce this issue with 6 clusters.

Comment 7 errata-xmlrpc 2021-07-27 23:05:33 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.8.2 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.