Bug 1009016

Summary: External scheduler doesn't load filters/weights/balancers
Product: Red Hat Enterprise Virtualization Manager Reporter: Ondra Machacek <omachace>
Component: ovirt-scheduler-proxyAssignee: Martin Sivák <msivak>
Status: CLOSED NOTABUG QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: iheim, lsvaty, mavital
Target Milestone: ---Keywords: Triaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-02 12:55:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
ovirt-scheduler-proxy.log rpm from 27august
none
diff is11 and upstream none

Description Ondra Machacek 2013-09-17 13:49:55 UTC
Created attachment 798825 [details]
ovirt-scheduler-proxy.log rpm from 27august

Description of problem:
When external scheduler is setted up. Then engine doesn't get any information
about its plugins.

Version-Release number of selected component (if applicable):
is10-is15

How reproducible:
always

Steps to Reproduce:
1. yum install ovirt-scheduler-proxy
2. Create some filter/weight/balancer and add it to /usr/share/ovirt-scheduler-proxy/plugins/
3. rhevm-config -s ExternalSchedulerEnabled=true
4. service ovirt-scheduler-proxy start
5. service ovirt-engine restart
6. Check configure->clusterpolicy->new if you can use external plugins.

Actual results:
There are no external plugins.

Expected results:
It's possible to use external plugins.

Additional info:
Was working fine with rpm which was built on ~27th august from upstream.
But don't work with rpm from is10 - is15.

ovirt-scheduler-proxy.log from is10 rpm contains only:
Tue, 17 Sep 2013 15:32:13 INFO     Setting up server
Tue, 17 Sep 2013 15:32:13 INFO     Loading modules
Tue, 17 Sep 2013 15:32:13 INFO     Loading modules

ovirt-scheduler-proxy.log from rpm built on 27aug are attached.

Attaching also diff from is11 rpm and rpm which is working from 27aug.

Comment 1 Ondra Machacek 2013-09-17 13:51:32 UTC
Created attachment 798826 [details]
diff is11 and upstream

Comment 2 Martin Sivák 2013-09-17 14:59:46 UTC
The plugin API changed twice - first on the 15th of Aug and then again on the 3rd of Sep. Please make sure your test plugins are indeed valid for the release you are testing.

You can find the current example plugins in /usr/share/doc/ovirt-sheduler-proxy*/ directory.

Comment 3 Lukas Svaty 2013-09-24 13:31:07 UTC
Tried external balancer with examples in /usr/share/doc/ovirt-sheduler-proxy*/ directory (vm_balance.py) and balancer was loaded successfully. 

Had the same behaviour when I used old API.

Tested on is16.

Comment 4 Ondra Machacek 2013-10-02 12:55:41 UTC
I tested balancer/weights/filters with old API.

Balancers/weights/filters from current documentation works OK, thus closing as
 not a bug