Bug 1177210
| Summary: | "Use --force to override" should not in the warning for virt-clone since "--force" option isn't available for virt-clone | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | zhoujunqin <juzhou> |
| Component: | virt-manager | Assignee: | Pavel Hrdina <phrdina> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.1 | CC: | dyuan, gscrivan, mzhan, tzheng, xiaodwan |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | virt-manager-1.2.0-1-el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-19 05:23:12 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
zhoujunqin
2014-12-25 06:51:47 UTC
Upstream commit:
commit 93f826a8b2ca21e9cb91a870acef1c37f43dfda3
Author: Cole Robinson <crobinso>
Date: Sat Apr 11 19:25:46 2015 -0400
cli: Replace add --check option (bz 1063471)
For fine grained enabling/disabling validation checks. Use this to
replace the heavy handed --force option.
I can reproduce this bug with package: virt-manager-1.1.0-13.el7.noarch Steps: 1. Prepare a health guest. # virsh list --all Id Name State ---------------------------------------------------- - vm1 shut off 2. Use virt-clone to clone this guest. # virt-clone -o vm1 -n vm1-clone -f /var/lib/libvirt/images/vm1-clone # virsh list --all Id Name State ---------------------------------------------------- - vm1 shut off - vm1-clone shut off 3. Undefine new guest. # virsh undefine vm1-clone Domain vm1-clone has been undefined # ls /var/lib/libvirt/images/vm1-clone /var/lib/libvirt/images/vm1-clone 4. Repeat step2 again with same disk file. # virt-clone -o vm1 -n vm1-clone -f /var/lib/libvirt/images/vm1-clone ERROR This will overwrite the existing path '/var/lib/libvirt/images/vm1-clone' (Use --force to override) Then try to verify with latest build: virt-manager-1.2.1-2.el7.noarch.rpm Result: # virt-clone -o vm1 -n vm1-clone -f /var/lib/libvirt/images/vm1-clone ERROR This will overwrite the existing path '/var/lib/libvirt/images/vm1-clone' (Use --check path_exists=off or --check all=off to override) # virt-clone -o vm1 -n vm1-clone -f /var/lib/libvirt/images/vm1-clone --check path_exists=off WARNING This will overwrite the existing path '/var/lib/libvirt/images/vm1-clone' ERROR Clone onto existing storage volume is not currently supported: '/var/lib/libvirt/images/vm1-clone' # virt-clone -o vm1 -n vm1-clone -f /var/lib/libvirt/images/vm1-clone --check all=off WARNING This will overwrite the existing path '/var/lib/libvirt/images/vm1-clone' ERROR Clone onto existing storage volume is not currently supported: '/var/lib/libvirt/images/vm1-clone' According about info, This bus is fixed. 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. https://rhn.redhat.com/errata/RHBA-2015-2206.html |