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

Replace potential raising of errors by logs only when updating SSSD/SSH config

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • No
    • Low
    • rhel-upgrades
    • 12
    • 0
    • False
    • False
    • Hide

      None

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

      RHEL 10 introduces changes in SSH & SSSD - replacing sss_ssh_knownhostsproxy by sss_ssh_knownhosts which triggers need for an update of sssd and ssh configuration files if used.

      This has been implemented in the past for IPU 9.7 -> 10.1 here: https://github.com/oamg/leapp-repository/pull/1397

      The overal solution is good, but in case of unexpected corner cases it can raise an error, which can block application of some additional system changes / fixes that need to be performed as well. manual fixing of the system can be then harder than in case of just one broken component - even when we speak in this case about lost SSH.

      Apply changes mentioned in the PR which has been planned to be delivered separately. Namely:

      • replace raise of errors by logging - post upgrade report could be created as well.
      • if the temporary file already exists, just rewrite it. In case you want to be sure the file could exists only in relation to leapp upgrades, use the `.leappsave` suffix instead of `.old` - and analogically `.leappnew` instead of `.new`.

              kkula@redhat.com Karolina Kula
              pstodulk@redhat.com Petr Stodulka
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: