| Summary: | libvirt should check the value range of average element in <outbound> before updating interface device | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Hu Jianwei <jiahu> |
| Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
| Status: | CLOSED WONTFIX | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.6 | CC: | acathrow, dallan, dyuan, honzhang, mzhan, xuzhang |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1022292 | Environment: | |
| Last Closed: | 2014-04-04 20:56:40 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: | |
| Bug Depends On: | 1022292 | ||
| Bug Blocks: | |||
|
Description
Hu Jianwei
2013-10-23 02:03:55 UTC
While set other Qos values as "-1", the value will be convert to "18446744073709551615" in the running guest xml.
Steps:
1. prepare one xml like the following one:
<interface type='network'>
<mac address='52:54:00:69:5a:de'/>
<source network='default'/>
<target dev='vnet0'/>
<bandwidth>
<inbound average='100' peak='-1' burst='-1'/>
<outbound average='-1' peak='-1' burst='-1'/>
</bandwidth>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
2. check the original Qos settings of the running guest.
#virsh dumpxml a
......
<interface type='network'>
<mac address='52:54:00:69:5a:de'/>
<source network='default'/>
<target dev='vnet0'/>
<bandwidth>
<inbound average='100' peak='256' burst='128'/>
<outbound average='100' peak='256' burst='128'/>
</bandwidth>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
.......
3. update the Qos value with the xml in step1
# virsh update-device a Qos.xml
Device updated successfully
4. the value is updated to very large, it's not correct, should be report one error if the setting value is negative number.
# virsh dumpxml a|grep interface -A 10
<interface type='network'>
<mac address='52:54:00:69:5a:de'/>
<source network='default'/>
<target dev='vnet0'/>
<bandwidth>
<inbound average='100' peak='18446744073709551615' burst='18446744073709551615'/>
<outbound average='18446744073709551615' peak='18446744073709551615' burst='18446744073709551615'/>
</bandwidth>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request. |