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

fromani at redhat.com fromani at redhat.com
Wed Mar 18 14:32:36 UTC 2015


Francesco Romani has posted comments on this change.

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


Patch Set 1:

Verification (3/3) vdsm 3.5 vs Engine 3.5.2

MOM OK:
2015-03-18 15:24:38,247 - mom.Monitor - INFO - GuestMonitor-F20_2 starting
2015-03-18 15:24:38,247 - mom.Monitor - INFO - GuestMonitor-F20_2 running
2015-03-18 15:24:38,248 - mom.Collectors.GuestMemory - WARNING - getVmMemoryStats() error: The ovirt-guest-agent is not active
2015-03-18 15:24:41,015 - mom.RPCServer - INFO - getStatistics()
2015-03-18 15:24:43,253 - mom.Monitor - INFO - GuestMonitor-F20_2 running
2015-03-18 15:24:48,259 - mom.Monitor - INFO - GuestMonitor-F20_2 running
2015-03-18 15:24:53,265 - mom.Monitor - INFO - GuestMonitor-F20_2 running
2015-03-18 15:24:56,527 - mom.RPCServer - INFO - getStatistics()
2015-03-18 15:24:58,272 - mom.Monitor - INFO - GuestMonitor-F20_2 running


JSONRPC OK:
Thread-184::DEBUG::2015-03-18 15:24:34,679::__init__::469::jsonrpc.JsonRpcServer::(_serveRequest) Calling 'Host.getVMList' in bridge with {u'onlyUUID': False}
JsonRpcServer::DEBUG::2015-03-18 15:24:34,679::__init__::506::jsonrpc.JsonRpcServer::(serve_requests) Waiting for request
Thread-184::DEBUG::2015-03-18 15:24:34,680::__init__::500::jsonrpc.JsonRpcServer::(_serveRequest) Return 'Host.getVMList' in bridge with [{'status': 'Up', 'vmId': u'79ffbf77-c5be-428b-85d5-fd0dc6e42ad7'}]
Thread-184::DEBUG::2015-03-18 15:24:34,680::stompReactor::163::yajsonrpc.StompServer::(send) Sending response
JsonRpc (StompReactor)::DEBUG::2015-03-18 15:24:34,689::stompReactor::98::Broker.StompAdapter::(handle_frame) Handling message <StompFrame command='SEND'>
JsonRpcServer::DEBUG::2015-03-18 15:24:34,690::__init__::506::jsonrpc.JsonRpcServer::(serve_requests) Waiting for request
Thread-185::DEBUG::2015-03-18 15:24:34,690::__init__::469::jsonrpc.JsonRpcServer::(_serveRequest) Calling 'VM.getStats' in bridge with {u'vmID': u'79ffbf77-c5be-428b-85d5-fd0dc6e42ad7'}
Thread-185::DEBUG::2015-03-18 15:24:34,691::__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': '2391709203636267884', 'acpiEnable': u'true', 'guestFQDN': '', 'pid': '19592', 'displayIp': '192.168.1.39', 'ioTune': [], 'displayPort': '-1', 'session': 'Unknown', 'displaySecurePort': u'5900', 'timeOffset': u'0', 'memUsage': '0', 'balloonInfo': {}, 'pauseCode': 'NOERR', 'clientIp': '', 'elapsedTime': '1', 'kvmEnable': u'true', 'network': {}, 'vmId': u'79ffbf77-c5be-428b-85d5-fd0dc6e42ad7', 'vmType': u'kvm', 'cpuUser': '0.00', 'disks': {u'vda': {'readLatency': '0', 'apparentsize': '5368709120', 'writeLatency': '0', 'imageID': u'5aee470a-03f2-4e16-a8c1-c8b61d2ffb6a', 'flushLatency': '0', 'truesize': '5368709120'}, u'hdc': {'flushLatency': '0', 'readLatency': '0', 'truesize': '0', 'apparentsize': '0', 'writeLaten!
 cy': '0'}}, 'monitorResponse': '0', 'statsAge': '0.66', 'username': 'Unknown', 'displayType': u'qxl', 'cpuSys': '0.00', 'guestCPUCount': -1, 'appsList': [], 'guestIPs': ''}]

