
--_=__=_XaM3_.1415114544.2A.578889.42.26172.52.42.007.1756584802 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0A hello guys,=0A I'm triyng to use ovirt-scheduler-proxy, and for t= his, now, I'm starting with examples available on:=0A https://github.co= m/oVirt/ovirt-scheduler-proxy/tree/master/doc/plugin_samples=0A 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 fi= le 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:=0A service ovirt-schedu= ler-proxy start=0A on log ovirt-scheduler-proxy.log I got:=0A [root@e= ngine ovirt-scheduler-proxy]# cat /var/log/ovirt-scheduler-proxy/ovirt-sc= heduler-proxy.log=0A Tue, 04 Nov 2014 16:01:17 INFO [process:MainPr= ocess, thread:MainThread] Setting up server=0A Tue, 04 Nov 2014 16:01:1= 7 INFO [process:MainProcess, thread:MainThread] Loading modules from = /usr/share/ovirt-scheduler-proxy/plugins=0A Tue, 04 Nov 2014 16:01:17 I= NFO [process:MainProcess, thread:MainThread] Loading analyzer from /u= sr/lib/python2.6/site-packages/ovirtscheduler=0A Tue, 04 Nov 2014 16:01= :17 INFO [process:MainProcess, thread:MainThread] [Request:Main][Meth= od:loadModules] - Trying to load the following files: ['host_memory_balan= ce']=0A 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-schedule= r-proxy/plugins', 'host_memory_balance')"] in /usr/lib/python2.6/site-pac= kages/ovirtscheduler=0A Tue, 04 Nov 2014 16:01:18 DEBUG [process:Mai= nProcess, thread:MainThread] [Request:Main][Method:loadModules] - script:= ['python', '-c', "import loader; loader.loader().analyze('/usr/share/ovi= rt-scheduler-proxy/plugins', 'host_memory_balance')"]=0A Tue, 04 Nov 20= 14 16:01:18 INFO [process:MainProcess, thread:MainThread] [Request:Ma= in][Method:loadModules] - registering: ('host_memory_balance', ('host_mem= ory_balance', 'do_balance', 'selects a vm from the most over utilized vm = to migrate.\n if safe_selection is true selects the smallest vm fr= om 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=3D= [0-9]*;safe_selection=3DTrue|False'))=0A Tue, 04 Nov 2014 16:01:18 INFO= [process:MainProcess, thread:MainThread] [Request:Main][Method:loadM= odules] - registering::loaded- filters:{} scores:{} balancers:{'hos= t_memory_balance': ('selects a vm from the most over utilized vm to migra= te.\n if safe_selection is true selects the smallest vm from the h= ost\n if safe_selection is false try and take a vm larger then the= amount of memory the host is missing', 'minimum_host_memoryMB=3D[0-9]*;s= afe_selection=3DTrue|False')}=0A Tue, 04 Nov 2014 16:01:18 INFO [pr= ocess:MainProcess, thread:MainThread] Publishing API=0A [root@engine ov= irt-scheduler-proxy]#=0A but after that on web ui I can't see any chang= e under cluster policy and under Configure -> Cluster Policies (host_memo= ry_balance balancers is not displayed)=0A what did I miss?=0A Best re= gards=0A Amedeo Salvati=0A --_=__=_XaM3_.1415114544.2A.578889.42.26172.52.42.007.1756584802 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0A<div class=3D"xam_msg_class">=0A<font size=3D"2">hello guys,<br /><br = />I'm triyng to use ovirt-scheduler-proxy, and for this, now, I'm startin= g with examples available on:<br /><br />https://github.com/oVirt/ovirt-s= cheduler-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 conn= ection 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=C2=A0= =C2=A0=C2=A0=C2=A0 [process:MainProcess, thread:MainThread] Setting up se= rver<br />Tue, 04 Nov 2014 16:01:17 INFO=C2=A0=C2=A0=C2=A0=C2=A0 [process= :MainProcess, thread:MainThread] Loading modules from /usr/share/ovirt-sc= heduler-proxy/plugins<br />Tue, 04 Nov 2014 16:01:17 INFO=C2=A0=C2=A0=C2=A0= =C2=A0 [process:MainProcess, thread:MainThread] Loading analyzer from /us= r/lib/python2.6/site-packages/ovirtscheduler<br />Tue, 04 Nov 2014 16:01:= 17 INFO=C2=A0=C2=A0=C2=A0=C2=A0 [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=C2=A0=C2=A0=C2= =A0 [process:MainProcess, thread:Thread-1] [Request:Main][Method:PythonMe= thodRunner] - running ['python', '-c', "import loader; loader.loader= ().analyze('/usr/share/ovirt-scheduler-proxy/plugins', 'host_memory_balan= ce')"] in /usr/lib/python2.6/site-packages/ovirtscheduler<br />Tue, = 04 Nov 2014 16:01:18 DEBUG=C2=A0=C2=A0=C2=A0 [process:MainProcess, thread= :MainThread] [Request:Main][Method:loadModules] - script: ['python', '-c'= , "import loader; loader.loader().analyze('/usr/share/ovirt-schedule= r-proxy/plugins', 'host_memory_balance')"]<br />Tue, 04 Nov 2014 16:= 01:18 INFO=C2=A0=C2=A0=C2=A0=C2=A0 [process:MainProcess, thread:MainThrea= d] [Request:Main][Method:loadModules] - registering: ('host_memory_balanc= e', ('host_memory_balance', 'do_balance', 'selects a vm from the most ove= r utilized vm to migrate.\n=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if = safe_selection is true selects the smallest vm from the host\n=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if safe_selection is false try and take a = vm larger then the amount of memory the host is missing', 'minimum_host_m= emoryMB=3D[0-9]*;safe_selection=3DTrue|False'))<br />Tue, 04 Nov 2014 16:= 01:18 INFO=C2=A0=C2=A0=C2=A0=C2=A0 [process:MainProcess, thread:MainThrea= d] [Request:Main][Method:loadModules] - registering::loaded- filters:{}=C2= =A0=C2=A0=C2=A0 scores:{}=C2=A0=C2=A0=C2=A0 balancers:{'host_memory_balan= ce': ('selects a vm from the most over utilized vm to migrate.\n=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if safe_selection is true selects the s= mallest vm from the host\n=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if s= afe_selection is false try and take a vm larger then the amount of memory= the host is missing', 'minimum_host_memoryMB=3D[0-9]*;safe_selection=3DT= rue|False')}<br />Tue, 04 Nov 2014 16:01:18 INFO=C2=A0=C2=A0=C2=A0=C2=A0 = [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 Policie= s (host_memory_balance balancers is not displayed)<br /><br />what did I = miss?<br /><br />Best regards<br />Amedeo Salvati</font>=0A</div>=0A --_=__=_XaM3_.1415114544.2A.578889.42.26172.52.42.007.1756584802--