[ovirt-users] using ovirt-scheduler-proxy
Gilad Chaplik
gchaplik at redhat.com
Wed Nov 5 04:27:32 EST 2014
----- Original Message -----
> From: "Amedeo Salvati" <amedeo at oscert.net>
> To: users at ovirt.org
> Sent: Tuesday, November 4, 2014 5:22:24 PM
> Subject: [ovirt-users] using ovirt-scheduler-proxy
>
> 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?
- update engine configuration (use ovirt-config --set KEY_NAME=KEY_VALUE):
* ExternalSchedulerServiceURL=http://<host>:18781/
* ExternalSchedulerEnabled=true
- restart ovirt-engine service.
- under configure->cluster_policy see that the balance function was added (should be in manage policy units- you will see it in the main dialog as well).
- clone current cluster's used cluster policy (probably none - prefer it to have no balancing modules to avoid conflicts), name it 'your_name' and set it with the external function
- replace cluster's cluster policy with newly created one (in edit cluster dialog).
Thanks,
Gilad.
>
> Best regards
> Amedeo Salvati
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
More information about the Users
mailing list