Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-11935

command cannot be worked after chroot /host for oc debug pod

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 4.13.0
    • 4.13, 4.14
    • Node / CRI-O
    • Critical
    • Yes
    • Approved
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Using the rhel9 nightly build. when oc debug node/xx chroot /host.  all system command not working well, eg `ip a` show nothing. 
      # oc debug node/worker-0
      Temporary namespace openshift-debug-sgbw8 is created for debugging node...
      Starting pod/worker-0-debug ...
      To use host binaries, run `chroot /host`
      Pod IP: 192.168.111.23
      If you don't see a command prompt, try pressing enter.
      sh-4.4# chroot /host
      sh-5.1# ip a
      sh-5.1# 
      

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

      4.13.0-0.nightly-2023-03-14-053612

      How reproducible:

      always

      Steps to Reproduce:

      1. oc debug node/xx chroot /host --ip a
      2.
      3.
      

      Actual results:

      ip a show nothing

      Expected results:

       

      Additional info:

       

              pehunt@redhat.com Peter Hunt
              zzhao1@redhat.com Zhanqi Zhao
              David Darrah David Darrah (Inactive)
              Zhanqi Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: