Bug 2035328 - Ccoctl does not ignore credentials request manifest marked for deletion
Summary: Ccoctl does not ignore credentials request manifest marked for deletion
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cloud Credential Operator
Version: 4.10
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.10.0
Assignee: Nobody
QA Contact: wang lin
Depends On:
TreeView+ depends on / blocked
Reported: 2021-12-23 15:51 UTC by Akhil Rane
Modified: 2022-03-12 04:40 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-03-12 04:40:05 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift cloud-credential-operator pull 436 0 None open Bug 2035328: Make ccoctl ignore cred requests marked for deletion 2021-12-23 15:53:27 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-12 04:40:21 UTC

Description Akhil Rane 2021-12-23 15:51:51 UTC
Description of problem:

Manifests with annotation "release.openshift.io/delete" set to "true"
are marked for in-cluster deletion. Ccoctl tool currently does not ignore these while creating cloud infra.

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

How reproducible:

Steps to Reproduce:
1. Extract CredentialsRequests from a release image that has some CredentialsRequest marked for deletion with annotation "release.openshift.io/delete" set to "true"
2. Try creating credentials infrastructure using ccoctl with extracted CredntialsRequest

Actual results:
Ccoctl will create cloud resources for ignored CredentialsRequests

Expected results:
Ccoctl should not create cloud resources for ignored CredentialsRequests

Additional info:

Comment 2 wang lin 2021-12-27 10:00:01 UTC
Verified on version 4.10.0-0.nightly-2021-12-25-025639

./ccoctl alibabacloud create-ram-users --name lwan-alicloud-1227 --region=ap-northeast-1 --credentials-requests-dir credrequests-alibabacloud --output-dir=./ali-secret
2021/12/27 17:10:05 Ignoring CredentialsRequest openshift-cloud-credential-operator/cco-test-stale-alibaba as it is marked for in-cluster deletion
2021/12/27 17:10:05 Created RAM User: lwan-alicloud-1227-openshift-machine-api-alibabacloud-credential
no ram-users create for CR deletion with annotation "release.openshift.io/delete" set to "true"
$aliyun ims ListUsers | grep lwan-alicloud-1227 | grep stale
Nothing output

The same result on aws/gcp/ibm cloud

Comment 7 errata-xmlrpc 2022-03-12 04:40:05 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.10.3 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.


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