Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
Version-Release number of selected component (if applicable):
libvirt 7.0.0
How reproducible:
100%
Steps to Reproduce:
1.prepare guest xml with
...
<disk type="file" device="disk">
<driver name="qemu" type="raw" copy_on_read="off" cache="none" discard="ignore" detect_zeroes="on" io="native"/>
<source file="/tmp/disk-raw">
<slices>
<slice type="storage" offset="0" size="104857600"/>
</slices>
</source>
<backingStore/>
<target dev="sdb" bus="scsi"/>
<alias name="ua-slices"/>
<iotune>
<total_bytes_sec>10000000</total_bytes_sec>
<group_name>slice</group_name>
</iotune>
</disk>
...
2. virt-xml-validate tztest.xml
Relax-NG validity error : Extra element devices in interleave
tztest.xml:57: element devices: Relax-NG validity error : Element domain failed to validate content
tztest.xml fails to validate
3. remove slices part and then pass the validate
Actual results:
failed to validate with slices
Expected results:
should successfully pass the validate with slices
Additional info:
The actual XML problem is that 'offset' is 0:
error: value of attribute "offset" is invalid; must be an integer greater than or equal to 1
I need to check whether the rest of the code properly supports offset 0 though before fixing the schema.
Fixed upstream:
commit fac773fab93dc526513d7ced40e1d685e193705c
Author: Peter Krempa <pkrempa>
Date: Fri May 21 14:53:43 2021 +0200
schema: Allow '0' offset for a <slice> of <disk>
Using slice to cut off the end of the image is a perfectly vaid
configuration. Use 'unsignedInt' instead of 'positiveInteger' for the
'offset' attribute in the XML schema and modify one test case to cover
this use case.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1960993
Signed-off-by: Peter Krempa <pkrempa>
Reviewed-by: Pavel Hrdina <phrdina>
v7.3.0-264-gfac773fab9
Description of problem: Version-Release number of selected component (if applicable): libvirt 7.0.0 How reproducible: 100% Steps to Reproduce: 1.prepare guest xml with ... <disk type="file" device="disk"> <driver name="qemu" type="raw" copy_on_read="off" cache="none" discard="ignore" detect_zeroes="on" io="native"/> <source file="/tmp/disk-raw"> <slices> <slice type="storage" offset="0" size="104857600"/> </slices> </source> <backingStore/> <target dev="sdb" bus="scsi"/> <alias name="ua-slices"/> <iotune> <total_bytes_sec>10000000</total_bytes_sec> <group_name>slice</group_name> </iotune> </disk> ... 2. virt-xml-validate tztest.xml Relax-NG validity error : Extra element devices in interleave tztest.xml:57: element devices: Relax-NG validity error : Element domain failed to validate content tztest.xml fails to validate 3. remove slices part and then pass the validate Actual results: failed to validate with slices Expected results: should successfully pass the validate with slices Additional info: