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 2137267 - if ipv6 is enabled, nmstate cannot raise proper exception for MTU
Summary: if ipv6 is enabled, nmstate cannot raise proper exception for MTU
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: nmstate
Version: 9.2
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On: 2044150
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-24 09:48 UTC by Mingyu Shi
Modified: 2023-05-09 08:22 UTC (History)
6 users (show)

Fixed In Version: nmstate-2.2.3-2.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-09 07:31:50 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github nmstate nmstate pull 2184 0 None open ipv6: raise proper error when MTU < 1280 and IPV6 enabled 2023-01-09 02:58:29 UTC
Red Hat Issue Tracker NMT-227 0 None None None 2023-01-31 11:41:49 UTC
Red Hat Issue Tracker RHELPLAN-137390 0 None None None 2022-10-24 09:56:59 UTC
Red Hat Product Errata RHBA-2023:2190 0 None None None 2023-05-09 07:32:04 UTC

Description Mingyu Shi 2022-10-24 09:48:49 UTC
Description of problem:
Refers to https://bugzilla.redhat.com/show_bug.cgi?id=2044150 , when ipv6 is enabled, the allowed minimum mtu is 1280, but when setting it to, for example, 1200, nmstate cannot friendly prompts and it raises the error at verification.

Version-Release number of selected component (if applicable):
nmstate-2.2.0-0.alpha.20221014.el9.x86_64
NetworkManager-1.40.0-1.el9.x86_64

How reproducible:
100%

Steps to Reproduce:
echo "interfaces:
  - name: veth0
    type: veth
    state: up
    ipv6:
      enabled: true
      address:
      - ip: 10::10
        prefix-length: 64
    veth:
      peer: veth0_p" | nmstatectl apply

nmstatectl show veth0 | grep min-mtu:  # min-mtu is 68

echo "interfaces:
  - name: veth0
    type: veth
    state: up
    ipv6:
      enabled: true
      address:
      - ip: 10::10
        prefix-length: 64
    mtu: 1200
    veth:
      peer: veth0_p" | nmstatectl apply

Actual results:
NmstateError: VerificationError: Verification failure: veth0.interface.mtu desire '1200', current '1280'

Expected results:
Raised a more user-fridenly exception like in https://bugzilla.redhat.com/show_bug.cgi?id=2044150

Ideally, if possible, when ipv6 is enabled, `min-mtu` in the output of `nmstatectl show` should show as 1280.

Additional info:

Comment 1 Gris Ge 2022-11-08 14:42:03 UTC
The min-mtu is hardware limitation at layer 2, it should not be impacted by layer 3(IP) status.

But yes, I will raise user friendly error message.

Comment 4 Gris Ge 2023-01-09 02:58:29 UTC
Patch posted to upstream: https://github.com/nmstate/nmstate/pull/2184

Comment 9 Mingyu Shi 2023-01-31 11:40:36 UTC
Verified with:
nmstate-2.2.5-1.el9.x86_64
nispor-1.2.9-1.el9.x86_64
NetworkManager-1.41.90-1.el9.x86_64
DISTRO=RHEL-9.2.0-20230127.12

Comment 11 errata-xmlrpc 2023-05-09 07:31:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (nmstate bug fix and enhancement update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2023:2190


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