Bug 1816519 - Importing a registered template with already exists name shouldn't be allowed
Summary: Importing a registered template with already exists name shouldn't be allowed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Backend.Core
Version: 4.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-4.4.0
: ---
Assignee: shani
QA Contact: Evelina Shames
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-24 08:16 UTC by shani
Modified: 2020-05-20 20:03 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-05-20 20:03:22 UTC
oVirt Team: Storage
Embargoed:
pm-rhel: ovirt-4.4+


Attachments (Terms of Use)
Importing a registered template was completed successfully, and there're 2 templates with the same name on the DC. (66.50 KB, image/png)
2020-03-24 08:16 UTC, shani
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 107963 0 master MERGED core, webadmin: set storagePoolId on template registration 2020-06-04 15:53:51 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.