Bug 1283085
Summary: | Creating external disk snapshot for a guest which has two disks with the same prefix name,the disks become the same name in xml | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | lijuan men <lmen> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | medium | ||
Version: | 7.2 | CC: | dyuan, hhan, mzhan, rbalakri, xuzhang, yanyang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.3.2-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-03 18:31:50 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
lijuan men
2015-11-18 08:30:06 UTC
Fixed upstream: commit b60af444ccc7ae2655af6753d62c7ee611a628b8 Author: Peter Krempa <pkrempa> Date: Thu Feb 11 09:57:45 2016 +0100 conf: snapshot: Avoid autogenerating duplicate snapshot names The snapshot name generator truncates the original file name after a '.' and replaces the suffix with the snapshot name. If two disks source images differ only in the suffix portion, the generated name will be duplicate. Since this is a corner case just error out stating that a duplicate name was generated. The user can work around this situation by providing the file names explicitly. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1283085 v1.3.1-217-gb60af44 I can reproduce it on libvirt-1.3.1-1.el7.x86_64. Verify it on libvirt-1.3.3-2.el7.x86_64 : 1. Prepare a VM with two disks of the same prefix: # virsh domblklist dup Target Source ------------------------------------------------ vda /var/lib/libvirt/images/dup.qcow2 vdb /var/lib/libvirt/images/dup.qcow2-bak Create external snapshot: # virsh snapshot-create-as dup s1 --disk-only error: unsupported configuration: cannot generate external snapshot name for disk 'vdb': collision with disk 'vda' 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/RHSA-2016-2577.html |