Bug 1461326 - RFE: storage: support VIR_STORAGE_POOL_BUILD_OVERWRITE
Summary: RFE: storage: support VIR_STORAGE_POOL_BUILD_OVERWRITE
Keywords:
Status: CLOSED DUPLICATE of bug 1169274
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-manager
Version: unspecified
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Pavel Hrdina
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-14 08:42 UTC by mxie@redhat.com
Modified: 2020-01-26 18:30 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-26 18:30:05 UTC
Embargoed:


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

Description mxie@redhat.com 2017-06-14 08:42:29 UTC
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 08:43:10 UTC
Created attachment 1287569 [details]
screenshot

Comment 2 Cole Robinson 2017-06-20 20:31:18 UTC
Not that important for RHEL IMO, so moving to the upstream tracker

Comment 3 Cole Robinson 2020-01-26 18:30:05 UTC

*** This bug has been marked as a duplicate of bug 1169274 ***


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