Bug 1976674
| Summary: | CCO didn't set Upgradeable to False when cco mode is configured to Manual on azure platform | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | wang lin <lwan> |
| Component: | Cloud Credential Operator | Assignee: | Nobody <nobody> |
| Status: | CLOSED ERRATA | QA Contact: | wang lin <lwan> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.8 | CC: | arane, lwan |
| Target Milestone: | --- | ||
| Target Release: | 4.10.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: Running OCP on Azure with Manual credentials mode would not set the cluster to upgradeable=False
Consequence: Behavior on Azure was different than other platforms.
Fix: Mark upgradeable=False when in manual credential mode on Azure.
Result: Consistent behavior for the upgradeable flag across platforms.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-03-10 16:04:21 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
wang lin
2021-06-28 02:04:30 UTC
Verified on 4.10.0-0.ci-2021-09-26-200812
1. Launch an ipi on azure
2. change cco mode to Manual
$oc patch cloudcredential cluster --type 'merge' -p '{"spec": {"credentialsMode": "Manual"}}'
3. Check co cloud-credential conditions
$ oc get co cloud-credential -o json | jq -r ".status.conditions[]"
{
"lastTransitionTime": "2021-09-27T07:13:09Z",
"message": "Credential minting is disabled by cluster admin",
"reason": "OperatorDisabledByAdmin",
"status": "True",
"type": "Available"
}
{
"lastTransitionTime": "2021-09-27T01:53:30Z",
"status": "False",
"type": "Degraded"
}
{
"lastTransitionTime": "2021-09-27T02:05:01Z",
"status": "False",
"type": "Progressing"
}
{
"lastTransitionTime": "2021-09-27T07:16:12Z",
"message": "Upgradeable annotation cloudcredential.openshift.io/upgradeable-to on cloudcredential.operator.openshift.io/cluster object needs updating before upgrade. See Manually Creating IAM documentation for instructions on preparing a cluster for upgrade.",
"reason": "MissingUpgradeableAnnotation",
"status": "False",
"type": "Upgradeable"
}
4. patch annotation, it will be cleared
$ oc patch cloudcredential cluster --type 'merge' -p '{"metadata": {"annotations": {"cloudcredential.openshift.io/upgradeable-to": "4.11.0"}}}'
cloudcredential.operator.openshift.io/cluster patched
$ oc get co cloud-credential -o json | jq -r ".status.conditions[]"
{
"lastTransitionTime": "2021-09-27T07:13:09Z",
"message": "Credential minting is disabled by cluster admin",
"reason": "OperatorDisabledByAdmin",
"status": "True",
"type": "Available"
}
{
"lastTransitionTime": "2021-09-27T01:53:30Z",
"status": "False",
"type": "Degraded"
}
{
"lastTransitionTime": "2021-09-27T02:05:01Z",
"status": "False",
"type": "Progressing"
}
{
"lastTransitionTime": "2021-09-27T07:15:55Z",
"status": "True",
"type": "Upgradeable"
}
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 |