Thread-186::DEBUG::2015-03-18 15:24:34,724::__init__::469::jsonrpc.JsonRpcServer::(_serveRequest) Calling 'Host.getVMFullList' in bridge with {u'vmList': [u'79ffbf77-c5be-428b-85d5-fd0dc6e42ad7']}
JsonRpcServer::DEBUG::2015-03-18 15:24:34,724::__init__::506::jsonrpc.JsonRpcServer::(serve_requests) Waiting for request
Thread-186::DEBUG::2015-03-18 15:24:34,726::__init__::500::jsonrpc.JsonRpcServer::(_serveRequest) Return 'Host.getVMFullList' in bridge with [{u'acpiEnable': u'true', [...]

Thread-190::DEBUG::2015-03-18 15:24:41,057::__init__::469::jsonrpc.JsonRpcServer::(_serveRequest) Calling 'Host.getAllVmStats' in bridge with {}
JsonRpcServer::DEBUG::2015-03-18 15:24:41,057::__init__::506::jsonrpc.JsonRpcServer::(serve_requests) Waiting for request
Thread-190::DEBUG::2015-03-18 15:24:41,059::__init__::500::jsonrpc.JsonRpcServer::(_serveRequest) Return 'Host.getAllVmStats' in bridge with [{'status': 'Powering up', 'displayInfo': [{'tlsPort': u'5900', 'ipAddress': '192.168.1.39', 'type': 'spice', 'port': '-1'}], 'hash': '2391709203636267884', 'acpiEnable': u'true', 'guestFQDN': '', 'pid': '19592', 'displayIp': '192.168.1.39', 'ioTune': [], 'displayPort': '-1', 'session': 'Unknown', 'displaySecurePort': u'5900', 'timeOffset': u'0', 'memUsage': '0', 'balloonInfo': {}, 'pauseCode': 'NOERR', 'clientIp': '', 'elapsedTime': '7', 'kvmEnable': u'true', 'network': {}, 'vmId': u'79ffbf77-c5be-428b-85d5-fd0dc6e42ad7', 'vmType': u'kvm', 'cpuUser': '0.00', 'disks': {u'vda': {'readLatency': '0', 'apparentsize': '5368709120', 'writeLatency': '0', 'imageID': u'5aee470a-03f2-4e16-a8c1-c8b61d2ffb6a', 'flushLatency': '0', 'truesize': '5368709120'}, u'hdc': {'flushLatency': '0', 'readLatency': '0', 'truesize': '0', 'apparentsize': '0', 'wri!
 teLatency': '0'}}, 'monitorResponse': '0', 'statsAge': '1.01', 'username': 'Unknown', 'displayType': u'qxl', 'cpuSys': '0.00', 'guestCPUCount': -1, 'appsList': [], 'guestIPs': ''}]


Thread-211::DEBUG::2015-03-18 15:25:06,038::__init__::469::jsonrpc.JsonRpcServer::(_serveRequest) Calling 'Host.getVMList' in bridge with {u'onlyUUID': False}
JsonRpcServer::DEBUG::2015-03-18 15:25:06,038::__init__::506::jsonrpc.JsonRpcServer::(serve_requests) Waiting for request
Thread-211::DEBUG::2015-03-18 15:25:06,039::__init__::500::jsonrpc.JsonRpcServer::(_serveRequest) Return 'Host.getVMList' in bridge with [{'status': 'Up', 'vmId': u'79ffbf77-c5be-428b-85d5-fd0dc6e42ad7'}]
Thread-211::DEBUG::2015-03-18 15:25:06,039::stompReactor::163::yajsonrpc.StompServer::(send) Sending response

JsonRpc (StompReactor)::DEBUG::2015-03-18 15:25:09,063::stompReactor::98::Broker.StompAdapter::(handle_frame) Handling message <StompFrame command='SEND'>
JsonRpcServer::DEBUG::2015-03-18 15:25:09,064::__init__::506::jsonrpc.JsonRpcServer::(serve_requests) Waiting for request
Thread-212::DEBUG::2015-03-18 15:25:09,064::__init__::469::jsonrpc.JsonRpcServer::(_serveRequest) Calling 'Host.getVMList' in bridge with {u'onlyUUID': False}
Thread-212::DEBUG::2015-03-18 15:25:09,065::__init__::500::jsonrpc.JsonRpcServer::(_serveRequest) Return 'Host.getVMList' in bridge with [{'status': 'Up', 'vmId': u'79ffbf77-c5be-428b-85d5-fd0dc6e42ad7'}]

JSONRPC Engine LOGS OK
grep -i classcast *.log -> nothing

MOM: no related to transport, still OK as expected:
2015-03-18 15:30:08,594 - mom.Monitor - INFO - GuestMonitor-F20_2 starting
2015-03-18 15:30:08,594 - mom.Monitor - INFO - GuestMonitor-F20_2 running
2015-03-18 15:30:08,595 - mom.Collectors.GuestMemory - WARNING - getVmMemoryStats() error: The ovirt-guest-agent is not active
2015-03-18 15:30:11,148 - mom.RPCServer - INFO - getStatistics()
2015-03-18 15:30:13,600 - mom.Monitor - INFO - GuestMonitor-F20_2 running
2015-03-18 15:30:18,606 - mom.Monitor - INFO - GuestMonitor-F20_2 running

XMLRPC OK: 

Thread-361::DEBUG::2015-03-18 15:30:07,853::BindingXMLRPC::1133::vds::(wrapper) client [192.168.1.184]::call getVMList with () {}
Thread-361::DEBUG::2015-03-18 15:30:07,853::BindingXMLRPC::1140::vds::(wrapper) return getVMList with {'status': {'message': 'Done', 'code': 0}, 'vmList': [{'status': 'Up', 'vmId': '79ffbf77-c5be-428b-85d5-fd0dc6e42ad7'}]}

Thread-361::DEBUG::2015-03-18 15:30:07,909::BindingXMLRPC::1133::vds::(wrapper) client [192.168.1.184]::call getVMList with ('true', ['79ffbf77-c5be-428b-85d5-fd0dc6e42ad7']) {}
Thread-361::DEBUG::2015-03-18 15:30:07,909::BindingXMLRPC::1140::vds::(wrapper) return getVMList with {'status': {'message': 'Done', 'code': 0}, 'vmList': [{'acpiEnable': 'true', [...]

Thread-361::DEBUG::2015-03-18 15:30:11,233::BindingXMLRPC::1133::vds::(wrapper) client [192.168.1.184]::call getAllVmStats with () {}
Thread-361::DEBUG::2015-03-18 15:30:11,234::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': '2391709203636267884', 'acpiEnable': 'true', 'guestFQDN': '', 'pid': '20862', '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': '79ffbf77-c5be-428b-85d5-fd0dc6e42ad7', 'vmType': 'kvm', 'cpuUser': '0.00', 'disks': {u'vda': {'readLatency': '0', 'apparentsize': '5368709120', 'writeLatency': '0', 'imageID': '5aee470a-03f2-4e16-a8c1-c8b61d2ffb6a', 'flushLatency': '0', 'truesize': '5368709120'}, u'hdc': {'flushLatency': '0', 'readLatency': '0', 'truesize': '0', 'apparents!
 ize': '0', 'writeLatency': '0'}}, 'monitorResponse': '0', 'statsAge': '1.29', '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: Adam Litke <alitke at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skrivanek at redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski at gmail.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-HasComments: No


More information about the vdsm-patches mailing list