Bug 1166863
| Summary: | teamd: implement link failure counting | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jiri Pirko <jpirko> |
| Component: | libteam | Assignee: | Rashid Khan <rkhan> |
| Status: | CLOSED ERRATA | QA Contact: | Amit Supugade <asupugad> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.1 | CC: | network-qe, rkhan, zhchen |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libteam-1.17-1.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-19 03:55:37 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: | 1208418 | ||
| Bug Blocks: | |||
|
Description
Jiri Pirko
2014-11-21 18:54:39 UTC
Upstream commits: https://github.com/jpirko/libteam/commit/42a1692e386e9d5276397bf6d6468c08374f2966 https://github.com/jpirko/libteam/commit/633f943d24fd55d5eb7d5b31301de89950131d3f Verified on- 3.10.0-295.el7.x86_64
[root@sam ~]# teamd -d -t team0
[601071.239968] team0: Mode changed to "roundrobin"
[root@sam ~]# ip link set enp7s0f0 down
[root@sam ~]# ip link set enp7s0f1 down
[root@sam ~]# teamdctl team0 port add enp7s0f0
[601208.472693] be2net 0000:07:00.0: MAC address changed to 02:15:42:fb:62:38
[601208.560528] be2net 0000:07:00.0 enp7s0f0: Link is Up
[601208.627055] team0: Port device enp7s0f0 added
[root@sam ~]# [601208.682685] be2net 0000:07:00.0: MAC address changed to 00:90:fa:8a:5b:fa
[root@sam ~]# teamdctl team0 port add enp7s0f1
[601212.261678] be2net 0000:07:00.1: MAC address changed to 00:90:fa:8a:5b:fa
[601212.349322] be2net 0000:07:00.1 enp7s0f1: Link is Up
[601212.418451] team0: Port device enp7s0f1 added
[root@sam ~]#
[root@sam ~]#
[root@sam ~]# ip link set team0 up
[root@sam ~]# [601223.451192] IPv6: team0: IPv6 duplicate address fe80::290:faff:fe8a:5bfa detected!
[root@sam ~]# teamdctl team0 state
setup:
runner: roundrobin
ports:
enp7s0f0
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
enp7s0f1
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
The output showing increased count when link failure occurs.
Verified on- libteam-1.17-1.el7.x86_64
[root@sam ~]# rpm -q libteam
libteam-1.17-1.el7.x86_64
[root@sam ~]# teamd -v
teamd 1.17
[root@sam ~]# teamd -d -t team0
[ 6210.170563] team0: Mode changed to "roundrobin"
[root@sam ~]# ip link set enp7s0f0 down
[root@sam ~]# ip link set enp7s0f1 down
[root@sam ~]# teamdctl team0 port add enp7s0f0
[ 6251.815737] be2net 0000:07:00.0: MAC address changed to 3a:9f:ff:0a:8e:07
[ 6251.902499] be2net 0000:07:00.0 enp7s0f0: Link is Up
[ 6251.967992] team0: Port device enp7s0f0 added
[root@sam ~]# [ 6252.022129] be2net 0000:07:00.0: MAC address changed to 00:90:fa:8a:5b:fa
[root@sam ~]# teamdctl team0 port add enp7s0f1
[ 6258.367409] be2net 0000:07:00.1: MAC address changed to 00:90:fa:8a:5b:fa
[ 6258.454067] be2net 0000:07:00.1 enp7s0f1: Link is Up
[ 6258.519637] team0: Port device enp7s0f1 added
[root@sam ~]#
[root@sam ~]# ip link set team0 up
[root@sam ~]# [ 6283.022175] IPv6: team0: IPv6 duplicate address fe80::290:faff:fe8a:5bfa detected!
[root@sam ~]# teamdctl team0 state
setup:
runner: roundrobin
ports:
enp7s0f0
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
enp7s0f1
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
[root@sam ~]# ip link set team0 down
[root@sam ~]# teamdctl team0 state
setup:
runner: roundrobin
ports:
enp7s0f0
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
enp7s0f1
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
[root@sam ~]# ip link set team0 up
[root@sam ~]# [ 6327.470647] IPv6: team0: IPv6 duplicate address fe80::290:faff:fe8a:5bfa detected!
[root@sam ~]#
[root@sam ~]# teamdctl team0 state
setup:
runner: roundrobin
ports:
enp7s0f0
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
enp7s0f1
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
[root@sam ~]# ip link set enp7s0f0 down
[root@sam ~]# ip link set enp7s0f0 up
[ 6395.151183] be2net 0000:07:00.0 enp7s0f0: Link is Up
[root@sam ~]#
[root@sam ~]# teamdctl team0 state
setup:
runner: roundrobin
ports:
enp7s0f0
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 1
enp7s0f1
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
[root@sam ~]# ip link set enp7s0f1 down
[root@sam ~]# ip link set enp7s0f1 up
[ 6412.647723] be2net 0000:07:00.1 enp7s0f1: Link is Up
[root@sam ~]# teamdctl team0 state
setup:
ports:
enp7s0f0
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 1
enp7s0f1
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 1
[root@sam ~]# ip link set enp7s0f1 down
[root@sam ~]# ip link set enp7s0f1 up
[ 6426.954332] be2net 0000:07:00.1 enp7s0f1: Link is Up
[root@sam ~]# teamdctl team0 state
setup:
runner: roundrobin
ports:
enp7s0f0
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 1
enp7s0f1
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 2
[root@sam ~]#
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-2176.html |