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 1022301 - snapshot-create-as --disk-only is not support with glusterfs volume
Summary: snapshot-create-as --disk-only is not support with glusterfs volume
Keywords:
Status: CLOSED DUPLICATE of bug 1017289
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.5
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Libvirt Maintainers
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-23 02:18 UTC by chhu
Modified: 2013-10-23 04:30 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-23 04:30:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description chhu 2013-10-23 02:18:24 UTC
Description of problem:
snapshot-create-as --disk-only is not support with glusterfs volume.

Version-Release number of selected component:
libvirt-0.10.2-29.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.414.el6.x86_64
qemu-img-rhev-0.12.1.2-2.414.el6.x86_64

How reproducible:
100%

Steps:
1. start a guest with glusterfs volume
# virsh dumpxml r6-qcow2|grep disk -A 6
    <disk type='network' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source protocol='gluster' name='gluster-vol1/redhat6-qcow2.img'>
        <host name='10.66.82.251' port='24007'/>
      </source>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>

# virsh start r6-qcow2
Domain r6-qcow2 started

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

3. do snapshot without --disk-only
# virsh snapshot-create-as r6-qcow2 snap1
Domain snapshot snap1 created

# virsh snapshot-list r6-qcow2
 Name                 Creation Time             State
------------------------------------------------------------
 snap1                2013-10-23 00:09:59 +0800 running

4. check the snapshot xml
# virsh snapshot-create-as r6-qcow2 s1 --disk-only --print-xml
<domainsnapshot>
  <name>s1</name>
</domainsnapshot>

# virsh snapshot-create-as r6-qcow2 snap1 --print-xml
<domainsnapshot>
  <name>snap1</name>
</domainsnapshot>

# virsh snapshot-dumpxml r6-qcow2 snap1
<domainsnapshot>
  <name>snap1</name>
  <state>running</state>
  <creationTime>1382458199</creationTime>
  <memory snapshot='internal'/>
  <disks>
    <disk name='vda' snapshot='internal'/>
  </disks>
  <domain type='kvm'>
    <name>r6-qcow2</name>
 .......
      <disk type='network' device='disk'>
        <driver name='qemu' type='qcow2'/>
        <source protocol='gluster' name='gluster-vol1/redhat6-qcow2.img'>
          <host name='10.66.82.251' port='24007'/>
        </source>
        <target dev='vda' bus='virtio'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
      </disk>
......
    </devices>
    <seclabel type='dynamic' model='selinux' relabel='yes'/>
  </domain>
</domainsnapshot>

Actual results:
In step2, got error: unsupported configuration

Expected results:
In step2, snapshot-create-as --disk-only success.

Comment 2 Eric Blake 2013-10-23 04:30:02 UTC
Libvirt can't create a snapshot with a destination of gluster until it can support gluster backing chains.

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


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