Bug 1916621 - oc adm node-logs examples are wrong
Summary: oc adm node-logs examples are wrong
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.6
Hardware: Unspecified
OS: Linux
low
low
Target Milestone: ---
: 4.7.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-15 09:54 UTC by Grant
Modified: 2021-02-24 15:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:53:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 708 0 None open Bug 1916621: fix oc adm node-logs examples 2021-01-15 11:37:04 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:54:00 UTC

Description Grant 2021-01-15 09:54:35 UTC
Description of problem:

oc adm node-logs examples  have syntax errors. Currently:

---

Examples:
  # Show kubelet logs from all masters
  oc adm node-logs node-logs --role master -u kubelet

  # See what logs are available in masters in /var/logs
  oc adm node-logs node-logs --role master --path=/

  # Display cron log file from all masters
  oc adm node-logs node-logs --role master --path=cron

---

"node-logs node-logs" appears to be wrong


Version-Release number of selected component (if applicable):


How reproducible:
100%


Steps to Reproduce:
1. oc adm node-logs -h
2. read
3. open bug report :)

Actual results:
node-logs repeated

Expected results:
"node-logs" shouldn't be repeated

Additional info:

Comment 2 zhou ying 2021-01-19 02:38:33 UTC
Confirmed with latest oc client, the issue has fixed:
[root@dhcp-140-138 roottest]# oc adm node-logs -h
Display and filter node logs

 .....
Examples:
  # Show kubelet logs from all masters
  oc adm node-logs --role master -u kubelet
  
  # See what logs are available in masters in /var/logs
  oc adm node-logs --role master --path=/
  
  # Display cron log file from all masters
  oc adm node-logs --role master --path=cron


[root@dhcp-140-138 roottest]#  oc version --client
Client Version: 4.7.0-202101162121.p0-4d52be6

Comment 5 errata-xmlrpc 2021-02-24 15:53:46 UTC
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


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