Bug 927160
Summary: | bandwidth limit for block copy/pull will fail if the value reach to 17592186044415 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | yanbing du <ydu> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.4 | CC: | cwei, dyuan, lsu, mzhan, rbalakri, zhwang, zpeng |
Target Milestone: | rc | Keywords: | Upstream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.10.2-32.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 927156 | Environment: | |
Last Closed: | 2014-10-14 04:15:18 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: | |||
Bug Depends On: | 927156 | ||
Bug Blocks: |
Description
yanbing du
2013-03-25 09:06:11 UTC
Fixed upstream with: commit 24ca8fae64d6088cb10a424c4bc6a7eb16ddeb26 Author: Peter Krempa <pkrempa> Date: Wed Apr 3 10:36:03 2013 +0200 qemu-blockjob: Fix limit of bandwidth for block jobs to supported value The JSON generator is able to represent only values less than LLONG_MAX, fix the bandwidth limit checks when converting to value to catch overflows before they reach the generator. v1.0.4-26-g24ca8fa Moving to POST Reproduced with libvirt-0.10.2-31.el6.x86_64, Verified with the packages: libvirt-0.10.2-33.el6.x86_64 qemu-kvm-rhev-0.12.1.2-2.423.el6.x86_64 Test steps: 1. Create a domain: # virsh create r6-qcow2.xml Domain r6-qcow2 created from r6-qcow2.xml 2. Do block copy for vda # virsh blockcopy r6-qcow2 vda /var/lib/libvirt/images/bak --wait --verbose --finish --bandwidth 11111111111111111 error: numerical overflow: bandwidth must be less than 8796093022207 # virsh blockcopy r6-qcow2 vda /var/lib/libvirt/images/bak --wait --verbose --finish --bandwidth 8796093022207 Block Copy: [100 %] Successfully copied 3. For blockjob, # virsh blockjob r6-qcow2 vda --bandwidth 175921860444111 error: numerical overflow: bandwidth must be less than 8796093022207 # virsh blockjob r6-qcow2 vda --bandwidth 8796093022207 # virsh blockjob r6-qcow2 vda Block Copy: [ 50 %] Bandwidth limit: 8796093022207 MiB/s # virsh blockjob r6-qcow2 vda --bandwidth 879609302220 # virsh blockjob r6-qcow2 vda Block Copy: [ 55 %] Bandwidth limit: 879609302220 MiB/s 4. Do blockpull for vda # virsh snapshot-create-as r6-qcow2 s1 --disk-only Domain snapshot s1 created # virsh snapshot-create-as r6-qcow2 s2 --disk-only Domain snapshot s2 created # virsh snapshot-create-as r6-qcow2 s3 --disk-only Domain snapshot s3 created # virsh domblklist r6-qcow2 Target Source ------------------------------------------------ vda /var/lib/libvirt/images/r6-qcow2.s3 # virsh blockpull r6-qcow2 vda 175921860444111 /var/lib/libvirt/images/r6-qcow2.s1 error: numerical overflow: bandwidth must be less than 8796093022207 # virsh blockpull r6-qcow2 vda 8796093022207 /var/lib/libvirt/images/r6-qcow2.s1 --wait --verbose Block Pull: [100 %] Pull complete # virsh blockpull r6-qcow2 vda 8796093022207 --wait --verbose Block Pull: [ 21 %] # virsh blockjob r6-qcow2 vda Block Pull: [ 14 %] Bandwidth limit: 8796093022207 MiB/s # virsh blockjob r6-qcow2 vda 87960930 # virsh blockjob r6-qcow2 vda Block Pull: [ 17 %] Bandwidth limit: 87960930 MiB/s Test results: 1. blockcopy, blockjob work well. 2. blockpull work well. 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. http://rhn.redhat.com/errata/RHBA-2014-1374.html |