Bug 927156
Summary: | bandwidth limit for block copy/pull will fail if the value reach to 17592186044415 | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | yanbing du <ydu> | |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 7.0 | CC: | acathrow, cwei, dyuan, eblake, lsu, mzhan, zpeng | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | libvirt-1.0.5-1.el7 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 927160 (view as bug list) | Environment: | ||
Last Closed: | 2014-06-13 11:55:33 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: | ||||
Bug Blocks: | 927160 |
Description
yanbing du
2013-03-25 09:01:38 UTC
BTW, the value check also need improve(decimal, negative number): # virsh blockcopy vm1 /var/lib/libvirt/images/vm2.img /tmp/tsrt --bandwidth 0.1 --wait --verbose error: bandwidth must be a number # virsh blockcopy vm1 /var/lib/libvirt/images/vm2.img /tmp/tsrt --bandwidth -1 --wait --verbose error: numerical overflow: bandwidth must be less than 17592186044415 I'm not sure if this is properly # virsh blockcopy test1 vda /var/lib/libvirt/images/bak9 1 --wait --bandwidth error: option --bandwidth already seen (In reply to comment #3) > I'm not sure if this is properly > > # virsh blockcopy test1 vda /var/lib/libvirt/images/bak9 1 --wait > --bandwidth > error: option --bandwidth already seen This particular error is correct. Virsh assigns arguments in order to the first option that has not yet been seen, so you wrote the equivalent of: virsh blockcopy --domain=test1 --path=vda --dest=/var/lib/libvirt/images/bak9 --bandwidth=1 --wait --bandwidth which means you did indeed supply --bandwidth twice. 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 Verify this bug with : libvirt-1.0.5-1.el7.x86_64 blockcopy [root@ibm-x3650m3-06 ~]# virsh blockcopy r6 vda /tmp/blk-copy --wait --verbose --finish --bandwidth 17592186044415 error: numerical overflow: bandwidth must be less than 8796093022207 [root@ibm-x3650m3-06 ~]# virsh blockcopy r6 vda /tmp/blk-copy --wait --verbose --finish --bandwidth 8796093022207 Block Copy: [100 %] Successfully copied [root@ibm-x3650m3-06 ~]# blockjob # virsh blockjob r6 vda --bandwidth 87960930222071 error: numerical overflow: bandwidth must be less than 8796093022207 [root@ibm-x3650m3-06 ~]# virsh blockjob r6 vda --bandwidth 8796093022207 [root@ibm-x3650m3-06 ~]# 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. |