Bug 1480223

Summary: iproute does not show some geneve protocol's options when they are set
Product: Red Hat Enterprise Linux 7 Reporter: Jaroslav Aster <jaster>
Component: iprouteAssignee: Phil Sutter <psutter>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4-AltCC: atragler, jaster
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-10 13:04:11 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 Jaroslav Aster 2017-08-10 12:28:51 UTC
Description of problem:

iproute does not show some geneve protocol's options when they are set. It is a regression against rhel-7.4.


Version-Release number of selected component (if applicable):

iproute-4.11.0-1.el7a
kernel-4.11.0-16.el7a


How reproducible:

100%


Steps to Reproduce:

1. Options udp6zerocsumtx noudp6zerocsumtx udp6zerocsumrx noudp6zerocsumrx are not printed when they are set.

# ip link add TestIface type geneve id 10 remote 192.168.11.1 udp6zerocsumtx; echo "return code: $?"
return code: 0
# ip -d link show TestIface | grep udp6zerocsumtx || echo '<<nothing>>'
<<nothing>>

2. Options udpcsum noudpcsum are printed when they are set, but they are switched. When I set udpcsum, I see noudpcsum and reverse.

# ip link add TestIface type geneve id 10 remote 192.168.11.1 udpcsum; echo "return code: $?"
return code: 0
# ip -d link show TestIface | grep udpcsum || echo '<<nothing>>'
    geneve id 10 remote 192.168.11.1 dstport 6081 noudpcsum addrgenmode eui64

# ip link add TestIface type geneve id 10 remote 192.168.11.1 noudpcsum; echo "return code: $?"
return code: 0
# ip -d link show TestIface | grep udpcsum || echo '<<nothing>>'
    geneve id 10 remote 192.168.11.1 dstport 6081 udpcsum addrgenmode eui64 


Actual results:

Some options are not printed.


Expected results:

All options are printed.

Comment 2 Phil Sutter 2017-08-10 12:43:13 UTC
Hi Jaroslav,

Flags udp6zerocsumtx noudp6zerocsumtx udp6zerocsumrx noudp6zerocsumrx are only valid for IPv6 tunnels. So I guess things work if you specify an IPv6 remote.

Regarding inverted udpcsum flags, see Bug 1480207.

Comment 3 Jaroslav Aster 2017-08-10 13:04:11 UTC
Hi Phil,

you are right. I had a mistake in my test. It passed on rhel-7.4, so I missed it. I fixed my test and it passed now. So there is only one issue with udpcsum and it is, as you wrote, kernel issue.

I will close this bug as a duplicate and we will track issue in bz#1480207. Thanks for investigation.

*** This bug has been marked as a duplicate of bug 1480207 ***