Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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:
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?
(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.
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.
(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
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: