Bug 2037903
Summary: | Alibaba Cloud: delete-ram-user requires the credentials-requests | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Joel Diaz <jdiaz> |
Component: | Cloud Credential Operator | Assignee: | Nobody <nobody> |
Status: | CLOSED ERRATA | QA Contact: | Jianping SHu <jshu> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.10 | CC: | jshu |
Target Milestone: | --- | ||
Target Release: | 4.10.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: | 2022-03-10 16:37: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: | |
Embargoed: |
Description
Joel Diaz
2022-01-06 19:35:56 UTC
Reproduced the issue with build https://amd64.ocp.releases.ci.openshift.org/releasestream/4.10.0-0.ci/release/4.10.0-0.ci-2022-01-06-002121 1. Executed the step 1-9 in case https://polarion.engineering.redhat.com/polarion/redirect/project/OSE/workitem?id=OCP-46768 At step 8, the delete-ram-users command w/o "credentials-requests-dir" failed and the one w/ "credentials-requests-dir" succeeded. [cloud-user@preserve-for-hive-test reproduce]$ ./ccoctl alibabacloud delete-ram-users --name jshu-alicloud --region=ap-northeast-1 Error: required flag(s) "credentials-requests-dir" not set Usage: ccoctl alibabacloud delete-ram-users [flags] Flags: --credentials-requests-dir string Directory containing files of CredentialsRequests to create RAM AK for (can be created by running 'oc adm release extract --credentials-requests --cloud=alibabacloud' against an OpenShift release image) -h, --help help for delete-ram-users --name string User-defined name for all created Alibaba Cloud resources (can be separate from the cluster's infra-id) --region string Alibaba Cloud region endpoint only required for GovCloud 2022/01/06 23:58:04 required flag(s) "credentials-requests-dir" not set [cloud-user@preserve-for-hive-test reproduce]$ ./ccoctl alibabacloud delete-ram-users --name jshu-alicloud --region=ap-northeast-1 --credentials-requests-dir=./credrequests 2022/01/06 23:58:35 Ready to delete user jshu-alicloud-openshift-machine-api-alibabacloud-credentials accesskey LTAI5tPddbgQqjwqK9979Ys1 2022/01/06 23:58:38 Ready to delete user jshu-alicloud-openshift-image-registry-installer-cloud-credentia accesskey LTAI5t9F63dcW1s3UmKnTxEm 2022/01/06 23:58:41 Ready to delete user jshu-alicloud-openshift-ingress-operator-cloud-credentials accesskey LTAI5tDMjfStnwv9fBcczxX4 2022/01/06 23:58:44 Ready to delete user jshu-alicloud-openshift-cluster-csi-drivers-alibaba-disk-credent accesskey LTAI5t8HKhby95u4CoyBdi6z Verified with build https://amd64.ocp.releases.ci.openshift.org/releasestream/4.10.0-0.ci/release/4.10.0-0.ci-2022-01-06-222134 (which contains CCO PR 439) 1. Executed the case https://polarion.engineering.redhat.com/polarion/redirect/project/OSE/workitem?id=OCP-46768 and updated the case according to the result. The following delete-ram-users w/o "credentials-requests-dir" succeeded ccoctl alibabacloud delete-ram-users --name jshu-alicloud --region=ap-northeast-1 2. delete-ram-users command format has no "credentials-requests-dir" [cloud-user@preserve-for-hive-test verify]$ ./ccoctl alibabacloud delete-ram-users --help Detach RAM Policy from existing user Usage: ccoctl alibabacloud delete-ram-users [flags] Flags: -h, --help help for delete-ram-users --name string User-defined name for all created Alibaba Cloud resources (can be separate from the cluster's infra-id) --region string Alibaba Cloud region endpoint only required for GovCloud 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. https://access.redhat.com/errata/RHSA-2022:0056 |