Description of problem: filtering with non existing plugin returns empty list Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. call filter with a plugin that does not exist 2. get the result Actual results: empty list Expected results: exception Additional info:
proxy part merged c9773f898698f2b84b47e3410a4357698cb66b6c
Verified on is25, no exception in engine.log
After discussion with Doron and Martin revealed that, if filter is corrupted or missing external scheduler must return all hosts and vm must run.
Checked on is26, Can't run vm, when corrupted filter function is added to ovirt-sheduler-proxy engine.log: Cant find VDS to run the VM 687e60b6-5632-4c97-80c1-23a63f61c550 on, so this VM will not be run ovirt-sheduler-proxy.log Fri, 06 Dec 2013 08:53:55 DEBUG [process:MainProcess, thread:Thread-7] [Request:2c9637ac-5e43-11e3-9f2b-001a4a1697fa][Method:run_filters] - Waiting for filters to finish Fri, 06 Dec 2013 08:53:55 ERROR [process:MainProcess, thread:Thread-8] [Request:2c9637ac-5e43-11e3-9f2b-001a4a1697fa][Method:PythonMethodRunner] - script ['python', '-c', "import max_vm_filter; max_vm_filter.max_vms().do_filter(['1ab5d0d9-5f2d-4994-8f6e-773870b1d1a0'], '687e60b6-5632-4c97-80c1-23a63f61c550', {})"] got error Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named max_vm_filter Fri, 06 Dec 2013 08:53:55 DEBUG [process:MainProcess, thread:Thread-7] [Request:2c9637ac-5e43-11e3-9f2b-001a4a1697fa][Method:run_filters] - Aggregating results Fri, 06 Dec 2013 08:53:55 WARNING [process:MainProcess, thread:Thread-7] Error in ['python', '-c', "import max_vm_filter; max_vm_filter.max_vms().do_filter(['1ab5d0d9-5f2d-4994-8f6e-773870b1d1a0'], '687e60b6-5632-4c97-80c1-23a63f61c550', {})"] (errno: 1, errors: Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named max_vm_filter ) Fri, 06 Dec 2013 08:53:55 INFO [process:MainProcess, thread:Thread-7] [Request:2c9637ac-5e43-11e3-9f2b-001a4a1697fa][Method:run_filters] - returning: [] So if module not exist on rhevm but exist in db, run vms is failed
*** This bug has been marked as a duplicate of bug 1002444 ***
Not sure that it's duplicate bugs, because you have different conditions and also different reproduce steps
(In reply to Artyom from comment #11) > Not sure that it's duplicate bugs, because you have different conditions and > also different reproduce steps It's a nuance on what causes an empty list using the same backing code. Not worth monitoring and testing twice since we unify these scenarios now.