Bug 2160622 - Migration info is logged in bytes and is not readable
Summary: Migration info is logged in bytes and is not readable
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 4.11.2
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: 4.14.0
Assignee: Antonio Cardace
QA Contact: Akash Kanni
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-13 04:52 UTC by nijin ashok
Modified: 2023-11-08 14:05 UTC (History)
2 users (show)

Fixed In Version: v4.14.0.rhel9-1706
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:05:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 10239 0 None open virt-launcher: log migration info in MB and Mbps 2023-08-04 12:43:02 UTC
Red Hat Issue Tracker CNV-24295 0 None None None 2023-01-13 04:53:54 UTC
Red Hat Product Errata RHSA-2023:6817 0 None None None 2023-11-08 14:05:16 UTC

Description nijin ashok 2023-01-13 04:52:41 UTC
Description of problem:

The live migration info is logged in bytes:

~~~
{"component":"virt-launcher","kind":"","level":"info","msg":"Migration info for d766fd5a-fb08-4e75-8a0b-fade611dce46: TimeElapsed:99761ms DataProcessed:9354377203B DataRemaining:683106304B DataTotal:2165907456B MemoryProcessed:9353328627B MemoryRemaining:683106304B MemoryTotal:2164858880B MemoryBandwidth:114228326B/s DirtyRate:141471744B/s Iteration:8 PostcopyRequests:0 ConstantPages:542207 NormalPages:2277884 NormalData:9330212864B ExpectedDowntime:11448ms DiskBps:0","name":"rhel7-quick-halibut","namespace":"default","pos":"live-migration-source.go:894","timestamp":"2023-01-13T04:23:22.493077Z","uid":"fc42b2e3-39d8-442e-aae8-03cdf0264bc3"}
~~~

This makes it harder to read and convert. It would be easier if it's logged in MB and Mbps.


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

OpenShift Virtualization   4.11.2

How reproducible:

100%

Steps to Reproduce:

Do a live migration and monitor the source virt launcher pod for migration info.

Actual results:

Migration info are logged in bytes and is not easily readable.

Expected results:

Log the data in MB and Mbps.

Additional info:

Comment 1 Kedar Bidarkar 2023-01-18 13:12:03 UTC
Depending upon severity and capacity targeting this bug for CNV 4.14.

Comment 2 Akash Kanni 2023-09-27 09:15:05 UTC
Verified the bug with cluster version :- v4.14.0.rhel9-2082

live migration info is now logged in MiB 

~~~
{"component":"virt-launcher","kind":"","level":"info","msg":"Migration info for ddd02987-6926-466e-ba7a-0353445ce990: TimeElapsed:4114ms DataProcessed:552MiB DataRemaining:228MiB DataTotal:1041MiB MemoryProcessed:551MiB MemoryRemaining:228MiB MemoryTotal:1040MiB MemoryBandwidth:32Mbps DirtyRate:0Mbps Iteration:1 PostcopyRequests:0 ConstantPages:67103 NormalPages:140853 NormalData:550MiB ExpectedDowntime:300ms DiskMbps:0","name":"vm-rhel88-ocs","namespace":"openshift-cnv","pos":"live-migration-source.go:780","timestamp":"2023-09-27T09:03:35.249642Z","uid":"e2991746-0d23-48c3-97fa-360972f2f509"}
~~~

Able to see desired readable logs.

Comment 5 errata-xmlrpc 2023-11-08 14:05:03 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.14.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-2023:6817


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