The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 1819069 - [ovn2.13]dns should not be case sensitive
Summary: [ovn2.13]dns should not be case sensitive
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: ovn2.13
Version: FDP 20.C
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Mark Michelson
QA Contact: Jianlin Shi
URL:
Whiteboard:
Depends On:
Blocks: 1846849
TreeView+ depends on / blocked
 
Reported: 2020-03-31 07:01 UTC by Jianlin Shi
Modified: 2020-06-15 05:35 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1846849 (view as bug list)
Environment:
Last Closed: 2020-05-26 14:07:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2317 0 None None None 2020-05-26 14:07:38 UTC

Description Jianlin Shi 2020-03-31 07:01:01 UTC
Description of problem:
dns should not be case sensitive

Version-Release number of selected component (if applicable):
ovn2.13.0-7

How reproducible:
Always

Steps to Reproduce:
systemctl start openvswitch
systemctl start ovn-northd   
ovn-nbctl set-connection ptcp:6641   
ovn-sbctl set-connection ptcp:6642                   
ovs-vsctl set open . external_ids:system-id=hv1 external_ids:ovn-remote=tcp:20.0.32.25:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.32.25
systemctl restart ovn-controller
ip netns add server0                                                       
ip link add veth0_s0 netns server0 type veth peer name veth0_s0_p
ip netns exec server0 ip link set lo up 
ip netns exec server0 ip link set veth0_s0 up      
ip netns exec server0 ip link set veth0_s0 address 00:00:00:01:01:02
ip netns exec server0 ip addr add 192.168.1.1/24 dev veth0_s0
ip netns exec server0 ip -6 addr add 3001::1/64 dev veth0_s0     
ip netns exec server0 ip route add default via 192.168.1.254 dev veth0_s0
ip netns exec server0 ip -6 route add default via 3001::a dev veth0_s0
ovs-vsctl add-port br-int veth0_s0_p                                
ip link set veth0_s0_p up                                    
                                                            
ovs-vsctl set interface veth0_s0_p external_ids:iface-id=ls1p1           
                                                                      
ovn-nbctl ls-add ls1
ovn-nbctl lsp-add ls1 ls1p1         
ovn-nbctl lsp-set-addresses ls1p1 00:00:00:01:01:02
ovn-nbctl lr-add lr1
ovn-nbctl lrp-add lr1 lr1-ls1 00:00:00:00:00:01 192.168.1.254/24 3001::a/64
ovn-nbctl lsp-add ls1 ls1-lr1
ovn-nbctl lsp-set-type ls1-lr1 router                
ovn-nbctl lsp-set-options ls1-lr1 router-port=lr1-ls1
ovn-nbctl lsp-set-addresses ls1-lr1 "00:00:00:00:00:01 192.168.1.254/24 3001::a/64"
                                                   
ovn-nbctl ls-add ls2               
ovn-nbctl lsp-add ls2 ls2-lr1      
ovn-nbctl lsp-set-type ls2-lr1 router
ovn-nbctl lsp-set-options ls2-lr1 router-port=lr1-ls2
ovn-nbctl lsp-set-addresses ls2-lr1 "00:00:00:00:00:02 192.168.0.254/24 3000::a/64"

ovn-nbctl lrp-add lr1 lr1-ls2 00:00:00:00:00:02 192.168.0.254/24 3000::a/64

ovn-nbctl lsp-add ls2 ls2p1
ovn-nbctl lsp-set-addresses ls2p1 00:00:00:02:01:01

ip netns add server1
ip link add veth0_s1 netns server1 type veth peer name veth0_s1_p
ip netns exec server1 ip link set lo up
ip netns exec server1 ip link set veth0_s1 up
ip netns exec server1 ip link set veth0_s1 address 00:00:00:02:01:01
ip netns exec server1 ip addr add 192.168.0.1/24 dev veth0_s1
ip netns exec server1 ip -6 addr add 3000::1/64 dev veth0_s1
ip netns exec server1 ip route add default via 192.168.0.254 dev veth0_s1
ip netns exec server1 ip -6 route add default via 3000::a dev veth0_s1

ovs-vsctl add-port br-int veth0_s1_p
ip link set veth0_s1_p up

ovs-vsctl set interface veth0_s1_p external_ids:iface-id=ls2p1

dns=$(ovn-nbctl create dns records:aaa="192.168.1.1")
ovn-nbctl set logical_switch ls2 dns_records=$dns

echo "nameserver 192.168.0.254" >> /etc/resolv.conf
ip netns exec server1 ping aaa -c 1
ip netns exec server1 ping aAa -c 1


Actual results:
fail to ping aAa

Expected results:
ping passed

Additional info:

[root@dell-per740-12 dns]# rpm -qa | grep -E "openvswitch|ovn"
ovn2.13-host-2.13.0-7.el7fdp.x86_64
kernel-kernel-networking-openvswitch-ovn-dns-1.0-4.noarch                                             
ovn2.13-2.13.0-7.el7fdp.x86_64
openvswitch2.13-2.13.0-10.el7fdp.x86_64
kernel-kernel-networking-openvswitch-ovn-common-1.0-7.noarch
openvswitch-selinux-extra-policy-1.0-15.el7fdp.noarch
kernel-kernel-networking-openvswitch-ovn_ha-1.0-55.noarch
ovn2.13-central-2.13.0-7.el7fdp.x86_64

