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 969982 - Impove error message for virsh volume command with --prealloc-metadata option
Summary: Impove error message for virsh volume command with --prealloc-metadata option
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-03 09:01 UTC by yanbing du
Modified: 2014-06-18 00:51 UTC (History)
6 users (show)

Fixed In Version: libvirt-1.1.0-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 11:07:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description yanbing du 2013-06-03 09:01:02 UTC
Description of problem:
The --prealloc-metadata option for virsh volume commands(vol-clone, vol-create-as, vol-create, vol-create-from) doesn't support raw format image, so commands always fail with error:
error: unsupported flags (0x1) in function virStorageBackendCreateRaw


Version-Release number of selected component (if applicable):
libvirt-1.0.5-2.el7.x86_64 

How reproducible:
100%

Steps to Reproduce:
1. Clone or create a raw format vol with --prealloc-metadata option:

# virsh vol-clone vol new-vol default --prealloc-metadata
error: Failed to clone vol from vol
error: unsupported flags (0x1) in function virStorageBackendCreateRaw

or

# virsh  vol-create default new-vol.xml --prealloc-metadata
error: Failed to create vol from new-vol.xml
error: unsupported flags (0x1) in function virStorageBackendCreateRaw 


Actual results:
As step1.

Expected results:
Improve the error message.

Additional info:

Comment 2 Peter Krempa 2013-06-05 13:51:37 UTC
Fixed upstream:

commit 77e7f69c3b88ae0a7364fa88334a483a247d7200
Author: Peter Krempa <pkrempa>
Date:   Wed Jun 5 09:38:41 2013 +0200

    storage: Provide better error message if metadata pre-alloc is unsupported
    
    Instead of a unknown flag error report that metadata pre-allocation is
    not supported with the requested volume creation method.
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=969982

v1.0.6-27-g77e7f69

Comment 3 yanbing du 2013-07-02 11:01:04 UTC
Verify with libvirt-1.1.0-1.el7.x86_64.

# virsh vol-clone vol new-vol default --prealloc-metadata
error: Failed to clone vol from vol
error: unsupported configuration: metadata preallocation is not supported for raw volumes

#  virsh  vol-create default vol-new.xml --prealloc-metadata
error: Failed to create vol from vol-new.xml
error: unsupported configuration: metadata preallocation is not supported for raw volumes

The error message is clear enough, so move bug to VERIFIED.

Comment 4 Ludek Smid 2014-06-13 11:07:19 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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