Bug 1461326 - RFE: storage: support VIR_STORAGE_POOL_BUILD_OVERWRITE
RFE: storage: support VIR_STORAGE_POOL_BUILD_OVERWRITE
Status: NEW
Product: Virtualization Tools
Classification: Community
Component: virt-manager (Show other bugs)
unspecified
x86_64 Unspecified
medium Severity medium
: ---
: ---
Assigned To: Pavel Hrdina
Virtualization Bugs
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-14 04:42 EDT by mxie@redhat.com
Modified: 2017-06-20 16:31 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
virt-manager.log (17.32 KB, text/plain)
2017-06-14 04:42 EDT, mxie@redhat.com
no flags Details
screenshot (64.29 KB, image/png)
2017-06-14 04:43 EDT, mxie@redhat.com
no flags Details

  None (edit)
Description mxie@redhat.com 2017-06-14 04:42:29 EDT
Created attachment 1287568 [details]
virt-manager.log

Description of problem:
[RFE]Add overwrite option in virt-manager

Version-Release number of selected component (if applicable):
virt-manager-1.4.1-7.el7.noarch
libvirt-3.2.0-9.el7.x86_64
qemu-kvm-rhev-2.9.0-10.el7.x86_64


How reproducible:
100%

Steps to Reproduce:
1.Prepare free disk partition in host
# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk 
├─sda1   8:1    0     2G  0 part /boot/efi
├─sda2   8:2    0  29.3G  0 part 
├─sda3   8:3    0     2G  0 part [SWAP]
└─sda4   8:4    0   420G  0 part /
sr0     11:0    1  1024M  0 rom 
2.Try to create logical pool on /dev/sda2 in virt-manager but failed to create due to virt-manager doesn't support overwrite option
virt-manager->connection details->storage-> create storage pool->name:lvpool->type:logical:LVM Volume Group->forward->Target path:/dev/test->source path:/dev/sda2-> select "build pool"->finish->yes->fail to create pool with error "/dev/sda2 doesn't match the except format ‘LVM2_member’, forced overwrite is necessary "

3.Could use virsh to create logical pool with overwrite option successfully
3.1 # virsh pool-create-as lvm-pool logical --source-dev /dev/sda2 --source-format lvm2 --source-name lvm-group --build --overwrite
Pool lvm-pool created

3.2 # virsh pool-dumpxml lvm-pool
<pool type='logical'>
  <name>lvm-pool</name>
  <uuid>1ad51a0c-aa5c-4fec-a11a-c354098cd771</uuid>
  <capacity unit='bytes'>31453085696</capacity>
  <allocation unit='bytes'>0</allocation>
  <available unit='bytes'>31453085696</available>
  <source>
    <device path='/dev/sda2'/>
    <name>lvm-group</name>
    <format type='lvm2'/>
  </source>
  <target>
    <path>/dev/lvm-group</path>
  </target>
</pool>


Actual results:
As above description

Expected results:
Could add overwrite option in virt-manager


Additional info:
Comment 1 mxie@redhat.com 2017-06-14 04:43 EDT
Created attachment 1287569 [details]
screenshot
Comment 2 Cole Robinson 2017-06-20 16:31:18 EDT
Not that important for RHEL IMO, so moving to the upstream tracker

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