Bug 1310247 - New configuration item, TRAFFIC_CONTROL_DEVS
Summary: New configuration item, TRAFFIC_CONTROL_DEVS
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Rory Thrasher
QA Contact: Meng Bo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-19 20:56 UTC by Rory Thrasher
Modified: 2016-03-22 16:54 UTC (History)
3 users (show)

Fixed In Version: openshift-origin-node-util-1.38.6.1-1.el6op rubygem-openshift-origin-node-1.38.5.2-1.el6op
Doc Type: Enhancement
Doc Text:
Feature: Enable the use of traffic control on multiple network interfaces. Reason: Nodes may have multiple interfaces. Some administrators may need to specifically control the traffic on all interfaces on a node, rather than just a single interface. Result: Traffic Control can now be configured to control multiple interfaces.
Clone Of:
Environment:
Last Closed: 2016-03-22 16:54:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:0489 0 normal SHIPPED_LIVE Important: Red Hat OpenShift Enterprise 2.2.9 security, bug fix, and enhancement update 2016-03-22 20:49:04 UTC

Description Rory Thrasher 2016-02-19 20:56:13 UTC
Doc Text bug for change for 2.2.9

Relevant changes: https://github.com/openshift/origin-server/pull/6298




Add a new configuration item, TRAFFIC_CONTORL_DEVS, which is a
space-delimited list of interfaces that should be tc-managed.

Update code so that tc changes are applied across all devices that
are to be traffic-controlled.

Also hard-code limits to very high numbers for the loopback interface if it is to be managed.

Comment 4 Timothy Williams 2016-02-23 00:02:31 UTC
QA:

Could you please verify the following few scenarios?

- oo-accept-node fails when no device is found
1) Add the following to /etc/openshift/node.conf
     TRAFFIC_CONTROL_DEVS="lo eth0 fakedev1"
2) Run oo-accept-node. The output should look similar to:
     FAIL: tc htb qdisc not configured
     Cannot find device "fakedev1"

- oo-accept-node succeeds
1) Add a network interface to the node
2) Add the following to /etc/openshift/node.conf, using the real name of the new interface instead of 'fakedev1':
     TRAFFIC_CONTROL_DEVS="lo eth0 fakedev1"
3) Run oo-accept-node. The command should succeed

- Verify that traffic control is enforced on a new interface
1) Add a network interface to the node
2) Add the following to /etc/openshift/node.conf, using the real name of the new interface instead of 'fakedev1':
     TRAFFIC_CONTROL_DEVS="lo eth0 fakedev1"
3) Restart the openshift-tc service
4) Check the `tc_max_bandwidth` value in /etc/openshift/resource_limits.conf
5) Run the following command, replacing fakedev1 with the name of the new interface:
     /usr/sbin/tc -d class show dev fakedev1
6) The output of the above command should define a ceiling equal to that defined as `tc_max_bandwith`. For example, if the default `800` was used in resource_limits.conf, the following should be seen in the command output:
class htb 1:3e8 parent 1:1 leaf 3e8: prio 0 quantum 100000 rate 2000Kbit ceil 800000Kbit burst 1600b/8 mpu 0b overhead 0b cburst 1600b/8 mpu 0b overhead 0b level 0 

Note the 'ceil 800000Kbit`

Comment 5 Ma xiaoqiang 2016-03-01 05:33:13 UTC
Check on puddle [2.2.9/2016-02-25.2]

1) Add the following to /etc/openshift/node.conf
     TRAFFIC_CONTROL_DEVS="lo eth0 eth1"
2) Run oo-accept-node. The output should look similar to:
[root@node1 ~]# oo-accept-node 
Cannot find device "eth1"
FAIL: tc htb qdisc not configured
1 ERRORS


3) Run oo-accept-node after adding eth1 device
# oo-accept-node 
PASS

4). Check the 'tc_max_bandwidth'
# tc -d class show dev eth1
class htb 1:1 root prio 0 quantum 200000 rate 800000Kbit ceil 800000Kbit burst 1600b/8 mpu 0b overhead 0b cburst 1600b/8 mpu 0b overhead 0b level 0 
[root@node1 ~]# tc -d class show dev eth0
class htb 1:1 root prio 0 quantum 200000 rate 800000Kbit ceil 800000Kbit burst 1600b/8 mpu 0b overhead 0b cburst 1600b/8 mpu 0b overhead 0b level 0

move this issue to VERIFIED.

Comment 7 errata-xmlrpc 2016-03-22 16:54:55 UTC
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/RHSA-2016-0489.html


Note You need to log in before you can comment on or make changes to this bug.