<div class="xam_msg_class">
<font size="2">hello guys,<br /><br />I'm triyng to use ovirt-scheduler-proxy, and for this, now, I'm starting with examples available on:<br /><br />https://github.com/oVirt/ovirt-scheduler-proxy/tree/master/doc/plugin_samples<br /><br />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:<br /><br />service ovirt-scheduler-proxy start<br /><br />on log ovirt-scheduler-proxy.log I got:<br /><br /><br />[root@engine ovirt-scheduler-proxy]# cat /var/log/ovirt-scheduler-proxy/ovirt-scheduler-proxy.log <br />Tue, 04 Nov 2014 16:01:17 INFO [process:MainProcess, thread:MainThread] Setting up server<br />Tue, 04 Nov 2014 16:01:17 INFO [process:MainProcess, thread:MainThread] Loading modules from /usr/share/ovirt-scheduler-proxy/plugins<br />Tue, 04 Nov 2014 16:01:17 INFO [process:MainProcess, thread:MainThread] Loading analyzer from /usr/lib/python2.6/site-packages/ovirtscheduler<br />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']<br />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<br />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')"]<br />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'))<br />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')}<br />Tue, 04 Nov 2014 16:01:18 INFO [process:MainProcess, thread:MainThread] Publishing API<br />[root@engine ovirt-scheduler-proxy]#<br /><br />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)<br /><br />what did I miss?<br /><br />Best regards<br />Amedeo Salvati</font>
</div>