Bug 477796

Summary: Can create multiple hw pools with the same name inside one parent
Product: [Community] Virtualization Tools Reporter: David Lutterkort <lutter>
Component: ovirt-server-suiteAssignee: Scott Seago <sseago>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: hbrock, ovirt-bugs, ovirt-maint, sseago, yshao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-21 17:19:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Lutterkort 2008-12-23 19:06:04 UTC
Description of problem:

It is possible to create multiple HW pools with teh same name in the same place in the tree.

How reproducible:

Click on the 'default' HW pool, create a new subpool called 'mypool'. Repeat at least once more

Expected result:

The second and further attempts to create a pool with an existing name inside one pool is rejected.

Comment 1 Jia Dong 2009-01-21 07:09:31 UTC
It also exists in version 0.96.

Comment 2 Scott Seago 2009-05-22 16:43:29 UTC
We already had the validation rule in place, but the way the betternestedset API sets the parent_id the rules were being bypassed. Fixed in the linked patch:

https://www.redhat.com/archives/ovirt-devel/2009-May/msg00193.html