Bug 1403551

Summary: ISCSI domain name doesn't remain after it changed during Import storage domain
Product: [oVirt] ovirt-engine Reporter: Eyal Shenitzky <eshenitz>
Component: BLL.StorageAssignee: Benny Zlotnik <bzlotnik>
Status: CLOSED NOTABUG QA Contact: Raz Tamir <ratamir>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.6.1CC: bugs, eshenitz, mlipchuk, tnisan
Target Milestone: ovirt-4.1.0-betaFlags: tnisan: ovirt-4.1?
eshenitz: planning_ack?
eshenitz: devel_ack?
eshenitz: testing_ack?
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: 2016-12-13 13:07:56 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:

Description Eyal Shenitzky 2016-12-11 10:18:45 UTC
Description of problem:

When Importing ISCSI storage domain to the data center and set new name to 
the Imported storage domain, it change but doesn't remain.
After the storage-domain detached and removed again, when trying to import it back it appear as the original name that set when creating the domain and not with the new name.

Version-Release number of selected component (if applicable):
Engine - 4.0.6.1-0.1.el7ev

How reproducible:
100%

Steps to Reproduce:
1. Create an ISCSI storage-domain with name "X"
2. Remove the domain from step 1 without formatting it
3. Import The domain from step 1 with new name "Y"
4. Remove the domain from step 1 again without formatting it
5. Import The domain from step 1 back to the environment

Actual results:
When importing the domain it appears with name "X" instead of "Y"

Expected results:
Domain name should change to "Y"

Additional info:
none

Comment 1 Tal Nisan 2016-12-11 12:10:52 UTC
Eyal, isn't it the same as the bug 1393266 you've opened?

Comment 2 Eyal Shenitzky 2016-12-12 09:48:22 UTC
(In reply to Tal Nisan from comment #1)
> Eyal, isn't it the same as the bug 1393266 you've opened?

No, in bug 1393266 the name we set in the 'Name' textBox doesn't have any use when importing ISCSI domain.

In this bug, after the imported domain name has changed (using double click on the name when importing it) the name doesn't remain as described above.

Comment 3 Maor 2016-12-13 13:07:04 UTC
This is part of the desired behavior.
For the storage domain name to be consistent, one will need to update the Storage Domain while it is active. (see doctext mentioned in [1])

https://bugzilla.redhat.com/show_bug.cgi?id=1195784#c11
https://bugzilla.redhat.com/show_bug.cgi?id=1295852 (see doctext)

[1]
"For the user to change the Storage Domain's name description in the metadata, one will need to update the Storage Domain while it is active and change the storage domain's name to a different name, press ok, and back again, update the Storage Domain and change the Storage Domain's name to the one he or she desires."