Bug 1656295 - Down of just one apiservice causes failure of listing api resources on entire cluster
Summary: Down of just one apiservice causes failure of listing api resources on entire...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: kube-apiserver
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
: ---
Assignee: Stefan Schimanski
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-05 07:45 UTC by Kenjiro Nakayama
Modified: 2023-09-14 04:43 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-28 00:01:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1667030 0 medium CLOSED api-resources should work when hit abnormal apiserver groups 2021-02-22 00:41:40 UTC

Description Kenjiro Nakayama 2018-12-05 07:45:18 UTC
Description of problem:

When one of apiservers is not running, oc api-resources, oc adm migrate storage fail.

(e.g)

  # oc api-resources 
  error: unable to retrieve the complete list of server APIs: servicecatalog.k8s.io/v1beta1: the server is currently unable to handle the request

  # oc adm migrate storage --include=* --loglevel=2 --confirm --config /etc/origin/master/admin.kubeconfig Flag --confirm has been deprecated, storage migration does not support dry run, this flag is ignored F1204 02:56:27.294649   97627 helpers.go:119] error: could not calculate the list of available resources: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server 

  # oc adm migrate storage --include=* --loglevel=2 --config /etc/origin/master/admin.kubeconfig
  F1205 02:31:56.224038   93834 helpers.go:119] error: could not calculate the list of available resources: unable to retrieve the complete list of server APIs: servicecatalog.k8s.io/v1beta1: the server is currently unable to handle the request

Version-Release number of selected component:
- v3.11.16

How reproducible: 100%

Steps to Reproduce:
1. Make down apiserver (e.g kube-service-catalog)

  # oc get pod -n kube-service-catalog
  NAME                       READY     STATUS             RESTARTS   AGE
  apiserver-cj79m            0/1       CrashLoopBackOff   608        4d
  controller-manager-gbtwh   1/1       Running            4          5d

2. Run oc api-resources or oc adm migrate storage

Actual results:

  # oc api-resources 
  error: unable to retrieve the complete list of server APIs: servicecatalog.k8s.io/v1beta1: the server is currently unable to handle the request
  
  # oc adm migrate storage --include=* --loglevel=2 --config /etc/origin/master/admin.kubeconfig
  F1205 02:31:56.224038   93834 helpers.go:119] error: could not calculate the list of available resources: unable to retrieve the complete list of server APIs: servicecatalog.k8s.io/v1beta1: the server is currently unable to handle the request

Expected results:
- Only one api-services down should not fail at least "oc api-resources".

NOTE: It is not possible to choose "API"  for the component, so chose Master for this ticket.

Comment 2 Michal Fojtik 2020-05-19 13:18:19 UTC
This bug hasn't had any engineering activity in the last ~30 days. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

As such, we're marking this bug as "LifecycleStale".

If you have further information on the current state of the bug, please update it and remove the "LifecycleStale" keyword, otherwise this bug will be automatically closed in 7 days. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

Comment 4 Michal Fojtik 2020-05-28 00:01:58 UTC
This bug hasn't had any activity 7 days after it was marked as LifecycleStale, so we are closing this bug as WONTFIX. If you consider this bug still valuable, please reopen it or create new bug.

Comment 5 Red Hat Bugzilla 2023-09-14 04:43:19 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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