Bug 1911468

Summary: Static IP is not configured from infinite dhcp lease when cluster deployed with OVNKubernetes
Product: OpenShift Container Platform Reporter: Victor Voronkov <vvoronko>
Component: InstallerAssignee: Ben Nemec <bnemec>
Installer sub component: OpenShift on Bare Metal IPI QA Contact: Victor Voronkov <vvoronko>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: high    
Priority: high CC: bnemec, hpokorny
Version: 4.7Keywords: Triaged
Target Milestone: ---   
Target Release: 4.7.0   
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: 2021-01-20 21:26:45 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 Victor Voronkov 2020-12-29 16:02:53 UTC
Version:

4.7.0-fc.0

Platform:

baremetal IPI

What happened?

OVN create a bridge over the interface that was configured by the script and keep dhcp:

[core@master-0-0 ~]$ nmcli con show br-ex | grep method
ipv4.method:                            auto
ipv6.method:                            auto

What did you expect to happen?

That the external interface will have static IP configured and will not request DHCP lease anymore, when infinite lease was configured

How to reproduce it (as minimally and precisely as possible)?

Deploy cluster with infinite lease and OVN

Anything else we need to know?

In case cluster is deployed with OVS (OpenshiftSDN) static IP is configured as expected:

[core@master-0-0 ~]$ nmcli con show
NAME                 UUID                                  TYPE      DEVICE 
inf-lease-to-static  44c87dc3-4dea-4a00-9ad2-dba55b509b20  ethernet  enp5s0 
[core@master-0-0 ~]$ nmcli con show inf-lease-to-static | grep method
ipv4.method:                            manual
ipv6.method:                            auto

Comment 1 Ben Nemec 2021-01-04 14:22:30 UTC
br-ex isn't the nmcli interface that is configured by the script. There's a different one named ovs-if-br-ex that should have the manual configuration. Can you check if that interface was correctly configured?

Comment 4 Victor Voronkov 2021-01-09 19:33:10 UTC
Verified on 4.7.0-0.nightly-2021-01-09-021054
with dual stack

[core@master-0-0 ~]$ nmcli con show ovs-if-br-ex | grep method
ipv4.method:                            manual
ipv6.method:                            manual