Bug 1860276 - `oc debug` command can't work
Summary: `oc debug` command can't work
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.6
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.6.0
Assignee: Mike Dame
QA Contact: zhou ying
Depends On:
TreeView+ depends on / blocked
Reported: 2020-07-24 07:51 UTC by zhou ying
Modified: 2020-10-27 16:17 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2020-10-27 16:16:56 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift oc pull 502 0 None closed debug: fix dry-run flag parsing 2021-01-25 12:53:25 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:17:14 UTC

Description zhou ying 2020-07-24 07:51:40 UTC
Description of problem:
`oc debug` command can't work

Version-Release number of selected component (if applicable):
[root@dhcp-140-138 ~]# oc version 
Client Version: 4.6.0-202007221854.p0-5f270d5

How reproducible:

Steps to Reproduce:
1. `oc debug node/ip-xxxx.internal` 
2. `oc debug pod/podname`

Actual results:
1-2. the command exit without create debug pod.

Expected results:
1. Should create debug pod . 

Additional info:
Client Version: 4.6.0-202005061824-29e9a33 works well

Comment 3 Mike Dame 2020-07-27 15:46:29 UTC
It looks like this will be fixed in the next available oc nightly build by the changes in https://github.com/openshift/oc/pull/502, so moving this to modified

Comment 8 zhou ying 2020-07-29 02:28:38 UTC
Confirmed with latest oc client, the issue has fixed:
[root@dhcp-140-138 ~]# oc version --client
Client Version: 4.6.0-202007282157.p0-49e8811

[root@dhcp-140-138 ~]# oc debug node/ip-xxxx.compute.internal
Starting pod/ip-xxxx-debug ...
To use host binaries, run `chroot /host`
Pod IP:
If you don't see a command prompt, try pressing enter.
sh-4.2# chroot /host
sh-4.4# exit
sh-4.2# exit

Removing debug pod ...

Comment 10 errata-xmlrpc 2020-10-27 16:16:56 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 (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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