Change in vdsm[ovirt-3.5]: API: getVMList: compatibity with internal clients

fromani at redhat.com fromani at redhat.com
Wed Mar 18 12:08:55 UTC 2015


Francesco Romani has posted comments on this change.

Change subject: API: getVMList: compatibity with internal clients
......................................................................


Patch Set 1:

Verification (1/3): vdsm 3.5 with Engine 3.5.0 (OK)

MOM OK:
2015-03-18 13:03:36,375 - mom.Monitor - INFO - GuestMonitor-FBD_1 running

2015-03-18 13:03:56,399 - mom.Monitor - INFO - GuestMonitor-FBD_1 running

2015-03-18 13:04:11,414 - mom.Monitor - INFO - GuestMonitor-FBD_1 running


JSONRPC OK:
Thread-221::DEBUG::2015-03-18 13:01:06,163::__init__::469::jsonrpc.JsonRpcServer::(_serveRequest) Calling 'Host.getVMList' in bridge with {}
Thread-221::DEBUG::2015-03-18 13:01:06,164::__init__::500::jsonrpc.JsonRpcServer::(_serveRequest) Return 'Host.getVMList' in bridge with [u'd9be4550-7af1-4580-9430-4bfdaa7d50cf']
Thread-221::DEBUG::2015-03-18 13:01:06,164::stompReactor::163::yajsonrpc.StompServer::(send) Sending response
JsonRpc (StompReactor)::DEBUG::2015-03-18 13:01:06,168::stompReactor::98::Broker.StompAdapter::(handle_frame) Handling message <StompFrame command='SEND'>
JsonRpcServer::DEBUG::2015-03-18 13:01:06,169::__init__::506::jsonrpc.JsonRpcServer::(serve_requests) Waiting for request
Thread-222::DEBUG::2015-03-18 13:01:06,169::__init__::469::jsonrpc.JsonRpcServer::(_serveRequest) Calling 'VM.getStats' in bridge with {u'vmID': u'd9be4550-7af1-4580-9430-4bfdaa7d50cf'}
Thread-222::DEBUG::2015-03-18 13:01:06,170::__init__::500::jsonrpc.JsonRpcServer::(_serveRequest) Return 'VM.getStats' in bridge with [{'status': 'Powering up', 'displayInfo': [{'tlsPort': u'5900', 'ipAddress': '192.168.1.39', 'type': 'spice', 'port': '-1'}], 'hash': '-4933515864005718306', 'acpiEnable': u'true', 'guestFQDN': '', 'pid': '7946', 'displayIp': '192.168.1.39', 'ioTune': [], 'displayPort': '-1', 'session': 'Unknown', 'displaySecurePort': u'5900', 'timeOffset': u'0', 'memUsage': '0', 'balloonInfo': {}, 'pauseCode': 'NOERR', 'clientIp': '', 'elapsedTime': '4', 'kvmEnable': u'true', 'network': {}, 'vmId': u'd9be4550-7af1-4580-9430-4bfdaa7d50cf', 'vmType': u'kvm', 'cpuUser': '0.00', 'disks': {u'vda': {'readLatency': '0', 'apparentsize': '5502926848', 'writeLatency': '0', 'imageID': u'ba737308-0fca-4c6d-8f0f-42a6e762c555', 'flushLatency': '0', 'truesize': '5502926848'}, u'vdc': {'readLatency': '0', 'apparentsize': '1073741824', 'writeLatency': '0', 'imageID': u'5180f2!
 92-ea83-44ec-82f5-bc3aed59384c', 'flushLatency': '0', 'truesize': '1073741824'}, u'vdb': {'readLatency': '0', 'apparentsize': '1073741824', 'writeLatency': '0', 'imageID': u'3b12ce02-d9da-46f8-a743-b3937bf5a6d2', 'flushLatency': '0', 'truesize': '1073741824'}, u'hdc': {'flushLatency': '0', 'readLatency': '0', 'truesize': '0', 'apparentsize': '0', 'writeLatency': '0'}}, 'monitorResponse': '0', 'statsAge': '1.85', 'username': 'Unknown', 'displayType': u'qxl', 'cpuSys': '0.00', 'guestCPUCount': -1, 'appsList': [], 'guestIPs': ''}]

Thread-233::DEBUG::2015-03-18 13:01:18,607::__init__::469::jsonrpc.JsonRpcServer::(_serveRequest) Calling 'Host.getVMFullList' in bridge with {u'vmList': [u'd9be4550-7af1-4580-9430-4bfdaa7d50cf']}
Thread-233::DEBUG::2015-03-18 13:01:18,609::__init__::500::jsonrpc.JsonRpcServer::(_serveRequest) Return 'Host.getVMFullList' in bridge with [{u'acpiEnable': u'true', [...]

Thread-241::DEBUG::2015-03-18 13:01:28,028::__init__::469::jsonrpc.JsonRpcServer::(_serveRequest) Calling 'Host.getAllVmStats' in bridge with {}
Thread-241::DEBUG::2015-03-18 13:01:28,030::__init__::500::jsonrpc.JsonRpcServer::(_serveRequest) Return 'Host.getAllVmStats' in bridge with [{'displayInfo': [{'tlsPort': u'5900', 'ipAddress': '192.168.1.39', 'type': 'spice', 'port': '-1'}], 'memUsage': '11', 'acpiEnable': u'true', 'guestFQDN': u'localhost.localdomain', 'pid': '7946', 'session': 'Unknown', 'netIfaces': [], 'timeOffset': u'0', 'balloonInfo': {'balloon_max': '4194304', 'balloon_min': '4194304', 'balloon_target': '4194304', 'balloon_cur': '4194304'}, 'pauseCode': 'NOERR', 'disksUsage': [{u'path': u'/sys/fs/pstore', u'total': '0', u'used': '0', u'fs': u'pstore'}, {u'path': u'/', u'total': '18369396736', u'used': '3931250688', u'fs': u'ext4'}, {u'path': u'/sys/kernel/config', u'total': '0', u'used': '0', u'fs': u'configfs'}, {u'path': u'/boot', u'total': '499355648', u'used': '93746176', u'fs': u'ext4'}], 'network': {u'vnet0': {'macAddr': u'00:1a:4a:d8:81:01', 'rxDropped': '0', 'rxErrors': '0', 'txDropped': '0', !
 'txRate': '0.0', 'rxRate': '0.0', 'txErrors': '0', 'state': 'unknown', 'speed': '1000', 'name': u'vnet0'}}, 'memoryStats': {u'swap_out': '0', u'majflt': '57', u'swap_usage': '0', u'mem_cached': '200608', u'mem_free': '3701748', u'mem_buffers': '25072', u'swap_in': '0', u'swap_total': '2097148', u'pageflt': '55898', u'mem_total': '4048324', u'mem_unused': '3476068'}, 'guestName': u'localhost.localdomain', 'elapsedTime': '26', 'vmJobs': {}, 'cpuSys': '12.83', 'appsList': [u'kernel-3.11.10-301.fc20', u'xorg-x11-drv-qxl-0.1.1-3.fc20', u'ovirt-guest-agent-common-1.0.10-1.fc20'], 'guestOs': u'3.11.10-301.fc20.x86_64', 'displayType': u'qxl', 'vcpuCount': '2', 'clientIp': '', 'hash': '-7613369818897856376', 'guestCPUCount': -1, 'vmType': u'kvm', 'vmId': u'd9be4550-7af1-4580-9430-4bfdaa7d50cf', 'displayIp': '192.168.1.39', 'vcpuPeriod': 100000L, 'displayPort': '-1', 'vcpuQuota': '-1', 'kvmEnable': u'true', 'disks': {u'vda': {'readLatency': '0', 'apparentsize': '5502926848', 'writeLa!
 tency': '0', 'imageID': u'ba737308-0fca-4c6d-8f0f-42a6e762c555', 'flushLatency': '0', 'truesize': '5502926848'}, u'vdc': {'readLatency': '0', 'apparentsize': '1073741824', 'writeLatency': '0', 'imageID': u'5180f292-ea83-44ec-82f5-bc3aed59384c', 'flushLatency': '0', 'truesize': '1073741824'}, u'vdb': {'readLatency': '0', 'apparentsize': '1073741824', 'writeLatency': '0', 'imageID': u'3b12ce02-d9da-46f8-a743-b3937bf5a6d2', 'flushLatency': '0', 'truesize': '1073741824'}, u'hdc': {'flushLatency': '0', 'readLatency': '0', 'truesize': '0', 'apparentsize': '0', 'writeLatency': '0'}}, 'monitorResponse': '0', 'statsAge': '1.66', 'username': u'(unknown)', 'cpuUser': '48.79', 'status': 'Up', 'lastLogin': 1426680086.819068, 'ioTune': [], 'guestIPs': '', 'displaySecurePort': u'5900'}]

JSONRPC Engine LOGS OK

MOM: no related by transport, still OK as expected:
2015-03-18 13:06:06,497 - mom.Monitor - INFO - GuestMonitor-FBD_1 running
2015-03-18 13:06:06,498 - mom.Collectors.GuestMemory - WARNING - getVmMemoryStats() error: The ovirt-guest-agent is not active
2015-03-18 13:06:09,038 - mom.RPCServer - INFO - getStatistics()
2015-03-18 13:06:11,503 - mom.Monitor - INFO - GuestMonitor-FBD_1 running

XMLRPC OK: 

Thread-441::DEBUG::2015-03-18 13:06:05,619::BindingXMLRPC::1133::vds::(wrapper) client [192.168.1.183]::call getVMList with () {} flowID [9585461]
Thread-441::DEBUG::2015-03-18 13:06:05,620::BindingXMLRPC::1140::vds::(wrapper) return getVMList with {'status': {'message': 'Done', 'code': 0}, 'vmList': [{'status': 'Up', 'vmId': 'd9be4550-7af1-4580-9430-4bfdaa7d50cf'}]}

Thread-441::DEBUG::2015-03-18 13:06:05,642::BindingXMLRPC::1133::vds::(wrapper) client [192.168.1.183]::call getVMList with ('true', ['d9be4550-7af1-4580-9430-4bfdaa7d50cf']) {} flowID [9585461]
Thread-441::DEBUG::2015-03-18 13:06:05,642::BindingXMLRPC::1140::vds::(wrapper) return getVMList with {'status': {'message': 'Done', 'code': 0}, 'vmList': [{'acpiEnable': 'true', [...]

Thread-441::DEBUG::2015-03-18 13:06:09,078::BindingXMLRPC::1133::vds::(wrapper) client [192.168.1.183]::call getAllVmStats with () {}
Thread-441::DEBUG::2015-03-18 13:06:09,079::BindingXMLRPC::1140::vds::(wrapper) return getAllVmStats with {'status': {'message': 'Done', 'code': 0}, 'statsList': [{'status': 'Powering up', 'displayInfo': [{'tlsPort': u'5900', 'ipAddress': '192.168.1.39', 'type': 'spice', 'port': '-1'}], 'hash': '-4933515864005718306', 'acpiEnable': 'true', 'guestFQDN': '', 'pid': '9137', 'displayIp': '192.168.1.39', 'ioTune': [], 'displayPort': '-1', 'session': 'Unknown', 'displaySecurePort': u'5900', 'timeOffset': '0', 'memUsage': '0', 'balloonInfo': {}, 'pauseCode': 'NOERR', 'clientIp': '', 'elapsedTime': '5', 'kvmEnable': 'true', 'network': {}, 'vmId': 'd9be4550-7af1-4580-9430-4bfdaa7d50cf', 'vmType': 'kvm', 'cpuUser': '0.00', 'disks': {u'vda': {'readLatency': '0', 'apparentsize': '5502926848', 'writeLatency': '0', 'imageID': 'ba737308-0fca-4c6d-8f0f-42a6e762c555', 'flushLatency': '0', 'truesize': '5502926848'}, u'vdc': {'readLatency': '0', 'apparentsize': '1073741824', 'writeLatency': '0!
 ', 'imageID': '5180f292-ea83-44ec-82f5-bc3aed59384c', 'flushLatency': '0', 'truesize': '1073741824'}, u'vdb': {'readLatency': '0', 'apparentsize': '1073741824', 'writeLatency': '0', 'imageID': '3b12ce02-d9da-46f8-a743-b3937bf5a6d2', 'flushLatency': '0', 'truesize': '1073741824'}, u'hdc': {'flushLatency': '0', 'readLatency': '0', 'truesize': '0', 'apparentsize': '0', 'writeLatency': '0'}}, 'monitorResponse': '0', 'statsAge': '0.35', 'username': 'Unknown', 'displayType': 'qxl', 'cpuSys': '0.00', 'guestCPUCount': -1, 'appsList': [], 'guestIPs': ''}]}

XMLRPC Engine LOGS OK

-- 
To view, visit https://gerrit.ovirt.org/38868
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I0560a262329f729716577b28aa78b177f0929121
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-HasComments: No


More information about the vdsm-patches mailing list