Bug 1911468 - Static IP is not configured from infinite dhcp lease when cluster deployed with OVNKubernetes
Summary: Static IP is not configured from infinite dhcp lease when cluster deployed wi...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.7
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.7.0
Assignee: Ben Nemec
QA Contact: Victor Voronkov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-29 16:02 UTC by Victor Voronkov
Modified: 2021-01-20 21:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-20 21:26:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift machine-config-operator pull 2323 0 None closed Bug 1911468: [baremetal] Handle OVNKubernetes on ipv4 correctly in static-dhcp 2021-02-18 12:05:09 UTC

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


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