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 2169982 - [RFE] DHCP based installation shall allow creation network bonding and allowing custom/specifying routes with nmstate.
Summary: [RFE] DHCP based installation shall allow creation network bonding and allowi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: nmstate
Version: 9.2
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks: 2203277
TreeView+ depends on / blocked
 
Reported: 2023-02-15 10:02 UTC by Parikshit Khedekar
Modified: 2023-06-15 09:55 UTC (History)
7 users (show)

Fixed In Version: nmstate-2.2.7-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2203277 (view as bug list)
Environment:
Last Closed: 2023-05-09 07:32:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Errors we get while creating image with above config. (20.39 KB, text/plain)
2023-02-15 10:02 UTC, Parikshit Khedekar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github nmstate nmstate pull 2240 0 None open ip: Support static route with auto ip 2023-02-16 04:05:38 UTC
Red Hat Issue Tracker NMT-302 0 None None None 2023-02-15 10:03:06 UTC
Red Hat Issue Tracker RHELPLAN-148704 0 None None None 2023-02-15 10:03:10 UTC
Red Hat Product Errata RHBA-2023:2190 0 None None None 2023-05-09 07:32:20 UTC

Description Parikshit Khedekar 2023-02-15 10:02:42 UTC
Created attachment 1944268 [details]
Errors we get while creating image with above config.

Description of problem:

With the current Agent based installer we need to have a option to specify
some more details while we use DHCP. Current configs aligns to nmstate which
takes the agent config to consideration and likely following will fail,
--------------------

apiVersion: v1alpha1
kind: AgentConfig
metadata:
  name: ocp4
rendezvousIP: 10.47.xx.xx
hosts:
  - hostname: master-0.ocp4.xyz.com
    role: master
    interfaces:
      - name: eno49
        macAddress: b8:83:03:81:0d:70
      - name: eno50
        macAddress: b8:83:03:81:0d:71
    rootDeviceHints:
      deviceName: /dev/sda
    networkConfig:
      interfaces:
        - name: bond0
          type: bond
          state: up
          mtu: 9000
          mac-address: b8:83:03:81:0d:70
          ipv4:
            enabled: true
            dhcp: true
          link-aggregation:
            mode: 802.3ad
            options:
              miimon: "150"
            port:
             - eno49
             - eno50
      dns-resolver:
        config:
          server:
            - 10.47.xx.xx
      routes:
        config:
          - destination: 0.0.0.0/0
            next-hop-address: 10.47.108.1
            next-hop-interface: bond0
            table-id: 254

----------------

Here, the requirement is to have the DHCP offering along with privilege to get
the bonding configured which isn't possible with current agent based
installer. If we try something like above it will fail as per the
"error-output-for-the-create-image-command.txt" file attached here.

 

Version-Release number of selected component (if applicable):

4.12

How reproducible:

- Create an agent config as per above to have bonding created where the IP addresses would be DHCP reservations.
- Run the installer

Steps to Reproduce:

1. Create agent config to have DHCP with Bond config
2. Run the command to create ISO
3.

Actual results:

- Results in to errors and from documentation we don't see any options to have
this kind of setup.

Expected results:

- Shall allow DHCP bonding with declaration of DHCP reservations with specifying routes with nmstate.

Additional info:

Comment 2 Gris Ge 2023-02-16 04:05:39 UTC
Patch posted to upstream: https://github.com/nmstate/nmstate/pull/2240

Example YAML file:

```yml
---
interfaces:
  - name: eth1
    type: ethernet
    state: up
    ipv4:
      dhcp: true
      enabled: true
    ipv6:
      dhcp: true
      autoconf: true
      enabled: true
routes:
  config:
  - destination: 198.51.100.0/24
    metric: 150
    next-hop-address: 192.0.2.1
    next-hop-interface: eth1
    table-id: 254
  - destination: 2001:db8:2::/64
    metric: 151
    next-hop-address: 2001:db8:1::2
    next-hop-interface: eth1
```

Comment 6 Mingyu Shi 2023-02-25 15:31:42 UTC
Verified with nmstate-2.2.7-1.el9

Comment 8 errata-xmlrpc 2023-05-09 07:32:13 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.