Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1816519

Summary: Importing a registered template with already exists name shouldn't be allowed
Product: [oVirt] ovirt-engine Reporter: shani <sleviim>
Component: Backend.CoreAssignee: shani <sleviim>
Status: CLOSED CURRENTRELEASE QA Contact: Evelina Shames <eshames>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4.0CC: bugs, tnisan
Target Milestone: ovirt-4.4.0Flags: pm-rhel: ovirt-4.4+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-20 20:03:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Importing a registered template was completed successfully, and there're 2 templates with the same name on the DC. none

Description shani 2020-03-24 08:16:57 UTC
Created attachment 1672961 [details]
Importing a registered template was completed successfully, and there're 2 templates with the same name on the DC.

Description of problem:
While importing a registered template from a data storage domain, and in case there's already exists template with that name on the same DC, the operation should be blocked with a "not a unique name" (as happens when trying to create a new template with an already existing name).

Version-Release number of selected component (if applicable):
master-4.4.0-git8cfe9af1ca6

How reproducible:
100%

Steps to Reproduce:
1. Create a template over an SD.
2. Detach that SD from the DC.
3. Create another template, with the same name from #1, over a different SD on that DC.
4. Attach the SD from #2 back to the DC.
5. Import the template from #1.

Actual results:
The import was completed successfully, and there're 2 templates with the same name on the DC.

Expected results:
Importing a registered template with already exists name shouldn't be allowed.

Additional info:
Screenshot attached.

Comment 1 Evelina Shames 2020-04-06 07:32:29 UTC
Verified on engine-4.4.0-0.31.master.el8ev.

Comment 2 Sandro Bonazzola 2020-05-20 20:03:22 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.