RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1885857 - RFE: Support static IP address and routes on DHCP/Autoconf interface.
Summary: RFE: Support static IP address and routes on DHCP/Autoconf interface.
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nmstate
Version: 8.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.5
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks: 1875520
TreeView+ depends on / blocked
 
Reported: 2020-10-07 07:53 UTC by Dominik Holler
Modified: 2023-03-08 02:52 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-18 06:27:49 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
files referenced in the "Steps to Reproduce" (3.97 KB, text/plain)
2020-10-07 07:53 UTC, Dominik Holler
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker NMT-367 0 None None None 2023-03-08 02:52:48 UTC

Description Dominik Holler 2020-10-07 07:53:22 UTC
Created attachment 1719639 [details]
files referenced in the "Steps to Reproduce"

Description of problem:
If there is an static IPv6 without disabling dynamic IPv6, nmstate seems to be confused on the next change. 

Version-Release number of selected component (if applicable):
nmstate-0.2.10-1.el8.noarch

How reproducible:
100%

Steps to Reproduce:
1. nmstatectl set ~/initial.state
2. nmcli c m eth0  ipv6.address fd::44/64
3. nmcli c m eth0  ipv6.gateway fe80::1
4. nmcli c up eth0
5. python3 ~/apply_desired.py


Actual results:
nmstate fails with "ipv6.gateway: gateway cannot be set if there are no addresses configured"

Expected results:
nmstate succeeds

Additional info:

Comment 1 Gris Ge 2020-12-02 08:25:35 UTC
Hi Dominik,

The problem only exists on RHEL 8.2(nmstate-0.2).
Do you still need a zstream fix there?

RHEL 8.3 and RHEL 8.4 does not have this problem.

Meanwhile, nmstate-0.3 and nmstate-1.0 does not support DHCP/AutoConf with static ip and gateway. When user have both static ip/gatway along with DHCP/AutoConf, the static ip/gateway will be removed. Is this acceptable?

Comment 2 Dominik Holler 2020-12-02 09:21:26 UTC
(In reply to Gris Ge from comment #1)
> Hi Dominik,
> 
> The problem only exists on RHEL 8.2(nmstate-0.2).
> Do you still need a zstream fix there?
> 

No, thanks for asking.
RHV is already completely on RHEL 8.3 now.

> RHEL 8.3 and RHEL 8.4 does not have this problem.
> 
> Meanwhile, nmstate-0.3 and nmstate-1.0 does not support DHCP/AutoConf with
> static ip and gateway. When user have both static ip/gatway along with
> DHCP/AutoConf, the static ip/gateway will be removed. Is this acceptable?

Yes, the only way to set an additional IP address in oVirt/RHV is
https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/extra_ipv4_addrs
which is triggered after nmstate.

Please ensure that static routes, set by nmstate, are not removed by nmstate unintentionally.

Comment 3 Gris Ge 2020-12-05 02:10:34 UTC
Hi Dominik,

For any route set via nmstate, nmstate will not removed unintentionally. If you found otherwise, feel free to open a new bug.

If you need nmstate support of static ip/routes over auto interface, please share the use case with me, and we may plan it for RHEL 8.5.

Comment 5 Ales Musil 2021-03-15 10:47:35 UTC
(In reply to Gris Ge from comment #3)
> Hi Dominik,
> 
> For any route set via nmstate, nmstate will not removed unintentionally. If
> you found otherwise, feel free to open a new bug.
> 
> If you need nmstate support of static ip/routes over auto interface, please
> share the use case with me, and we may plan it for RHEL 8.5.

Hi Gris,

that in general contradicts what is allowed to configure in RHV. We don't mix dynamic with static ip+gateway config. 
From my point of view we don't need this feature.

Thanks

Comment 7 Gris Ge 2021-09-18 06:27:49 UTC
Closing as RHV does not require feature for assigning static IP address and routes on DHCP/Autoconf interface


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