Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1670270

Summary: heapster options for `oc adm top node` and `oc adm top pod` is deprecated
Product: OpenShift Container Platform Reporter: Junqi Zhao <juzhao>
Component: NodeAssignee: Seth Jennings <sjenning>
Status: CLOSED DUPLICATE QA Contact: Jianwei Hou <jhou>
Severity: low Docs Contact:
Priority: medium    
Version: 4.1.0CC: aos-bugs, jokerman, mmccomas, rphillips
Target Milestone: ---   
Target Release: ---   
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: 2019-01-31 18:40:55 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 Junqi Zhao 2019-01-29 06:04:54 UTC
Description of problem:
From 4.0, `oc adm top node` and `oc adm top pod` changed to use prometheus-adapter svc, not heapster
$ oc adm top node -f
Error: unknown shorthand flag: 'f' in -f


Aliases:
node, nodes, no

Usage:
  oc adm top node [NAME | -l label] [flags]

Examples:
  # Show metrics for all nodes
  kubectl top node
  
  # Show metrics for a given node
  kubectl top node NODE_NAME

Options:
      --heapster-namespace='openshift-infra': Namespace Heapster service is located in
      --heapster-port='': Port name in service to use
      --heapster-scheme='https': Scheme (http or https) to connect to Heapster as
      --heapster-service='heapster': Name of Heapster service
  -l, --selector='': Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)

Use "oc adm options" for a list of global command-line options (applies to all commands).

Version-Release number of selected component (if applicable):
$ oc version
oc v4.0.0-0.147.0
kubernetes v1.11.0+dde478551e
features: Basic-Auth GSSAPI Kerberos SPNEGO


How reproducible:
Always

Steps to Reproduce:
1. oc adm top node -f
2.
3.

Actual results:
heapster options still for `oc adm top node` and `oc adm top pod`

Expected results:
use prometheus 

Additional info:
same error for `kubectl top pod` and `kubectl top node`

Comment 1 Ryan Phillips 2019-01-31 18:23:55 UTC
PR to remove heapster support and fix a crash in 4.0: https://github.com/openshift/origin/pull/21927

Comment 2 Seth Jennings 2019-01-31 18:40:55 UTC

*** This bug has been marked as a duplicate of bug 1670618 ***