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

Add remediations for RHEL 9 to 10 upgrades

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

    • rhel-upgrades
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Leapp: Sprint 6
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Currently, there are no remediations for the 9 to 10 upgrade. For now, create remediations to enable the tests to run successfully. 

      TASK [common_upgrade_tasks | Show all inhibitors collected by analysis] ********
      task path: /root/.ansible/collections/ansible_collections/infra/leapp/tests/tasks/common_upgrade_tasks.yml:11
      ok: [managed-node1] => {
          "leapp_inhibitors": [
              {
                  "actor": "network_deprecations",
                  "audience": "sysadmin",
                  "detail": {
                      "external": [
                          {
                              "title": "How to migrate the connection from ifcfg to NetworkManager keyfile plugin?",
                              "url": "https://access.redhat.com/solutions/7083803"
                          },
                          {
                              "title": "nmcli(1) manual, describes \"connection migrate\" sub-command.",
                              "url": "https://networkmanager.dev/docs/api/latest/nmcli.html"
                          },
                          {
                              "title": "nm-settings-ifcfg-rh(5), description of the \"ifcfg\" format",
                              "url": "https://networkmanager.dev/docs/api/latest/nm-settings-ifcfg-rh.html"
                          },
                          {
                              "title": "nm-settings-keyfile(5), description of the \"keyfile\" format",
                              "url": "https://networkmanager.dev/docs/api/latest/nm-settings-keyfile.html"
                          }
                      ],
                      "related_resources": [
                          {
                              "scheme": "package",
                              "title": "NetworkManager"
                          },
                          {
                              "scheme": "file",
                              "title": "/etc/sysconfig/network-scripts/ifcfg-eth0"
                          }
                      ],
                      "remediations": [
                          {
                              "context": "Convert the configuration into NetworkManager native \"keyfile\" format.",
                              "type": "hint"
                          },
                          {
                              "context": [
                                  "nmcli",
                                  "connection",
                                  "migrate",
                                  "/etc/sysconfig/network-scripts/ifcfg-eth0"
                              ],
                              "type": "command"
                          }
                      ]
                  },
                  "groups": [
                      "network",
                      "services",
                      "inhibitor"
                  ],
                  "hostname": "managed-node1",
                  "id": "e8db5ae9f8d0393f794c2cf03c6997f206869436a7bd05d1a2c7bdd4b93ffe6d",
                  "key": "7de70b43c3c9d20075e30894ac24a4c4e2d70837",
                  "severity": "high",
                  "summary": "Network configuration files in legacy \"ifcfg\" format are present.In Red Hat Enterprise Linux 10, support for these files is no longer enabled and the configuration will be ignored. The following files were found:\n    - /etc/sysconfig/network-scripts/ifcfg-eth0",
                  "timeStamp": "2025-11-05T08:57:48.916664Z",
                  "title": "Legacy network configuration found"
              },
              {
                  "actor": "check_os_release",successfuly
                  "audience": "sysadmin",
                  "detail": {
                      "related_resources": [
                          {
                              "scheme": "file",
                              "title": "/etc/os-release"
                          }
                      ]
                  },
                  "groups": [
                      "sanity",
                      "inhibitor"
                  ],
                  "hostname": "managed-node1",
                  "id": "a89e4ac2bdff693ac1c66ad715bcf5280b0f7e96152147b9115a6077fa474114",
                  "key": "1c7a98849a747ec9890f04bf4321de7280970715",
                  "severity": "high",
                  "summary": "The supported OS releases for the upgrade process:\n    - RHEL 9.6\n    - RHEL-SAPHANA 9.6\n\nThe detected OS release is: RHEL 9.8",
                  "timeStamp": "2025-11-05T08:57:48.963606Z",
                  "title": "The installed OS version is not supported for the in-place upgrade to the target RHEL version"
              },
              {
                  "actor": "check_nfs",
                  "audience": "sysadmin",
                  "detail": {
                      "external": [
                          {
                              "title": "Why does leapp upgrade fail on detecting NFS during upgrade?",
                              "url": "https://access.redhat.com/solutions/6964006"
                          }
                      ],
                      "related_resources": [
                          {
                              "scheme": "file",
                              "title": "/etc/fstab"
                          }
                      ],
                      "remediations": [
                          {
                              "context": "Disable NFS temporarily for the upgrade if possible.",
                              "type": "hint"
                          }
                      ]
                  },
                  "groups": [
                      "filesystem",
                      "network",
                      "inhibitor"
                  ],
                  "hostname": "managed-node1",
                  "id": "10b31192010e52033cd30a08ac900f6f80c5289cea1354830077127b8c93f6c5",
                  "key": "9881b25faceeeaa7a6478bcdac29afd7f6baaaed",
                  "severity": "high",
                  "summary": "NFS is currently not supported by the inplace upgrade.\nWe have found NFS usage at the following locations:\n- NFS shares found in /etc/fstab:\n - ntap-rdu2-c01-eng01-nfs01b.storage.rdu2.redhat.com:/bos_eng01_engineering_sm/devarchive/redhat /mnt/redhat\n - nest.test.redhat.com:/mnt/qa /mnt/qa\n - vtap-eng01.storage.rdu2.redhat.com:/vol/engarchive /mnt/engarchive\n - nest.test.redhat.com:/mnt/tpsdist /mnt/tpsdist\n - ntap-rdu2-c01-eng01-nfs01b.storage.rdu2.redhat.com:/bos_eng01_engineering_sm/devarchive/redhat/brewroot /mnt/brew\n - ntap-rdu2-c01-eng01-nfs01b.storage.rdu2.redhat.com:/bos_eng01_devops_brew_scratch_nfs_sm/scratch /mnt/brew_scratch\n",
                  "timeStamp": "2025-11-05T08:57:49.346944Z",
                  "title": "Use of NFS detected. Upgrade can't proceed"
              }
          ]
      }
      

      Make sure to remove following task that now fails the upgrade from 9 to 10.

      TASK [infra.leapp.remediate : Check if the system is RHEL 7 or 8] **********************************************************
      task path: /home/pmocary/.ansible/collections/ansible_collections/infra/leapp/roles/remediate/tasks/main.yml:4
      fatal: [192.168.121.22]: FAILED! => {
          "assertion": "ansible_distribution == 'RedHat' and ( ansible_distribution_major_version|int == 8 or ansible_distribution_major_version|int == 7 )",
          "changed": false,
          "evaluated_to": false,
          "msg": "This role is only applicable to RHEL 7 or 8"
      }

       

              pmocary@redhat.com Peter Mocary
              pmocary@redhat.com Peter Mocary
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: