Uploaded image for project: 'Cockpit'
  1. Cockpit
  2. COCKPIT-1371

network module: [anaconda WebIU] handle "Wired Connection" created in initramfs better

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Testable
    • ?
    • ?
    • rhel-cockpit
    • ?

      In Anaconda installer WebUI we are trying to integrate Cockpit networkmanager module as the network configuration UI.

      In the installer environment we have a specific use case(s) which is not common on regular system. One of it is network configuration via boot options, specifically

      ip=dhcp

      upon which NetworkManager creates 'Wired Connection' in initramfs and activates it on all available wired devices with dhcp autoconfiguration.
      (The connection is created also when installer needs network in intimramfs (to fetch stage2, kickstart, ...) and no specific network configuration is set by ip= options, so rather common case).

      When editing devices in Cockpit I am hitting two problems:

      1) After Saving the connection modification (for example adding '8.8.8.8' dns server) the UI hangs with grey screen. When getting to the network page on side panel it can be seen that the change was applied.

      2) If the 'Wired Connection is active on 2 devices, modifying the configuration of one of them, the unbound connection is modified while being still shared by the two devices. This might seem unexpected from user POV? Maybe we should rather clone the connection to say '<iface_name>' and bound it to the edited device while keeping the 'Wired Connection' intact? (Or create a new one as Cockpit does upon editing a device in case there is no connection available for editing?)

      My reproducer:

      • VM with 2 network devices.
      • Install Fedora 43 Server Netinst, select Workstation in Software Selection.
      • After installation add network module to initramfs
      • Boot with ip=dhcp option
      • In Cockpit update the IPv4 configuration of one of the devices by adding 8.8.8.8 dns server.
      • After saving the change the UI hangs with gray screen
      • Go back to the Newtork page on the side panel
      • Look at the other device and see it has 8.8.8.8 dns server added as well (sharing the connection).

      See the screenshots:

      The hang:

      After clicking on Network on side panel:

      The other device shares the configuration:

       

      Attaching logs with connections info dump:

      Before editing the connections:

      network-logs.D2A1P0Bdhcp.C0

      After editing the connections:

      network-logs.D2A1P0Bdhcp.C1.p1dnsHANG

       

      Note1:

      At this stage of integration we care mainly about resolution of problem 1). In the context of 2) we might also consider adding the option to modify the connection name, esp. in cases where auto connections like 'Wired Connection' from initramfs or 'Wired Connection 1'  are edited. This would be for follow-up issue though. Or in the longer term provide more connection-oriented UI - a larger design task.

       

      Note2:

      I was testing also 2 other scenarios where the UI seems to work as expected when editing the 2 devices:

      A) 2 devices, ip=enp1s0 boot option, NM autoconnections turned on

      B) 2 devices, ip=enp1s0 boot option, NM autoconnections turned off  (no-auto-default=* in [main] NM config)

       

       

        1. network-logs.D2A1P0Bdhcp.C0
          268 kB
          Radek Vykydal
        2. network-logs.D2A1P0Bdhcp.C1.p1dnsHANG
          319 kB
          Radek Vykydal
        3. Screenshot From 2025-12-18 09-51-07.png
          154 kB
          Radek Vykydal
        4. Screenshot From 2025-12-18 09-51-11.png
          112 kB
          Radek Vykydal
        5. Screenshot From 2025-12-18 09-51-22.png
          110 kB
          Radek Vykydal
        6. Screenshot From 2025-12-18 09-51-26.png
          67 kB
          Radek Vykydal
        7. Screenshot From 2025-12-18 09-51-30.png
          161 kB
          Radek Vykydal
        8. Screenshot From 2025-12-18 09-51-41.png
          117 kB
          Radek Vykydal
        9. Screenshot From 2025-12-18 09-51-48.png
          119 kB
          Radek Vykydal

              Unassigned Unassigned
              rvykydal@redhat.com Radek Vykydal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: