Bug 1816026 - Switching ovirtmgmt from DHCP to IPv4 static is blocked becasue nmstate accepts only 2 name servers
Summary: Switching ovirtmgmt from DHCP to IPv4 static is blocked becasue nmstate accep...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: Core
Version: 4.40.2
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ovirt-4.4.0
: ---
Assignee: bugs@ovirt.org
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On: 1816043
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-23 08:06 UTC by Michael Burman
Modified: 2020-05-20 20:00 UTC (History)
4 users (show)

Fixed In Version: vdsm-4.40.9-1.el8ev.x86_64
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-20 20:00:06 UTC
oVirt Team: Network
Embargoed:
michal.skrivanek: ovirt-4.4?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1669466 0 low CLOSED Allow setting 3 dns name servers instead of the current two 2021-02-22 00:41:40 UTC

Description Michael Burman 2020-03-23 08:06:08 UTC
Description of problem:
Switching ovirtmgmt from DHCP to IPv4 static is blocked becasue nmstate accepts only 2 name servers 

nmstate doesn't allow to set more than 2 name servers, so when we try to switch host from dhcp to ip static and host has 3 name servers(like all our hosts) the operation is blocked.
We need to handle this in our side and pass only two name servers and if nmstate doesn't allow it.

libnmstate.error.NmstateNotImplementedError: Nmstate only support at most 2 DNS name servers

Version-Release number of selected component (if applicable):
vdsm-4.40.7-1.el8ev.x86_64
nmstate-0.2.6-4.8.el8.noarch

How reproducible:
100%

Steps to Reproduce:
1. Have dhcp host with 3 name servers
2. Try to switch ovirtmgmt bootprotocol from dhcp to static ipv4 address

Actual results:
Operation blocked
libnmstate.error.NmstateNotImplementedError: Nmstate only support at most 2 DNS name servers

Expected results:
Must work

Additional info:
At the current it's not clear why nmstate support only 2 name servers in resolv.conf

Comment 1 Michael Burman 2020-03-30 12:20:28 UTC
Verified on - vdsm-4.40.9-1.el8ev.x86_64 with 
nmstate-0.2.6-6.el8.noarch
rhvm-4.4.0-0.29.master.el8ev.noarch

Comment 2 Sandro Bonazzola 2020-05-20 20:00:06 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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