Bug 2160622

Summary: Migration info is logged in bytes and is not readable
Product: Container Native Virtualization (CNV) Reporter: nijin ashok <nashok>
Component: VirtualizationAssignee: Antonio Cardace <acardace>
Status: MODIFIED --- QA Contact: Kedar Bidarkar <kbidarka>
Severity: medium Docs Contact:
Priority: low    
Version: 4.11.2CC: acardace
Target Milestone: ---   
Target Release: 4.14.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.