An OpenShift cluster's SDN (OVN-Kubernetes) experiences packet loss between nodes. The administrator needs to inspect the Open vSwitch (OVS) flow tables on a specific worker node. How should they access the node to run 'ovs-ofctl dump-flows'?
oc debug node/<node-name> launches a privileged pod on the target node, and chroot /host enters the host filesystem where ovs-ofctl and the br-int bridge reside. This grants the host-level access needed to dump OVS flow tables.
Why this answer
To inspect OVS flow tables on a specific node, the administrator must run 'ovs-ofctl' inside the node's host network namespace. 'oc debug node/<node-name> -- chroot /host <command>' starts a debug pod on the node, chroots into the host filesystem, and runs the command with access to the host's OVS binaries and sockets — which is exactly what 'ovs-ofctl dump-flows br-int' requires.
Exam trap
The trap is choosing a command that targets a pod or daemonset (oc exec/rsh) instead of the node itself. OVS runs on the host, not inside a pod, so you must use 'oc debug node/<node> -- chroot /host' to reach the host's OVS binaries and sockets.
How to eliminate wrong answers
Option A is wrong because 'oc adm diagnostics ovs' is not a valid diagnostic subcommand — 'oc adm diagnostics' runs cluster diagnostics but has no 'ovs' target. Option C is wrong because 'oc exec daemonset/ovn-controller' is not valid syntax (oc exec requires a pod, not a daemonset), and even if it worked, the ovn-controller container may not have ovs-ofctl or access to the host OVS socket. Option D is wrong because 'oc rsh daemonset/ovnkube-node' is also invalid syntax (rsh takes a pod) and would land in the ovnkube-node container, which does not have the host's OVS database/socket mounted for ovs-ofctl to query br-int.