[root@dell-per740-12 dns]# bash -x setup.sh                                                           
+ systemctl start openvswitch                                                                         
+ systemctl start ovn-northd                                                         
+ ovn-nbctl set-connection ptcp:6641                                         
+ ovn-sbctl set-connection ptcp:6642                                                                  
+ ovs-vsctl set open . external_ids:system-id=hv1 external_ids:ovn-remote=tcp:20.0.32.25:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=20.0.32.25
+ systemctl restart ovn-controller                                                                    
+ ip netns add server0                                             
+ ip link add veth0_s0 netns server0 type veth peer name veth0_s0_p                                   
+ ip netns exec server0 ip link set lo up                                                             
+ ip netns exec server0 ip link set veth0_s0 up                       
+ ip netns exec server0 ip link set veth0_s0 address 00:00:00:01:01:02
+ ip netns exec server0 ip addr add 192.168.1.1/24 dev veth0_s0
+ ip netns exec server0 ip -6 addr add 3001::1/64 dev veth0_s0             
+ ip netns exec server0 ip route add default via 192.168.1.254 dev veth0_s0
+ ip netns exec server0 ip -6 route add default via 3001::a dev veth0_s0                              
+ ovs-vsctl add-port br-int veth0_s0_p                                                                
+ ip link set veth0_s0_p up

++ ovn-nbctl create dns records:aaa=192.168.1.1
+ dns=46a1f948-cfde-4146-acc2-df8154cb1d87                                                            
+ ovn-nbctl set logical_switch ls2 dns_records=46a1f948-cfde-4146-acc2-df8154cb1d87
+ echo 'nameserver 192.168.0.254'
+ ip netns exec server1 ping aaa -c 1                                                                 
PING aaa (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=63 time=2.34 ms

--- aaa ping statistics --- 
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.341/2.341/2.341/0.000 ms                                                     
+ ip netns exec server1 ping aAa -c 1                                                                 
ping: aAa: Name or service not known

<=== fail

Comment 1 Mark Michelson 2020-04-20 14:38:03 UTC
Patch posted upstream to fix this: https://patchwork.ozlabs.org/project/openvswitch/patch/20200420140227.4171953-1-mmichels@redhat.com/

I will update this issue once the patch has been merged upstream and has been ported downstream.

Comment 4 Jianlin Shi 2020-04-29 01:49:01 UTC
Verified on ovn2.13.0-21:

+ ip netns exec server1 ping aaa -c 1                                                                 
PING aaa (192.168.1.1) 56(84) bytes of data.                                                          
64 bytes from 192.168.1.1: icmp_seq=1 ttl=63 time=5.35 ms                                             
                                                                                                      
--- aaa ping statistics ---                                                                           
1 packets transmitted, 1 received, 0% packet loss, time 0ms                                           
rtt min/avg/max/mdev = 5.352/5.352/5.352/0.000 ms                                                     
+ ip netns exec server1 ping aAa -c 1                                                                 
PING aAa (192.168.1.1) 56(84) bytes of data.                                                          
64 bytes from 192.168.1.1: icmp_seq=1 ttl=63 time=0.925 ms                                            
                                                                                                      
--- aAa ping statistics ---                                                                           
1 packets transmitted, 1 received, 0% packet loss, time 0ms                                           
rtt min/avg/max/mdev = 0.925/0.925/0.925/0.000 ms   

<=== ping passed
                                                  
[root@hp-dl380pg8-13 bz1819069]# rpm -qa | grep -E "openvswitch|ovn"
ovn2.13-2.13.0-21.el8fdp.x86_64
openvswitch-selinux-extra-policy-1.0-23.el8fdp.noarch
python3-openvswitch2.13-2.13.0-18.el8fdp.x86_64
ovn2.13-host-2.13.0-21.el8fdp.x86_64
openvswitch2.13-2.13.0-18.el8fdp.x86_64
kernel-kernel-networking-openvswitch-ovn-common-1.0-7.noarch
kernel-kernel-networking-openvswitch-ovn_ha-1.0-55.noarch
ovn2.13-central-2.13.0-21.el8fdp.x86_64

Comment 5 Jianlin Shi 2020-04-29 02:04:50 UTC
Verified on rhel7 version: + ip netns exec server1 ping aaa -c 1                                                                 
PING aaa (192.168.1.1) 56(84) bytes of data.                                                          
64 bytes from 192.168.1.1: icmp_seq=1 ttl=63 time=4.62 ms                                             
                                                                                                      
--- aaa ping statistics ---                                                                           
1 packets transmitted, 1 received, 0% packet loss, time 0ms                                           
rtt min/avg/max/mdev = 4.621/4.621/4.621/0.000 ms                                                     
+ ip netns exec server1 ping aAa -c 1                                                                 
PING aAa (192.168.1.1) 56(84) bytes of data.                                                          
64 bytes from 192.168.1.1: icmp_seq=1 ttl=63 time=0.919 ms                                            
                                                                                                      
--- aAa ping statistics ---                                                                           
1 packets transmitted, 1 received, 0% packet loss, time 0ms                                           
rtt min/avg/max/mdev = 0.919/0.919/0.919/0.000 ms                                                     
[root@dell-per740-12 bz1819069]# rpm -qa | grep -E "openvswitch|ovn"                                  
ovn2.13-host-2.13.0-21.el7fdp.x86_64                                                                  
openvswitch2.13-2.13.0-17.el7fdp.x86_64                                                               
ovn2.13-central-2.13.0-21.el7fdp.x86_64                                                               
ovn2.13-2.13.0-21.el7fdp.x86_64                                                                       
openvswitch-selinux-extra-policy-1.0-15.el7fdp.noarch

Comment 7 errata-xmlrpc 2020-05-26 14:07:17 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://access.redhat.com/errata/RHBA-2020:2317


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