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

NM connections scanner can fail when a connection points to /dev/null

    • Minor
    • sst_upgrades
    • False
    • Hide

      None

      Show
      None
    • Red Hat Enterprise Linux
    • All

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

      Leapp fails with a traceback while trying "to clear the secrets via libnm" (as per the code comments). Their system-connections contains only a file entry that points to /dev/null.

      $ readlink /etc/NetworkManager/system-connections/cdc054b6-f35c-413f-a7d2-3c6e3a22162e.nmmeta 
      ../../../dev/null 

      Please provide the package NVR for which bug is seen:

      leapp-upgrade-el8toel9-0.18.0-1.el8_8.2.noarch

      How reproducible:

      Not attempted, but it seems obvious

      Expected results

      works

      Actual results

        File "/etc/leapp/repos.d/system_upgrade/el8toel9/actors/networkmanagerconnectionscanner/libraries/networkmanagerconnectionscanner.py", line 55, in process_dir
          process_file(os.path.join(NM_CONN_DIR, f))
        File "/etc/leapp/repos.d/system_upgrade/el8toel9/actors/networkmanagerconnectionscanner/libraries/networkmanagerconnectionscanner.py", line 29, in process_file
          keyfile.load_from_file(filename, GLib.KeyFileFlags.NONE)
      GLib.GError: g-key-file-error-quark: Not a regular file (1) 

            leapp-notifications leapp-notifications
            rhn-support-cbesson Christophe Besson
            leapp-notifications leapp-notifications
            RHEL Upgrades QE Team RHEL Upgrades QE Team
            Miriam Portman Miriam Portman
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: