Bug 1148932

Summary: Forbid using same file as external snapshot file for disks and memory
Product: Red Hat Enterprise Linux 7 Reporter: Shanzhi Yu <shyu>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: dyuan, jdenemar, mzhan, rbalakri, yanyang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-06 15:16:31 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 Shanzhi Yu 2014-10-02 16:43:18 UTC
Description of problem:

Forbid using same file as external snapshot file for disks and memory

Version-Release number of selected component (if applicable):

libvirt-1.2.8-4.el7.x86_64

How reproducible:

100%

Steps to Reproduce:

1. prepare a running domain

2. Create external system checkpoint snapshot with same file for disks and memory
# virsh snapshot-create-as rhel7-i ss --diskspec vda,file=/tmp/s1 --memspec file=/tmp/s1 
Domain snapshot ss created

3.

Actual results:


Expected results:

error: unsupported configuration: external snapshot file for disks should not be same with external snapshot file for memory


Additional info:

Comment 1 Jiri Denemark 2014-10-06 15:16:31 UTC
There's a lot of ways to specify the same file for both diskcpec and memspec and I don't think it's worth handling them. After all, the command just does what the user asked for...