Bug 2080132 - virt-launcher logs live migration in nanoseconds if the migration is stuck
Summary: virt-launcher logs live migration in nanoseconds if the migration is stuck
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 4.10.3
Hardware: All
OS: Linux
high
high
Target Milestone: ---
: 4.11.0
Assignee: Jed Lejosne
QA Contact: Denys Shchedrivyi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-29 05:50 UTC by nijin ashok
Modified: 2025-10-03 11:57 UTC (History)
2 users (show)

Fixed In Version: hco-bundle-registry-container-v4.11.0-315 virt-launcher-container-v4.11.0-55
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-14 19:31:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 7654 0 None Merged Show migration progress timeout in actual seconds 2022-05-06 08:39:59 UTC
Red Hat Issue Tracker CNV-17895 0 None None None 2023-11-13 08:19:01 UTC
Red Hat Product Errata RHSA-2022:6526 0 None None None 2022-09-14 19:31:34 UTC

Description nijin ashok 2022-04-29 05:50:11 UTC
Description of problem:

If the migration is stuck, the virt-launcher logs the message as below in nanoseconds:

~~~
2022-04-26T21:13:55.787653425Z {"component":"virt-launcher","kind":"","level":"error","msg":"Live migration abort detected with reason: Live migration stuck for 151375341154 sec and has been aborted","name":"a61b96652007"}
~~~

This should be logged in seconds instead of nanoseconds.

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

OpenShift Virtualization   4.10.0

How reproducible:

100%

Steps to Reproduce:

1. The VM has to hit the progresstimeout to show that error message. For testing, this can be achieved by reducing the progressTimeout and bandwidthPerMigration. 

Actual results:

virt-launcher logs live migration in nanoseconds if the migration is stuck

Expected results:

Log migration stuck message in seconds.

Additional info:

Comment 1 Antonio Cardace 2022-05-06 08:39:22 UTC
Fixed upstream with https://github.com/kubevirt/kubevirt/pull/7654.

Comment 3 Denys Shchedrivyi 2022-05-17 21:45:52 UTC
Verified on CNV v4.11.0-334, time is in seconds:

> {"component":"virt-launcher","kind":"","level":"error","msg":"Live migration abort detected with reason: Live migration stuck for 2 seconds and has been aborted" ...

Comment 5 errata-xmlrpc 2022-09-14 19:31:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Virtualization 4.11.0 Images security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:6526


Note You need to log in before you can comment on or make changes to this bug.