Bug 875775

Summary: 3.2.0 - [Storage] Unable to extend storage domain if PV is in use.
Product: Red Hat Enterprise Virtualization Manager Reporter: Leonid Natapov <lnatapov>
Component: vdsmAssignee: Daniel Erez <derez>
Status: CLOSED ERRATA QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: high    
Version: 3.2.0CC: abaron, amureini, bazulay, cpelland, ewarszaw, hateya, iheim, lpeer, scohen, ykaul
Target Milestone: ---Keywords: ZStream
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: vdsm-4.10.2-2.0 Doc Type: Bug Fix
Doc Text:
Previously, the --force option was not turned on in the vgextend command if the physical volume was in use. This meant that it was impossible to extend a storage domain if its associated physical volume was in use. The --force option has now been turned on in the vgextend command, even when the physical volume is in use. It is now possible to extend a storage domain when its associated physical volume is in use.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-10 20:34:41 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:
Bug Depends On:    
Bug Blocks: 888407, 915537    
Attachments:
Description Flags
vdsm log none

Description Leonid Natapov 2012-11-12 14:58:03 UTC
Created attachment 643564 [details]
vdsm log

[Storage] Unable to extend storage domain if PV is in use.

When trying to extend storage domain,user gets the following warning (in UI) IF the PV is in use:
----
The following LUNs are already in use: - 3514f0c561000000e (Used by VG: qydKsX-BJ0t-OaiA-PmEa-kqDB-1Xln-pSeKPN)

Approve operation ?
----

After user approves the operation the extend fails because we don't use FORCE option in vgextend command if the PV is in use. Force option must be used in this case.


Thread-52749::DEBUG::2012-11-12 16:42:21,580::__init__::1164::Storage.Misc.excCmd::(_log) FAILED: <err> = '  Can\'t initialize physica
l volume "/dev/mapper/3514f0c561000000d" of volume group "61677e82-0f8d-4245-a6bd-a1254fb945b5" without -ff\n

full vdsm log attached.

Comment 2 Daniel Erez 2012-11-17 10:27:06 UTC
http://gerrit.ovirt.org/#/c/9192/
Change-Id: I33ad4ee65d7303705d2cc8370502553125000ca0

Comment 3 Allon Mureinik 2012-12-12 10:31:03 UTC
both patches are merged upstream.

Comment 4 Daniel Erez 2012-12-17 19:11:53 UTC
Merged:
Change-Id: I33ad4ee65d7303705d2cc8370502553125000ca0

Comment 7 vvyazmin@redhat.com 2012-12-30 09:03:49 UTC
Failed on RHEVM 3.2 - SF02 environment 

RHEVM: rhevm-3.2.0-2.el6ev.noarch
VDSM: vdsm-4.10.2-2.0.el6.x86_64
LIBVIRT: libvirt-0.10.2-13.el6.x86_64
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.348.el6.x86_64
SANLOCK: sanlock-2.6-2.el6.x86_64


Impossible select disk in "Used" state in UI, follows from this, unable to extend storage domain if PV is in use.

Comment 8 vvyazmin@redhat.com 2012-12-30 10:16:48 UTC
Verified on RHEVM 3.2 - SF02 environment 

RHEVM: rhevm-3.2.0-2.el6ev.noarch
VDSM: vdsm-4.10.2-2.0.el6.x86_64
LIBVIRT: libvirt-0.10.2-13.el6.x86_64
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.348.el6.x86_64
SANLOCK: sanlock-2.6-2.el6.x86_64

Comment 12 errata-xmlrpc 2013-06-10 20:34:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHSA-2013-0886.html