[ovirt-users] using ovirt-scheduler-proxy
Amedeo Salvati
amedeo at oscert.net
Tue Nov 4 10:22:24 EST 2014
hello guys,
I'm triyng to use ovirt-scheduler-proxy, and for this, now, I'm starting with examples available on:
https://github.com/oVirt/ovirt-scheduler-proxy/tree/master/doc/plugin_samples
so, on ovirt 3.5 fresh installation I've installed ovirt-scheduler-proxy package (by yum), then I've downloaded from above link host_memory_balance.py file under /usr/share/ovirt-scheduler-proxy/plugins directory, I've changed the connection string due to reflect my ovirt engine hostname/port/user/password, and finally I've started the service:
service ovirt-scheduler-proxy start
on log ovirt-scheduler-proxy.log I got:
[root at engine ovirt-scheduler-proxy]# cat /var/log/ovirt-scheduler-proxy/ovirt-scheduler-proxy.log
Tue, 04 Nov 2014 16:01:17 INFO [process:MainProcess, thread:MainThread] Setting up server
Tue, 04 Nov 2014 16:01:17 INFO [process:MainProcess, thread:MainThread] Loading modules from /usr/share/ovirt-scheduler-proxy/plugins
Tue, 04 Nov 2014 16:01:17 INFO [process:MainProcess, thread:MainThread] Loading analyzer from /usr/lib/python2.6/site-packages/ovirtscheduler
Tue, 04 Nov 2014 16:01:17 INFO [process:MainProcess, thread:MainThread] [Request:Main][Method:loadModules] - Trying to load the following files: ['host_memory_balance']
Tue, 04 Nov 2014 16:01:17 DEBUG [process:MainProcess, thread:Thread-1] [Request:Main][Method:PythonMethodRunner] - running ['python', '-c', "import loader; loader.loader().analyze('/usr/share/ovirt-scheduler-proxy/plugins', 'host_memory_balance')"] in /usr/lib/python2.6/site-packages/ovirtscheduler
Tue, 04 Nov 2014 16:01:18 DEBUG [process:MainProcess, thread:MainThread] [Request:Main][Method:loadModules] - script: ['python', '-c', "import loader; loader.loader().analyze('/usr/share/ovirt-scheduler-proxy/plugins', 'host_memory_balance')"]
Tue, 04 Nov 2014 16:01:18 INFO [process:MainProcess, thread:MainThread] [Request:Main][Method:loadModules] - registering: ('host_memory_balance', ('host_memory_balance', 'do_balance', 'selects a vm from the most over utilized vm to migrate.\n if safe_selection is true selects the smallest vm from the host\n if safe_selection is false try and take a vm larger then the amount of memory the host is missing', 'minimum_host_memoryMB=[0-9]*;safe_selection=True|False'))
Tue, 04 Nov 2014 16:01:18 INFO [process:MainProcess, thread:MainThread] [Request:Main][Method:loadModules] - registering::loaded- filters:{} scores:{} balancers:{'host_memory_balance': ('selects a vm from the most over utilized vm to migrate.\n if safe_selection is true selects the smallest vm from the host\n if safe_selection is false try and take a vm larger then the amount of memory the host is missing', 'minimum_host_memoryMB=[0-9]*;safe_selection=True|False')}
Tue, 04 Nov 2014 16:01:18 INFO [process:MainProcess, thread:MainThread] Publishing API
[root at engine ovirt-scheduler-proxy]#
but after that on web ui I can't see any change under cluster policy and under Configure -> Cluster Policies (host_memory_balance balancers is not displayed)
what did I miss?
Best regards
Amedeo Salvati
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20141104/9ec2812e/attachment-0001.html>
More information about the Users
mailing list