Bug 1069198

Summary: Remove ovirt-scheduler-proxy external module failed
Product: Red Hat Enterprise Virtualization Manager Reporter: Martin Sivák <msivak>
Component: ovirt-engineAssignee: Martin Sivák <msivak>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: acathrow, alukiano, dfediuck, eedri, gklein, iheim, lpeer, mavital, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: av4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1065914
: 1076691 (view as bug list) Environment:
Last Closed: 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:
Embargoed:
Bug Depends On: 1065914    
Bug Blocks: 1076691, 1084186    

Description Martin Sivák 2014-02-24 13:03:31 UTC
+++ This bug was initially created as a clone of Bug #1065914 +++

Description of problem:
Remove ovirt-scheduler-proxy external module failed with NullPointerException

Version-Release number of selected component (if applicable):
ovirt-scheduler-proxy-0.1.3-1.20140102.gitffebbc4.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1. Enable scheduler proxy via engine config
2. Add some new external module under /usr/share/ovirt-scheduler-proxy/plugins, it can be filter, score or balance function, run:
service ovirt-scheduler-proxy restart && service ovirt-engine restart
Chech that new module appear under Configure->Cluster Policies
3. Delete module from /usr/share/ovirt-scheduler-proxy/plugins and run service ovirt-scheduler-proxy restart && service ovirt-engine restart, try to remove module under Configure->Cluster Policies->Manage Policy Units

Actual results:
Remove failed, with java NullPointerException in engine.log

Expected results:
Module must removed

Additional info:

--- Additional comment from Artyom on 2014-02-17 04:47:28 EST ---

Also if you have some module for example max_vms_filter.py under /usr/share/ovirt-scheduler-proxy/plugins and edit file and change name of class from max_vms to max_vms_1 under Manage Policy Units I see two filters one that disabled max_vms and one enabled max_vms_1(also it happening after service ovirt-scheduler-proxy restart && service ovirt-engine restart).

--- Additional comment from Itamar Heim on 2014-02-23 03:28:13 EST ---

Setting target release to current version for consideration and review. please
do not push non-RFE bugs to an undefined target release to make sure bugs are
reviewed for relevancy, fix, closure, etc.

Comment 3 Artyom 2014-03-24 14:56:17 UTC
Verified on av4

Comment 4 Itamar Heim 2014-06-12 14:08:11 UTC
Closing as part of 3.4.0