-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
1
-
False
-
-
False
-
rhel-sst-network-fastdatapath
-
-
-
ssg_networking
Description:
configure dhcp for lsp, can't get dhcpv4 address when add -s for dhclient
version:
[root@dell-per740-33 test]# rpm -qa | grep -E "openvswitch3.3|ovn"
openvswitch3.3-3.3.0-45.el9fdp.x86_64
python3-openvswitch3.3-3.3.0-45.el9fdp.x86_64
ovn23.09-23.09.4-28.el9fdp.x86_64
ovn23.09-central-23.09.4-28.el9fdp.x86_64
ovn23.09-host-23.09.4-28.el9fdp.x86_64
reproducer:
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:127.0.0.1:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=127.0.0.1 systemctl restart ovn-controller ovn-nbctl ls-add ls1 ovn-nbctl lsp-add ls1 ls1p1 ovn-nbctl lsp-set-addresses ls1p1 "00:00:00:01:01:01 192.168.1.1 2001::1" ovn-nbctl lsp-add ls1 ls1p2 ovn-nbctl lsp-set-addresses ls1p2 "00:00:00:01:01:02 192.168.1.2 2001::2" ovn-nbctl lr-add lr1 ovn-nbctl lrp-add lr1 lr1-ls1 00:00:00:00:00:01 192.168.1.254/24 2001::a/64 ovn-nbctl lsp-add ls1 ls1-lr1 ovn-nbctl lsp-set-addresses ls1-lr1 "00:00:00:00:00:01 192.168.1.254 2001::a" ovn-nbctl lsp-set-type ls1-lr1 router ovn-nbctl lsp-set-options ls1-lr1 router-port=lr1-ls1 dhcp_id=$(ovn-nbctl create DHCP_Options cidr=192.168.1.0/24 'options="server_id"="192.168.1.254" "server_mac"="00:00:00:01:01:0a" "lease_time"="36000" "router"="192.168.1.254"') ovn-nbctl lsp-set-dhcpv4-options ls1p1 $dhcp_id ovn-nbctl --wait=hv sync ovs-vsctl add-port br-int ls1p1 -- set interface ls1p1 type=internal external_ids:iface-id=ls1p1 ip netns add ls1p1 ip link set ls1p1 netns ls1p1 ip netns exec ls1p1 ip link set ls1p1 address 00:00:00:01:01:01 ip netns exec ls1p1 ip link set ls1p1 up ip netns exec ls1p1 dhclient -v ls1p1 -s 192.168.1.254
expected result:
ls1p1 can get dhcp
actual result:
ls1p1 can't get dhcp
other info:
+ ip netns exec ls1p1 dhclient -v ls1p1 -s 192.168.1.254
Internet Systems Consortium DHCP Client 4.4.2b1
Copyright 2004-2019 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
Listening on LPF/ls1p1/00:00:00:01:01:01
Sending on LPF/ls1p1/00:00:00:01:01:01
Sending on Socket/fallback
DHCPREQUEST for 192.168.1.1 on ls1p1 to 192.168.1.254 port 67 (xid=0xd91bb166)
DHCPREQUEST for 192.168.1.1 on ls1p1 to 192.168.1.254 port 67 (xid=0xd91bb166)
DHCPDISCOVER on ls1p1 to 192.168.1.254 port 67 interval 8 (xid=0x87236820)
DHCPDISCOVER on ls1p1 to 192.168.1.254 port 67 interval 10 (xid=0x87236820)
DHCPDISCOVER on ls1p1 to 192.168.1.254 port 67 interval 12 (xid=0x87236820)
DHCPDISCOVER on ls1p1 to 192.168.1.254 port 67 interval 13 (xid=0x87236820)
DHCPDISCOVER on ls1p1 to 192.168.1.254 port 67 interval 18 (xid=0x87236820)
No DHCPOFFERS received.
Trying recorded lease 192.168.1.1
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
grep: /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory
PING 192.168.1.254 (192.168.1.254) from 192.168.1.1 ls1p1: 56(84) bytes of data.
— 192.168.1.254 ping statistics —
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.586/0.586/0.586/0.000 ms
bound: renewal in 15432 seconds.
through capturing packet on ls1p1, I found that dhcp offer is not generated if -s is specified
- clones
-
FDP-765 can't get dhcpv4 address when add -s for dhclient
- In Progress
- links to
-
RHBA-2024:140397 ovn24.03 bug fix and enhancement update