Bug 1667030
Summary: | api-resources should work when hit abnormal apiserver groups | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | shahan <hasha> |
Component: | oc | Assignee: | Maciej Szulik <maszulik> |
Status: | CLOSED ERRATA | QA Contact: | Xingxing Xia <xxia> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.1.0 | CC: | aos-bugs, jokerman, mmccomas, plarsen |
Target Milestone: | --- | Keywords: | Rebase |
Target Release: | 4.1.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
Discovery errors were causing api-resources command to stop working.
Consequence:
It could happen that when one of the apiservers was unreachable oc api-resources would fail.
Fix:
Aggregate discovery errors, but continue execution.
Result:
oc api-resources is resilient to discovery errors.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2019-06-04 10:42:02 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
shahan
2019-01-17 09:44:17 UTC
shahan, just remembered there reported 3.11 bug 1656295 . But that has additional `oc adm migrate storage` symptom. Origin PR has merged. Moving to ON_QA [hasha@fedora_pc ~]$ oc scale --replicas=0 deploy/prometheus-adapter -n openshift-monitoring deployment.extensions/prometheus-adapter scaled [hasha@fedora_pc ~]$ oc api-resources NAME SHORTNAMES APIGROUP NAMESPACED KIND <trunked> groups user.openshift.io false Group identities user.openshift.io false Identity useridentitymappings user.openshift.io false UserIdentityMapping users user.openshift.io false User error: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request, packages.apps.redhat.com/v1alpha1: the server is currently unable to handle the request cluster version: 4.0.0-0.alpha-2019-02-11-201342 Verified this bug Can this be backported to 3.11? Same problem. You can easily use oc 4.1 binary for that. I'm not sure that this is that critical to get it backported. 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, 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/RHBA-2019:0758 |