Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-37665

[RFE] Support route and DNS in nmstate kernel mode

    • nmstate-2.2.33-1.el9
    • None
    • 1
    • rhel-sst-network-management
    • ssg_networking
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • NMT - RHEL-9.5 DTM 14
    • Hide

      As a system administrator, I need the nmstate kernel mode to support DNS and gateway configuration so that network settings can be applied quickly and efficiently during the early boot process.

      Acceptance criteria:

      Given a system adminstrator has Nmstate installed on a RHEL system booted without NetworkManager running and a YAML configuration file such as the one in the description is prepared with DNS and route settings, 
      When they execute the command `nmstatectl apply --kernel` along with the configuration file, 

      Then, the DNS resolver configuration is applied, the static routes are configured correctly and the interface is brought up with the specified IP address. 

       

      Definition of Done:

      • The implementation meets the acceptance criteria
      • Integration tests are written and pass 
      • The code is part of a downstream build attached to an errata
      • The changes are documented
      Show
      As a system administrator, I need the nmstate kernel mode to support DNS and gateway configuration so that network settings can be applied quickly and efficiently during the early boot process. Acceptance criteria: Given a system adminstrator has Nmstate installed on a RHEL system booted without NetworkManager running and a YAML configuration file such as the one in the description is prepared with DNS and route settings,  When they execute the command `nmstatectl apply --kernel` along with the configuration file,  Then, the DNS resolver configuration is applied, the static routes are configured correctly and the interface is brought up with the specified IP address.    Definition of Done: The implementation meets the acceptance criteria Integration tests are written and pass  The code is part of a downstream build attached to an errata The changes are documented
    • Pass
    • None
    • None

      What were you trying to do that didn't work?

      Automobile team need nmstate kernel mode to support DNS and gateway.

      https://issues.redhat.com/browse/VROOM-19827

      Please provide the package NVR for which bug is seen:

      How reproducible:

      100%

      Steps to reproduce

      Apply this YAML file via `nmstatectl apply --kernel`

      ---
      dns-resolver: 
        config: 
          search: 
          - example.com
          - example.org
          server: 
          - 2001:4860:4860::8888
          - 2001:4860:4860::8844
          - 8.8.4.4
          - 8.8.8.8
      interfaces: 
        - name: eth1
          type: ethernet
          state: up
          ipv4:
            address: 
            - ip: 192.0.2.251
              prefix-length: 24
            dhcp: false
            enabled: true
          ipv6:
            address: 
            - ip: 2001:db8:1::1
              prefix-length: 64
            dhcp: false
            enabled: true
            autoconf: false
      routes: 
        config: 
        - destination: 0.0.0.0/0
          next-hop-address: 192.0.2.1
          next-hop-interface: eth1
        - destination: ::/0
          next-hop-address: 2001:db8:1::3
          next-hop-interface: eth1
      

      Expected results

      Actual results

              fge@redhat.com Gris Ge
              fge@redhat.com Gris Ge
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: