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

Bug 921643

Summary: vdsm dosn't refresh size of iscsi luns
Product: Red Hat Enterprise Virtualization Manager Reporter: Pavel Zhukov <pzhukov>
Component: vdsmAssignee: Yeela Kaplan <ykaplan>
Status: CLOSED UPSTREAM QA Contact: Haim <hateya>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.3CC: abaron, amureini, bazulay, hateya, iheim, jkt, lpeer, nobody, oourfali, scohen, yeylon
Target Milestone: ---Flags: abaron: Triaged+
Target Release: 3.3.0   
Hardware: All   
OS: Linux   
Whiteboard: storage
Fixed In Version: v4.12.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-03 06:11:57 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
vdsm log
none
engine log none

Description Pavel Zhukov 2013-03-14 15:07:35 UTC
Description of problem:
vdsm doen't refresh luns info ("multipath -F") before getDeviceList. 

Version-Release number of selected component (if applicable):
vdsm-4.10.2-1.8

How reproducible:
100%

Steps to Reproduce:
1. Try to add iscsi lun as master SD (press login)
2. Cancel operation
3. Change volume size
4. Try to add iscsi lun again
  
Actual results:
old size is displayed. Failed to create master SD if old size was <10GB

Expected results:
New size should be appears. Master domain should be created


Additional info:
login to rhevh and run "multipath -F" fix the issue

Comment 1 Haim 2013-03-17 18:04:06 UTC
please attach all relevant logs on hypervisor and engine side, also, provide the following output:

- multipath -ll
- lsblk
- pvs -a

also, what type of storage vendor are you using?

Comment 2 Pavel Zhukov 2013-03-18 08:08:32 UTC
on iscsi server: 
# lvcreate -n lun_bz921643 -L 5G vms
# targetcli 
> cd /backstores/block
> create name=iscsi_backend_bz921643 dev=/dev/vms/lun_bz921643
    o- iscsi_backend_bz921643 ..... [/dev/vms/lun_bz921643 (5.0GiB) write-back deactivated]
> cd /iscsi/iqn.2003-01.org.linux-iscsi.dhcp-1-214.x8664:sn.113e745f4931/tgt1/luns
> create /backstores/block/iscsi_backend_bz921643
> ls 
    o- lun2 ..... [block/iscsi_backend_bz921643 (/dev/vms/lun_bz921643)]


on rhevm: 
1) Click "New Domain" 
2) Expand iqn tree check lun2 - OK, 5Gb 

on iscsi server:
# lvresize -L +5G /dev/vms/lun_bz921643
  Extending logical volume lun_bz921643 to 10.00 GiB
  Logical volume lun_bz921643 successfully resize
>  ls /backstores/block/
  o- iscsi_backend_bz921643 .. [/dev/vms/lun_bz921643 (10.0GiB) write-back activated]



on rhevh:
# multipath -ll
36001405398701597f844f4eb099342d0 dm-25 LIO-ORG,IBLOCK
size=5.0G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
  `- 2:0:0:2 sdd 8:48 active ready running

(still 5GB)


# lsblk
sdd                                                             8:48   0    10G  0 disk  
└─36001405398701597f844f4eb099342d0 (dm-25)                   253:25   0     5G  0 mpath 

(disk is 10G buf mpath is 5GB)

# pvs -a
pv has not been created because opetation has been cancelled



# multipath -F 

# multipath -ll
3600140558f280d707b243749b07609a3 dm-10 LIO-ORG,IBLOCK
size=10G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
  `- 2:0:0:1 sdc 8:32 active ready running



Now correct size of LUN is displayed.

Comment 3 Pavel Zhukov 2013-03-18 08:09:46 UTC
Created attachment 711787 [details]
vdsm log

Comment 4 Pavel Zhukov 2013-03-18 08:10:26 UTC
Created attachment 711788 [details]
engine log

Comment 5 Pavel Zhukov 2013-03-18 08:11:53 UTC
> also, what type of storage vendor are you using?

It's lab reproducer with LIO iscsi.

Comment 6 Haim 2013-03-27 17:40:58 UTC
> on rhevm: 
> 1) Click "New Domain" 
> 2) Expand iqn tree check lun2 - OK, 5Gb 
> 
> on iscsi server:
> # lvresize -L +5G /dev/vms/lun_bz921643
>   Extending logical volume lun_bz921643 to 10.00 GiB
>   Logical volume lun_bz921643 successfully resize
> >  ls /backstores/block/
>   o- iscsi_backend_bz921643 .. [/dev/vms/lun_bz921643 (10.0GiB) write-back
> activated]
> 

did you close and re-open "New Domain" window between #1 and #2?

Comment 7 Pavel Zhukov 2013-03-28 07:27:30 UTC
Yes I did.

Comment 8 Yeela Kaplan 2013-07-28 14:30:35 UTC
Haim, 

Wouldn't the following patch: 

http://gerrit.ovirt.org/#/c/17263/

for this bug: 

https://bugzilla.redhat.com/show_bug.cgi?id=964768

Would fix the problem?

I can test it when verifying the above patch.

Comment 10 Yeela Kaplan 2013-08-18 14:39:51 UTC
The patch in the tracker that adds the reload option to the multipath rescan solves this issue, I've verified it several times.

When checking please notice that you are also reloading on the storage side (the tgt or whichever storage you're using), as resizing the lv is not enough.

Comment 11 yeylon@redhat.com 2013-09-03 06:11:57 UTC
This bug was fixed and is slated to be in the upcoming version. As we
are focusing our testing at this phase on severe bugs, this bug was
closed without going through its verification step. If you think this
bug should be verified by QE, please set its severity to high and move
it back to ON_QA