Bug 1727849 - oc debug node/<mynode> --image=rhel7-toolbox timesout
Summary: oc debug node/<mynode> --image=rhel7-toolbox timesout
Keywords:
Status: CLOSED DUPLICATE of bug 1728135
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-08 11:08 UTC by Eduardo Minguez
Modified: 2019-11-14 17:16 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-08 12:53:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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