Noam Slomianko has posted comments on this change.
Change subject: external scheduler: improve logging
......................................................................
Patch Set 2: Verified+1
Log sample:
Mon, 02 Sep 2013 17:37:43 INFO Setting up server
Mon, 02 Sep 2013 17:37:43 INFO Loading modules from
/home/nslomian/devel/ovirt-scheduler-proxy/plugins
Mon, 02 Sep 2013 17:37:43 INFO Loading analyzer from src/ovirtscheduler
Mon, 02 Sep 2013 17:37:43 INFO [Request:Main][Method:loadModules] - Trying
to load the following files: ['test_plugin']
Mon, 02 Sep 2013 17:37:43 DEBUG [Request:Main][Method:PythonMethodRunner] -
running ['python', '-c', "import loader;
loader.loader().analyze('/home/nslomian/devel/ovirt-scheduler-proxy/plugins',
'test_plugin')"] in src/ovirtscheduler
Mon, 02 Sep 2013 17:37:43 DEBUG [Request:Main][Method:loadModules] - script:
['python', '-c', "import loader;
loader.loader().analyze('/home/nslomian/devel/ovirt-scheduler-proxy/plugins',
'test_plugin')"]
Mon, 02 Sep 2013 17:37:43 INFO [Request:Main][Method:loadModules] -
registering: ('test_plugin', ('test_plugin', 'do_filter', 'This is a simple
filter that returns all given host ID', ''), ('test_plugin', 'do_score', 'This
is a simple score function that returns all given host ID with score 50', ''),
('test_plugin', 'do_balance', 'This is a fake balance function that always
return the guid 33333333-3333-3333-3333-333333333333', ''))
Mon, 02 Sep 2013 17:37:43 INFO [Request:Main][Method:loadModules] -
registering::loaded- filters:{'test_plugin': ('This is a simple filter that
returns all given host ID', '')} scores:{'test_plugin': ('This is a simple
score function that returns all given host ID with score 50', '')}
balancers:{'test_plugin': ('This is a fake balance function that always return
the guid 33333333-3333-3333-3333-333333333333', '')}
Mon, 02 Sep 2013 17:37:43 INFO Publishing API
Mon, 02 Sep 2013 17:37:46 INFO
[Request:3bf644c2-13dd-11e3-8541-f0def1bd7588][Method:discover] - got request
Mon, 02 Sep 2013 17:37:46 INFO
[Request:3bf644c2-13dd-11e3-8541-f0def1bd7588][Method:discover] - returning:
{'balance': {'test_plugin': ('This is a fake balance function that always
return the guid 33333333-3333-3333-3333-333333333333', '')}, 'filters':
{'test_plugin': ('This is a simple filter that returns all given host ID',
'')}, 'scores': {'test_plugin': ('This is a simple score function that returns
all given host ID with score 50', '')}}
Mon, 02 Sep 2013 17:37:46 INFO
[Request:3bfb134e-13dd-11e3-be9e-f0def1bd7588][Method:run_filters] - got
request: ['test_plugin']
Mon, 02 Sep 2013 17:37:46 DEBUG
[Request:3bfb134e-13dd-11e3-be9e-f0def1bd7588][Method:PythonMethodRunner] -
running ['python', '-c', "import test_plugin;
test_plugin.test_plugin().do_filter(['11111111-1111-1111-1111-111111111111',
'22222222-2222-2222-2222-222222222222'],
'33333333-3333-3333-3333-333333333333', '')"] in
/home/nslomian/devel/ovirt-scheduler-proxy/plugins
Mon, 02 Sep 2013 17:37:46 DEBUG
[Request:3bfb134e-13dd-11e3-be9e-f0def1bd7588][Method:run_filters] - Waiting
for filters to finish
Mon, 02 Sep 2013 17:37:46 DEBUG
[Request:3bfb134e-13dd-11e3-be9e-f0def1bd7588][Method:run_filters] -
Aggregating results
Mon, 02 Sep 2013 17:37:46 INFO
[Request:3bfb134e-13dd-11e3-be9e-f0def1bd7588][Method:run_filters] - returning:
['11111111-1111-1111-1111-111111111111', '22222222-2222-2222-2222-222222222222']
Mon, 02 Sep 2013 17:37:46 INFO
[Request:3c01336e-13dd-11e3-ab28-f0def1bd7588][Method:run_filters] - got
request: [['test_plugin', 2]]
Mon, 02 Sep 2013 17:37:46 DEBUG
[Request:3c01336e-13dd-11e3-ab28-f0def1bd7588][Method:PythonMethodRunner] -
running ['python', '-c', "import test_plugin;
test_plugin.test_plugin().do_score(['11111111-1111-1111-1111-111111111111',
'22222222-2222-2222-2222-222222222222'],
'33333333-3333-3333-3333-333333333333', '')"] in
/home/nslomian/devel/ovirt-scheduler-proxy/plugins
Mon, 02 Sep 2013 17:37:46 DEBUG
[Request:3c01336e-13dd-11e3-ab28-f0def1bd7588][Method:run_filters] - Waiting
for scoring to finish
Mon, 02 Sep 2013 17:37:46 DEBUG
[Request:3c01336e-13dd-11e3-ab28-f0def1bd7588][Method:run_filters] -
Aggregating results
Mon, 02 Sep 2013 17:37:46 INFO
[Request:3c01336e-13dd-11e3-ab28-f0def1bd7588][Method:run_filters] - returning:
[('11111111-1111-1111-1111-111111111111', 100),
('22222222-2222-2222-2222-222222222222', 100)]
Mon, 02 Sep 2013 17:37:46 INFO
[Request:3c07b7c0-13dd-11e3-bc1f-f0def1bd7588][Method:run_filters] - got
request: test_plugin
Mon, 02 Sep 2013 17:37:46 DEBUG
[Request:3c07b7c0-13dd-11e3-bc1f-f0def1bd7588][Method:PythonMethodRunner] -
running ['python', '-c', "import test_plugin;
test_plugin.test_plugin().do_balance(['11111111-1111-1111-1111-111111111111',
'22222222-2222-2222-2222-222222222222'], '')"] in
/home/nslomian/devel/ovirt-scheduler-proxy/plugins
Mon, 02 Sep 2013 17:37:46 DEBUG
[Request:3c07b7c0-13dd-11e3-bc1f-f0def1bd7588][Method:run_filters] - Waiting
for balance to finish
Mon, 02 Sep 2013 17:37:46 INFO
[Request:3c07b7c0-13dd-11e3-bc1f-f0def1bd7588][Method:run_filters] - returning:
('33333333-3333-3333-3333-333333333333',
['11111111-1111-1111-1111-111111111111'])
--
To view, visit http://gerrit.ovirt.org/18789
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I2afa5c5c25df3f015cc9a511c0e36185d2bdde12
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-scheduler-proxy
Gerrit-Branch: master
Gerrit-Owner: Noam Slomianko <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Martin Sivák <[email protected]>
Gerrit-Reviewer: Noam Slomianko <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: No
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches