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

Debug pod logs are not accessible when debugging a node via OpenShift Console

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • 4.18.0
    • 4.12.z
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • Done
    • Release Note Not Required
    • N/A
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-53065. The following is the description of the original issue:

      Description of problem:

          When debugging a node using the OpenShift Console, the logs of the <NodeName>-debug pod are not accessible from either the Console UI or the CLI. However, when debugging the node via CLI (oc debug node/<node_name>), the logs are accessible as expected.

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

          OpenShift Versions Tested: 4.8.14, 4.8.18, 4.9.0 ... so 4.12

      How reproducible:

          always

      Steps to Reproduce:

      1. Open OpenShift Console.
      2. Navigate to Compute → Node → <node_name> → Terminal.
      3. Run any command in the terminal.
      4. A new <NodeName>-debug pod is created in a dynamically generated namespace (openshift-debug-node-xxx).
      5. Try to access logs:
      
      Console UI: Workloads → Pod → <NodeName>-debug → Logs → Logs not visible.
      CLI: Run oc logs <NodeName-debug_pod> -n <openshift-debug-node-xxx> → No logs available.

      Actual results:

      Logs of the <NodeName>-debug pod are not available in either the Console UI or CLI when debugging via Console.

      Expected results:

      The <NodeName>-debug pod logs should be accessible in both the Console UI and CLI, similar to the behavior observed when debugging via oc debug node/<node_name>.

      Additional info:

      Debugging via CLI (oc debug node/<node_name>) creates the debug pod in the current namespace (e.g., <project_name>). Logs are accessible via:
      
      $ oc logs -n <project_name> -f <NodeName-debug_pod>
      
      Debugging via Console creates the pod in a new dynamic namespace (openshift-debug-node-xxx), and logs are not accessible.
      
      Possible Cause:
      Namespace issue - Debug pod is created in openshift-debug-node-xxx, which may not be configured to expose logs correctly.

              rh-ee-mziska Marek Ziska
              openshift-crt-jira-prow OpenShift Prow Bot
              None
              None
              YaDan Pei YaDan Pei
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: