Hide Forgot
Description of problem: In 4.2 vdsClient is deprecated so using vdsm-client in tests I get timeout failiures. When I tested both utilities on a 4.1 host I noticed vdsm-client takes X4 than vdsClient . Version-Release number of selected component (if applicable): 4.1.3.4 How reproducible: 100% Steps to Reproduce: On a 4.1 host with vdsm-client installed do: 1.run 'time vdsClient -s 0 getVdsHardwareInfo' 2.run 'time vdsm-client Host getHardwareInfo' Actual results: vdsm-client takes at least X4 more than vdsClient Expected results: vdsm-client takes at least X4 more than vdsClient Additional info: Taken from client CLI : [root@storage-ge3-vdsm1 ~]# time vdsClient -s 0 getVdsHardwareInfo systemFamily = 'Red Hat Enterprise Linux' systemManufacturer = 'Red Hat' systemProductName = 'RHEV Hypervisor' systemSerialNumber = '4C4C4544-0053-5410-8047-B9C04F465931' systemUUID = '07FD09C7-8461-4981-B859-A40C548E10FF' systemVersion = '7.2-9.el7_2.1' real 0m0.382s user 0m0.272s sys 0m0.056s [root@storage-ge3-vdsm1 ~]# time vdsm-client Host getHardwareInfo { "systemProductName": "RHEV Hypervisor", "systemSerialNumber": "4C4C4544-0053-5410-8047-B9C04F465931", "systemFamily": "Red Hat Enterprise Linux", "systemVersion": "7.2-9.el7_2.1", "systemUUID": "07FD09C7-8461-4981-B859-A40C548E10FF", "systemManufacturer": "Red Hat" } real 0m1.208s user 0m0.966s sys 0m0.111s
Avihai - is there any special reason this is on Storage? It seems like a general infra issue.
As discussed in the main thread with Piotr Kliczewski , issue has been opened to track this issue.
I suggest to pickle the schema to a file and package it so the command line client could use it.
After examining loading pickle schema instead of yaml schema, it looks like running time with pickle is almost twice faster than yaml. # time vdsm-client Host getHardwareInfo no changes (yaml schema): real 0m0.951s user 0m0.888s sys 0m0.053s using pickle schema: real 0m0.535s user 0m0.483s sys 0m0.041s
ok, # rpm -qf `which vdsm-client` ; time vdsm-client Host getHardwareInfo vdsm-client-4.20.19-1.el7ev.noarch { "systemProductName": "PowerEdge M420", "systemUUID": "4C4C4544-004C-4B10-8046-B6C04F313332", "systemSerialNumber": "6LKF132", "systemManufacturer": "Dell Inc." } real 0m0.369s user 0m0.301s sys 0m0.034s
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.