Bug 1125764
Summary: | libvirt should check stp delay time | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Luyao Huang <lhuang> |
Component: | libvirt | Assignee: | Erik Skultety <eskultet> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | dyuan, honzhang, jsuchane, lhuang, mzhan, rbalakri |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.2.13-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 05:46:34 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: |
Description
Luyao Huang
2014-08-01 03:07:30 UTC
Fixed upstream: commit 3aa0524104fd27f091483a0380fec81b3eb3a477 Author: Erik Skultety <eskultet> Date: Mon Sep 15 10:42:15 2014 +0200 network: check for invalid forward delay time When spanning tree protocol is allowed in bridge settings, forward delay value is set as well (default is 0 if omitted). Until now, there was no check for delay value validity. Delay makes sense only as a positive numerical value. Note: However, even if you provide positive numerical value, brctl utility only uses values from range <2,30>, so the number provided can be modified (kernel most likely) to fall within this range. v1.2.8-139-g3aa0524 Verify it as follows. The result is expected. Move its status to VERIFIED. # rpm -q libvirt libvirt-1.2.14-1.el7.x86_64 # cat net.xml <network> <name>testnet</name> <forward mode='nat'/> <bridge name='virbr13' stp='on' delay='-10000' /> <mac address='52:54:00:c7:ce7'/> <ip address='192.168.13.13' netmask='255.255.255.0'> </ip> </network> # virsh net-define net.xml error: Failed to define network from net.xml error: XML error: Invalid delay value in network 'testnet' # vim net.xml # cat net.xml <network> <name>testnet</name> <forward mode='nat'/> <bridge name='virbr13' stp='on' delay='aaa' /> <mac address='52:54:00:c7:ce7'/> <ip address='192.168.13.13' netmask='255.255.255.0'> </ip> </network> # virsh net-define net.xml error: Failed to define network from net.xml error: XML error: Invalid delay value in network 'testnet' # virsh net-edit default <=== change the delay value to illegal values error: XML error: Invalid delay value in network 'default' Failed. Try again? [y,n,f,?]: 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. https://rhn.redhat.com/errata/RHBA-2015-2202.html |