-
Feature Request
-
Resolution: Done
-
Normal
-
None
-
None
-
None
-
Product / Portfolio Work
-
None
-
False
-
None
-
None
-
None
-
-
-
None
-
-
None
-
None
-
None
What is the nature and description of the request?
Customer needs a feature to be able to monitor what commands are executed on each node after debugging node in console.
Steps to Reproduce:
- Open `Console -> Compute -> Node -> <node_name> -> Terminal`
- Try entering any command to test.
- New "<NodeName>-debug" pod gets created. - Check "<NodeName>-debug" pod logs. --> There are no logs
Additional information:
The scenario which is working fine ->
- Run `$ oc project <project_name>`
- Run a dubug command for a node: `$ oc debug node/<node_name>`
- After debug, you will enter in the node. Now try entering any command. [Do not exit from this tab] - After above steps, "<NodeName>-debug" pod gets created in the current namespace.
- Open a new tab. Run `$ oc get pods` in current namespace, you will be able to see a new pod: "<NodeName>-debug"
- Run oc logs command for the debug pod, to check what all commands are executed on the node: `$ oc logs -n <project_name> -f <NodeName-debug_pod>` Here in pod logs, we can see all commands and it's output, which are execute in node
Scenario which is not giving expected output ->
- Open `Console -> Compute -> Node -> <node_name> -> Terminal`
- Try entering any command to test. - A new "openshift-debug-node-xxx" namespace gets created.
- Also new "<NodeName>-debug" pod gets created in this new dynamic namespace.
- But here we are not getting "<NodeName>-debug" pod logs on `Console -> Workloads -> Pod -> <NodeName-debug_pod> -> Logs` As well as, we are not getting logs in CLI with command with oc logs command : `$ oc logs <NodeName-debug_pod> -n <openshift-debug-node-xxx>`
Actual results:
We are able to check "<NodeName>-debug" pod logs in CLI , When we are debugging the node from CLI.
But we are not able to check "<NodeName>-debug" pod logs in CLI or in console , When we are debugging the node from Console.
Expected results:
We should get the "<NodeName>-debug" pod logs in CLI or in console, When we are debugging the node from Console.
Note: We have tested this on OCP 4.8.14/4.8.18/4.9.0, we are not able to check which commands are executed on the node.
- relates to
-
OCPBUGS-53065 Debug pod logs are not accessible when debugging a node via OpenShift Console
-
- Closed
-
-
OCPSTRAT-846 Advanced Audit Logging Framework - Dev Preview
-
- Release Pending
-