Bug 1744322
| Summary: | [OVN] hairpin service connections fail in ovnkubenetes | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Weibin Liang <weliang> |
| Component: | Networking | Assignee: | Dan Winship <danw> |
| Networking sub component: | ovn-kubernetes | QA Contact: | zhaozhanqi <zzhao> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | low | ||
| Priority: | high | CC: | aos-bugs, bbennett, danw |
| Version: | 4.2.0 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.5.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-07-13 17:11:03 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
Weibin Liang
2019-08-21 20:32:02 UTC
More information from testing pods:
#### Curl fail in ovnkubenetes setup:
[root@dhcp-41-193 AWS]# oc rsh blue-pod-1
/ # ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: eth0@if14: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1400 qdisc noqueue state UP
link/ether 2a:ba:63:81:02:09 brd ff:ff:ff:ff:ff:ff
inet 10.129.2.8/23 brd 10.129.3.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::28ba:63ff:fe81:209/64 scope link
valid_lft forever preferred_lft forever
/ # ip route
default via 10.129.2.1 dev eth0
10.129.2.0/23 dev eth0 src 10.129.2.8
/ # cat /etc/resolv.conf
search p7.svc.cluster.local svc.cluster.local cluster.local us-west-2.compute.internal
nameserver 172.30.0.10
options ndots:5
/ # nslookup blue-service.p7.svc.cluster.local
nslookup: can't resolve '(null)': Name does not resolve
Name: blue-service.p7.svc.cluster.local
Address 1: 172.30.6.147 blue-service.p7.svc.cluster.local
/ # nslookup blue-service
nslookup: can't resolve '(null)': Name does not resolve
Name: blue-service
Address 1: 172.30.6.147 blue-service.p7.svc.cluster.local
/ # curl blue-service:8080
^C
/ # exit
command terminated with exit code 130
[root@dhcp-41-193 AWS]# oc get ep
NAME ENDPOINTS AGE
blue-service 10.129.2.8:8080 17m
[root@dhcp-41-193 AWS]# oc rsh blue-pod-1
/ # curl 10.129.2.8:8080
Hello Blue Pod-1 Example
/ #
#### curl pass in SDN with networkpolicy setup:
[root@dhcp-41-193 ~]# oc rsh blue-pod-1
/ # ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: eth0@if21: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 8951 qdisc noqueue state UP
link/ether 0a:58:0a:83:00:10 brd ff:ff:ff:ff:ff:ff
inet 10.131.0.16/23 brd 10.131.1.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::c064:15ff:fe7d:ad18/64 scope link
valid_lft forever preferred_lft forever
/ # ip route
default via 10.131.0.1 dev eth0
10.128.0.0/14 dev eth0
10.131.0.0/23 dev eth0 src 10.131.0.16
172.30.0.0/16 via 10.131.0.1 dev eth0
224.0.0.0/4 dev eth0
/ # cat /etc/resolv.conf
search p7.svc.cluster.local svc.cluster.local cluster.local us-east-2.compute.internal
nameserver 172.30.0.10
options ndots:5
/ # nslookup blue-service.p7.svc.cluster.local
nslookup: can't resolve '(null)': Name does not resolve
Name: blue-service.p7.svc.cluster.local
Address 1: 172.30.11.32 blue-service.p7.svc.cluster.local
/ # nslookup blue-service
nslookup: can't resolve '(null)': Name does not resolve
Name: blue-service
Address 1: 172.30.11.32 blue-service.p7.svc.cluster.local
/ # curl blue-service:8080
Hello Blue Pod-1 Example
/ #
/ #
/ # exit
[root@dhcp-41-193 ~]# oc get ep
NAME ENDPOINTS AGE
blue-service 10.131.0.16:8080 15m
[root@dhcp-41-193 ~]# oc rsh blue-pod-1
/ # curl 10.131.0.16:8080
Hello Blue Pod-1 Example
/ #
Filed an upstream bug: https://github.com/ovn-org/ovn-kubernetes/issues/817 fixed with the upgrade to OVN 2.13. (This has been fixed for a while, I just forgot there was a bz...) Verified this bug on 4.5.0-0.nightly-2020-05-07-144853 #oc get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE test-service ClusterIP 172.30.185.53 <none> 27017/TCP 79s [zzhao@dhcp-140-240 ~]$ oc rsh -n z1 test-rc-d4x7d ~ $ curl test-service:27017 Hello OpenShift! ~ $ 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://access.redhat.com/errata/RHBA-2020:2409 |