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

Bug 1727849

Summary: oc debug node/<mynode> --image=rhel7-toolbox timesout
Product: OpenShift Container Platform Reporter: Eduardo Minguez <eminguez>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED DUPLICATE QA Contact: zhou ying <yinzhou>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: aos-bugs, erich, jokerman, mfojtik
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-07-08 12:53:12 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 Eduardo Minguez 2019-07-08 11:08:04 UTC
Description of problem:

I'm trying to debug issues in my OCP4 cluster (including tcpdump stuff) and while this works:

```
oc debug node/<node>
chroot /host
podman run -it --name rhel-tools --privileged                       \
      --ipc=host --net=host --pid=host -e HOST=/host                \
      -e NAME=rhel-tools -e IMAGE=rhel7/rhel-tools                  \
      -v /run:/run -v /var/log:/var/log                             \
      -v /etc/localtime:/etc/localtime -v /:/host rhel7/rhel-tools
```
I'm wondering if there is a better way of doing this that doesn't seem so 'hacky'.

It turns out oc debug allows you to specify a different image, but it just times out.


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


How reproducible:
Try to `oc debug node` with a different image


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

I've tried in a regular OCP4 and crc environments.

Comment 2 Eduardo Minguez 2019-07-08 12:53:12 UTC
Actually, the image is --image=rhel7/rhel-tools and it works:

$ oc debug node/myhost.example.com --image=rhel7/rhel-tools
Starting pod/myhostexamplecom-debug ...
To use host binaries, run `chroot /host`

Pod IP: 10.19.138.11
If you don't see a command prompt, try pressing enter.
sh-4.2#
sh-4.2# tcpdump --version
tcpdump version 4.9.2
libpcap version 1.5.3
OpenSSL 1.0.2k-fips  26 Jan 2017
sh-4.2# exit

Removing debug pod ...


Closing the PEBKAC bugzilla, sorry for the noise.

Comment 3 Eric Rich 2019-11-14 17:16:07 UTC

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