View log function on virtual machine

  • Related issues: #5266 [BUG] Click View Logs option on virtual machine dashboard can’t display any log entry

Category:

  • Virtual Machines

Verification Steps

  1. Create one virtual machines named vm1 in the Harvester virtual machine page
  2. Wait until the vm1 in running state
  3. Click the View Logs in the side option menu
  4. Check the log panel content of vm
  5. Click the Clear button
  6. Click the Download button
  7. Enter some query sting in the Filter field
  8. Click settings, change the Show the latest to different options
  9. Uncheck/Check the Wrap Lines
  10. Uncheck/Check the Show Timestamps

Expected Results

  • Should display the detailed log entries on the vm log panel including timestamp and content images/virtual-machines/5266-view-vm-log.png
  • All existing logs would be cleaned up
  • Ensure new logs will display on the panel
  • Check can correctly download the log to the .log file and contain all the details
  • Check the log entries contains the filter string can display correctly
  • Check each different options of Show the latest log option can display log according to the settings
  • Check the log entries can be wrapped or unwrapped
  • Check the log entries can display with/without timestamp