The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 1823287 - dynamic ipv4 address assignment is not as expected
Summary: dynamic ipv4 address assignment is not as expected
Keywords:
Status: CLOSED CURRENTRELEASE
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: 1825701
TreeView+ depends on / blocked
 
Reported: 2020-04-13 07:29 UTC by Jianlin Shi
Modified: 2021-05-31 01:39 UTC (History)
5 users (show)

Fixed In Version: ovn2.13-20.06.2-15.fdp8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1825701 (view as bug list)
Environment:
Last Closed: 2020-11-10 14:36:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jianlin Shi 2020-04-13 07:29:38 UTC
Description of problem:
dynamic ipv4 address assignment is not as expected

Version-Release number of selected component (if applicable):
ovn2.13-2.13.0-11

How reproducible:
always

Steps to Reproduce:
systemctl start ovn-northd                                                                            
                                                                                                      
ovn-nbctl ls-add ls2                                                                                  
ovn-nbctl lsp-add ls2 ls2p2                                                                           
ovn-nbctl lsp-set-addresses ls2p2 dynamic                                                             
ovn-nbctl set logical_switch ls2 other_config:subnet=172.16.1.1/29
                                                                                                      
ovn-nbctl list logical_switch_port ls2p2                                                              
ovn-nbctl set logical_switch ls2 other_config:subnet=172.16.1.254/29
ovn-nbctl list logical_switch_port ls2p2


Actual results:
when set subnet as 172.16.1.254/29, ipv4 is assigned as 172.16.2.0 

Expected results:
address should be 172.16.1.

Additional info:

[root@dell-per740-12 test]# bash -x test.sh
+ systemctl start ovn-northd
+ ovn-nbctl ls-add ls2  
+ ovn-nbctl lsp-add ls2 ls2p2
+ ovn-nbctl lsp-set-addresses ls2p2 dynamic
+ ovn-nbctl set logical_switch ls2 other_config:subnet=172.16.1.1/29
+ ovn-nbctl list logical_switch_port ls2p2
_uuid               : 615ad4f3-e050-4b39-bf0f-69f247ded2f1
addresses           : [dynamic]
dhcpv4_options      : []
dhcpv6_options      : []   
dynamic_addresses   : "82:fd:c9:10:01:04 172.16.1.3"           
enabled             : []                                          
external_ids        : {}                             
ha_chassis_group    : []              
name                : ls2p2    
options             : {}                                    
parent_name         : []               
port_security       : []            
tag                 : []                                         
tag_request         : []                      
type                : ""               
up                  : false
+ ovn-nbctl set logical_switch ls2 other_config:subnet=172.16.1.254/29
+ ovn-nbctl list logical_switch_port ls2p2
_uuid               : 615ad4f3-e050-4b39-bf0f-69f247ded2f1
addresses           : [dynamic]
dhcpv4_options      : []   
dhcpv6_options      : []                 
dynamic_addresses   : "82:fd:c9:10:01:04 172.16.2.0"   

<==== address is set ad 172.16.2.0
           
enabled             : []
external_ids        : {}                
ha_chassis_group    : []                                            
name                : ls2p2             
options             : {}   
parent_name         : []
port_security       : []
tag                 : []
tag_request         : []
type                : ""
up                  : false
[root@dell-per740-12 test]# rpm -qa | grep -E "openvswitch|ovn"
kernel-kernel-networking-openvswitch-ovn-load_balance-1.0-4.noarch
openvswitch-selinux-extra-policy-1.0-23.el8fdp.noarch
openvswitch2.13-2.13.0-9.el8fdp.x86_64
ovn2.13-2.13.0-11.el8fdp.x86_64
kernel-kernel-networking-openvswitch-ovn-common-1.0-7.noarch
ovn2.13-central-2.13.0-11.el8fdp.x86_64
ovn2.13-host-2.13.0-11.el8fdp.x86_64
kernel-kernel-networking-openvswitch-ovn-add_setting-1.0-1.noarch
python3-openvswitch2.13-2.13.0-9.el8fdp.x86_64


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