Bug 1189096

Summary: Incorrect message when trying to remove a scheduling policy while attached to a cluster
Product: Red Hat Enterprise Virtualization Manager Reporter: Artyom <alukiano>
Component: ovirt-engineAssignee: Dudi Maroshi <dmaroshi>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: adahms, dfediuck, gklein, istein, lsurette, mavital, rbalakri, rgolan, Rhev-m-bugs, sherold, srevivo, ykaul
Target Milestone: ovirt-3.6.0-rcKeywords: Triaged, ZStream
Target Release: 3.6.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1220111 (view as bug list) Environment:
Last Closed: 2016-04-20 01:32:51 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1220111    

Description Artyom 2015-02-04 12:51:33 UTC
Description of problem:
No correct message when try to remove scheduling policy that attached to cluster

Version-Release number of selected component (if applicable):
rhevm-webadmin-portal-3.5.0-0.31.el6ev.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create some custom scheduling policy and attach it to some cluster
2. Try to delete this scheduling policy
3.

Actual results:
Error message: "Error while executing action: Cannot remove Cluster Policy. Parameters are invalid."

Expected results:
Error message: "Error while executing action: Cannot remove Cluster Policy. Cluster policy is attached to cluster(s) list_of_clusters."

Additional info:

Comment 1 Dudi Maroshi 2015-03-11 11:18:36 UTC
Problem understood and recreated.

Comment 2 Dudi Maroshi 2015-03-11 12:20:41 UTC
Corrected error message. Correct error message text.

Comment 4 Tomer Saban 2015-08-23 10:04:26 UTC
*** Bug 1118503 has been marked as a duplicate of this bug. ***

Comment 5 Artyom 2015-09-16 11:08:46 UTC
Verified on rhevm-3.6.0-0.15.master.el6.noarch
Error message:
Error while executing action: Cannot remove Scheduling Policy. Scheduling Policy is attached to cluster(s): cl_36_amd, please unassign cluster(s)