RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1179533 - libvirt should post accurate error when create internal snapshot with guest source file based on ceph
Summary: libvirt should post accurate error when create internal snapshot with guest s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-07 03:16 UTC by Shanzhi Yu
Modified: 2015-11-19 06:06 UTC (History)
5 users (show)

Fixed In Version: libvirt-1.2.14-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 06:06:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2202 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2015-11-19 08:17:58 UTC

Description Shanzhi Yu 2015-01-07 03:16:21 UTC
Description of problem:

libvirt should post accurate error when create internal snapshot with guest source file based on ceph

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

libvirt-1.2.8-11.el7.x86_64

How reproducible:

100%

Steps to Reproduce:

1. Prepare a guest with source file based on ceph
# virsh list
Id Name State
----------------------------------------------------
2 r7-ceph running


# virsh dumpxml r7-ceph |grep disk -A 10
<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<auth username='libvirt'>
<secret type='ceph' usage='client.libvirt secret'/>
</auth>
<source protocol='rbd' name='libvirt-pool/rhel7-rbd.img'>
<host name='10.66.xxx.xx' port='6789'/>
</source>
<backingStore/>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</disk>

2. Create internal snapshot for guest
# virsh snapshot-create-as r7-ceph s1
error: operation failed: Error -95 while writing VM


Actual results:


Expected results:

libvirt should post more accurate error since the source file guest used is raw format

Additional info:

Comment 1 Peter Krempa 2015-03-04 13:19:16 UTC
Fixed upstream:

commit f7c1410b0ee5b878e81f2eddf86c609947a9b27c
Author: Shanzhi Yu <shyu>
Date:   Sat Feb 28 17:51:36 2015 +0800

    qemu: snapshot: Don't skip check for qcow2 format with network disks
    
    When the domain's source disk type is network, if source protocol is rbd
    or sheepdog, the 'if().. break' will end the current case, which lead to
    miss check the driver type is raw or qcow2. Libvirt will allow to create
    internal snapshot for a running domain with raw format disk which based
    on rbd storage.
    
    While both protocols support internal snapshots of the disk qemu is not
    able to use it as it requires some place to store the memory image. The
    check if the disk is backed by a qcow2 image needs to be executed
    always.

v1.2.13-54-gf7c1410

Comment 3 Yang Yang 2015-05-27 09:09:07 UTC
Verified on libvirt-1.2.15-2.el7.x86_64

Steps
# virsh dumpxml vm5 | grep disk -a6
<disk type='network' device='disk'>
      <driver name='qemu' type='raw'/>
      <source protocol='rbd' name='libvirt-pool/yy1.img'>
        <host name='mon.redhat.com' port='6789'/>
      </source>
      <backingStore/>
      <target dev='vda' bus='virtio'/>
      <boot order='2'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </disk>

# virsh snapshot-create-as vm5 s1
error: unsupported configuration: internal snapshot for disk vda unsupported for storage type raw

# virsh snapshot-create-as vm5 s1 --disk-only
error: unsupported configuration: source for disk 'vda' is not a regular file; refusing to generate external snapshot name

# virsh snapshot-create-as vm5 s1 --disk-only --diskspec vda,file=/tmp/ceph.s1
Domain snapshot s1 created

Comment 5 errata-xmlrpc 2015-11-19 06:06:54 UTC
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-2202.html


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