Bug 1371960 - When extending a storage domain with a new lun, the old information of the lun is saved in the db
Summary: When extending a storage domain with a new lun, the old information of the lu...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: future
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-4.1.0-alpha
: 4.1.0.2
Assignee: Idan Shaby
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-31 14:24 UTC by Idan Shaby
Modified: 2017-02-01 14:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, when extending a block domain with a new lun, wrong information about this lun was saved in the DB. Thus, when editing the storage domain, the new lun's information that was shown in the view was incorrect. Now we save the right information, and therefore the new lun's information that is shown in the luns view when editing the domain is correct.
Clone Of:
Environment:
Last Closed: 2017-02-01 14:56:17 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: planning_ack+
amureini: devel_ack+
acanan: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 63084 0 master MERGED backend: call getVgInfo after extending a storage domain 2016-09-08 09:24:16 UTC

Description Idan Shaby 2016-08-31 14:24:03 UTC
Description of problem:
When extending a storage domain with a lun that has an old pv on it, the information of the old pv is saved in the db instead of the information of the new pv.

Version-Release number of selected component (if applicable):
a3d282f36d2a1fd9f8295d9d492f43109c7ef9c5

How reproducible:
100%

Steps to Reproduce:
1. Have an iSCSI target of at least two luns and create a storage domain from the whole target.
2. Destroy the storage domain.
3. Create a storage domain from one of the luns.
4. Extend the storage domain with the other lun.

Actual results:
The other lun's information in the db is not the same as the new lun's information but as the old one's. For example, the physical volume id is the old lun's pv id and not the new one.

Expected results:
The information in the db should be identical to the information in the storage.

Comment 1 Idan Shaby 2016-09-01 10:27:32 UTC
What I explained in the "Description of problem" was only partially right.

When extending a storage domain with ANY lun, we save the old lun's information in the db. So this bug occurs not only with luns that previously had a pv on them.
That is, if a lun had no pv on it before, we will save its pv id as null.

Comment 2 Allon Mureinik 2016-09-12 07:25:01 UTC
Idan, please add some doctext to this BZ.

Comment 3 Sandro Bonazzola 2016-12-12 14:00:40 UTC
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.

Comment 4 Kevin Alon Goldblatt 2016-12-14 14:04:43 UTC
Verified with the following code:
---------------------------------------
ovirt-engine-4.1.0-0.2.master.20161212172238.gitea103bd.el7.centos.noarch
vdsm-4.18.999-1147.git951e122.el7.centos.x86_64



Verified with the following scenario:
---------------------------------------
Steps to Reproduce:
1. Have an iSCSI target of at least two luns and create a storage domain from the whole target.
2. Destroy the storage domain.
3. Create a storage domain from one of the luns.
4. Extend the storage domain with the other lun.

Actual results:
All information is updated for the new LUN


Expected results:


Moving to VERIFIED!


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