This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.12.2. Viewing events
12.2.1. Understanding virtual machine events 复制链接链接已复制到粘贴板!
OpenShift Container Platform events are records of important life-cycle information in a namespace and are useful for monitoring and troubleshooting resource scheduling, creation, and deletion issues.
OpenShift Virtualization adds events for virtual machines and virtual machine instances. These can be viewed from either the web console or the CLI.
See also: Viewing system event information in an OpenShift Container Platform cluster.
You can view the stream events for a running a virtual machine from the Virtual Machine Overview panel of the web console.
The ▮▮ button pauses the events stream.
The ▶ button continues a paused events stream.
Procedure
-
Click Workloads
Virtualization from the side menu. - Click the Virtual Machines tab.
- Select a virtual machine to open the Virtual Machine Overview screen.
- Click Events to view all events for the virtual machine.
12.2.3. Viewing namespace events in the CLI 复制链接链接已复制到粘贴板!
Use the OpenShift Container Platform client to get the events for a namespace.
Procedure
In the namespace, use the
oc get
command:oc get events
$ oc get events
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
12.2.4. Viewing resource events in the CLI 复制链接链接已复制到粘贴板!
Events are included in the resource description, which you can get using the OpenShift Container Platform client.
Procedure
In the namespace, use the
oc describe
command. The following example shows how to get the events for a virtual machine, a virtual machine instance, and the virt-launcher Pod for a virtual machine:oc describe vm <vm>
$ oc describe vm <vm>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow oc describe vmi <vmi>
$ oc describe vmi <vmi>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow oc describe pod virt-launcher-<name>
$ oc describe pod virt-launcher-<name>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow