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

[RFE] Detect non ASCII config file during leapp upgrade

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Story Story
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • None
    • leapp-repository
    • None
    • None
    • rhel-upgrades
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Goal

      • This RFE comes from an issue seen during an upgrade from RHEL8 to RHEL9:
        • After the migration, the sshd_config file appears to be corrupted, and does not work anymore.
        • The root cause was that the file was in DOS format (with ^M$)
        • It was working in RHEL8, but during the upgrade process, leapp.workflow.Applications.open_ssh_drop_in_directory wrongly adds characters
        • If python might handled these files correctly, leapp could also print a warning if a file is not is Unix mode

      Acceptance criteria

      A list of verification conditions, successful functional tests, or expected outcomes in order to declare this story/task successfully completed.

      • To confirm the issue, you can use the attach sshd_config file, then process to upgrade
      • The file becomes corrupted and sshd daemon will not start anymore
      • The requested feature is to add a check to verify that config files (processed by leapp) are in unix mode and suggest to convert them with dos2unix
      • Verify Z

        1. 0030-sshd_config.rhel8
          4 kB
          Benoit Welterlen
        2. sshd_config.rhel9
          4 kB
          Benoit Welterlen

              leapp-notifications leapp-notifications
              rhn-support-bwelterl Benoit Welterlen
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: