Bug 1866925
| Summary: | openshift-install destroy cluster should fail quickly when provided with invalid credentials on Azure. | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Mike Gahagan <mgahagan> |
| Component: | Installer | Assignee: | Patrick Dillon <padillon> |
| Installer sub component: | openshift-installer | QA Contact: | Mike Gahagan <mgahagan> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | high | CC: | adahiya, esimard, jhixson, mstaeble, padillon |
| Version: | 4.6 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.7.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Known Issue | |
| Doc Text: |
Cause:
Attempt to delete a cluster in Azure with invalid credentials will appear to be successful if debug logs are not enabled. A customer may encounter this situation if their service principal expires before attempting to destroy the cluster.
Consequence:
openshift-install destroy cluster --dir=/cluster/dir
will appear to succeed although it fails to actually delete the cluster and will also delete the locally stored cluster metadata making the cluster not removable by subsequent runs of openshift-install destroy cluster.
Workaround (if any):
Create a backup of the cluster metadata prior to attempting to delete it. Openshift-install can then use the backed up contents to remove the cluster once the invalid credentials are corrected.
Result:
Manual intervention may be required if any attempt to delete a cluster is made with expired or invalid credentials.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-02-24 15:15: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: | |||
|
Comment 3
Mike Gahagan
2020-10-08 15:40:10 UTC
This is not a 4.6.0 blocker, moving to 4.7.0. Confirmed install fails quickly when trying to delete a cluster with invalid credentials with 4.7.0-0.nightly-2020-11-05-140313 [m@localhost 47_azure-install]$ ./openshift-install destroy cluster --dir clusters/mgahagan-120511 INFO Credentials loaded from file "/home/m/.azure/osServicePrincipal.json" FATAL Failed to destroy cluster: [unable to authenticate when deleting public DNS records: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to <subscription and other information redacted> 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.7.0 security, bug fix, and enhancement 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-2020:5633 |