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:
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
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