Leapp in-place upgrade to RHEL 9 is blocked by InfoScale RPMs with weak (RSA/SHA1) signatures

book

Article ID: 1000766397

calendar_today

Updated On:

Description

The Leapp  pre-upgrade check report's   high severity inhibitor and fails the upgrade . 

# leapp preupgrade --target 9.6

<snip /var/log/leapp/leapp-report.txt>

----------------------------------------
Risk Factor: high (inhibitor)
Title: Detected RPMs with RSA/SHA1 signature
Summary: Digital signatures using SHA-1 hash algorithm are no longer considered secure and are not allowed to be used on RHEL 9 systems by default. This causes issues when using DNF/RPM to handle packages with RSA/SHA1 signatures as the signature cannot be checked with the default cryptographic policy. Any such packages cannot be installed, removed, or replaced unless the signature check is disabled in dnf/rpm or SHA-1 is enabled using non-default crypto-policies. For more information see the following documents:
  - Major changes in RHEL 9: https://red.ht/rhel-9-overview-major-changes
  - Security Considerations in adopting RHEL 9: https://red.ht/rhel-9-security-considerations
 The list of problematic packages: 
    - VRTSsfcpi (RSA/SHA1, Mon 22 Nov 2021 08:50:38 AM PST, Key ID 4e84af75cc633953)
    - VRTSvbs (RSA/SHA1, Mon 22 Nov 2021 08:50:41 AM PST, Key ID 4e84af75cc633953)
    - VRTSvlic (RSA/SHA1, Mon 22 Nov 2021 08:50:46 AM PST, Key ID 4e84af75cc633953)
    - VRTSvcswiz (RSA/SHA1, Mon 22 Nov 2021 08:50:45 AM PST, Key ID 4e84af75cc633953)
Related links:
    - Major changes in RHEL 9: https://red.ht/rhel-9-overview-major-changes
    - Security Considerations in adopting RHEL 9: https://red.ht/rhel-9-security-considerations
Remediation: [hint] It is recommended that you contact your package vendor and ask them for new builds signed with supported signatures and install the new packages before the upgrade. If this is not possible you may instead remove the incompatible packages.
Key: f16f40f49c2329a2691c0801b94d31b6b3d4f876
----------------------------------------

This can be cross checked with which  installed packages carry SHA1 signatures:

 #rpm -qa --qf '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH} %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{(none)}|}|\n' | grep -i sha1 | grep VRTS

Resolution

If  InfoScale RPM's are  RSA/SHA1-signed, the remediation for the Leapp upgrade workflow is:

1. Capture the configuration and backups before changing anything
   -- Take a VM snapshot / OS backup.
   -- Capture VRTSexplorer data and save it off the server.
   -- Back up the files under /etc/sysconfig (llt, gab, vxfen, vcs, amf, vcsmm) and /etc/VRTSvcs/conf/config/
   -- Capture the InfoScale baseline:
   # systemctl list-unit-files | grep -Ei 'llt|gab|vxfen|amf|vcs|vx|odm|glm|gms|cps' > units.txt
   # systemctl list-units --all | grep -Ei 'llt|gab|vxfen|amf|vcs|vx|odm' > units_running.txt
   # lsmod | grep -Ei 'llt|gab|vxfen|amf|vx|odm' > modules.txt

2. Stop InfoScale
   -- Switch the failover service groups to another node (if any), then offline the parallel service groups and stop InfoScale.
   # hagrp -switch <failover_sg> -to <system_name>
   # hagrp -offline <parent group first> -sys <sys_name>
   # hagrp -offline cvm -sys <sys_name>          -- if present
   # hastatus -sum                               -- confirm OFFLINE
   # /opt/VRTS/install/installer -stop <node> <node2> ..

3. Uninstall InfoScale
   # /opt/VRTS/install/installer -uninstall <node> <node2> ..
   # rpm -qa | grep -i vrts                      -- must return nothing

4. Re-run the pre-upgrade check
   # leapp preupgrade --target 9.6/9.8
   # cat /var/log/leapp/leapp-report.txt
   -- Verify that the SHA1 inhibitor and the "not signed by distribution vendor" warning are gone once the VRTS RPMs are removed.

5. Run the Leapp upgrade
   -- Do not use --enablerepo with an InfoScale repository, because nothing InfoScale-related is installed.
   # leapp upgrade --target 9.6/9/8
   # reboot                                      -- or add --reboot; console access is required for the upgrade phase

6. Verify the OS after the system comes back
   # cat /etc/redhat-release
   # uname -r

7. Reinstall InfoScale on RHEL 9 without configuring
   -- Use a compatible release with the RHEL 9 patch levels and the CPI patch required by the patch README.
   # cd <media>/dvd1-redhatlinux/rhel9_x86_64
   # ./installer -require <CPI_patch>.pl -patch_path <Cumulative_Patch>
   -- At the menu choose I (Install), then the product (4, Enterprise here), answer 'n' to "configure after installation", accept the EULA, and enter the node name.
   -- The installer lays down the base RPMs and the patches in one run and finishes with "cannot be started without configuration".
   -- Do not configure at this stage; configuration is done in step 9.
   -- After the install, all InfoScale units are disabled and every /etc/sysconfig flag file is reset to its default, so nothing starts on its own.

8. Start the volume manager (VxVM)
   -- The new install leaves an install-db marker and vxconfigd starts disabled.
   # rm /etc/vx/reconfig.d/state.d/install-db
   # vxinstall                                   -- reinstall: y | review licenses: n | enter key: n | default dg: n
                                                  (vxinstall enables the vxvm boot unit files)
   # vxdctl mode                              -- mode: enabled
   # vxdisk -e list                              -- must match the vxdisk -e list output in the VRTSexplorer data

9. Configure InfoScale with the CPI installer and retain the existing configuration
   -- Run the CPI installer to configure the InfoScale components. When CPI prompts "Do you want to re-configure VCS?", answer "n" to skip re-configuration. This retains the older InfoScale configuration and starts the InfoScale services.
   # /opt/VRTS/install/installer -configure
   ..
   Do you want to re-configure VCS? [y,n,q] (n)
   -- Do NOT answer "y" and do not enter new cluster details, as this would rewrite the existing cluster configuration.

10. Start the services manually (only if step 9 does not detect that VCS is already configured)
   -- Use this step if the installer in step 9 does not detect that VCS is already configured, or does not start all the services that were enabled before the upgrade.
   -- Compare the InfoScale services against the baseline collected in step 1:
   # systemctl list-unit-files | grep -Ei 'llt|gab|vxfen|amf|vcs|vx|odm|glm|gms|cps'
   -- Modify the applicable /etc/sysconfig files and start the services manually (example; adjust to your configuration):
   # /etc/sysconfig/llt   : LLT_START=1  LLT_STOP=1
   # /etc/sysconfig/gab   : GAB_START=1  GAB_STOP=1
   # /etc/sysconfig/vxfen : VXFEN_START=1  VXFEN_STOP=1
     (no change required if vxfen_mode=disabled in /etc/vxfenmode; in SCSI-3 mode also check /etc/vxfendg and /etc/vxfentab)
   # systemctl enable --now llt gab
   # lltstat -nvv active; gabconfig -a           -- port a present
   # systemctl enable --now vxfen
   # gabconfig -a                                -- port b present
   # /etc/sysconfig/amf   : AMF_START=1  AMF_STOP=1
   # systemctl enable --now amf
   -- Start the rest of the services that were enabled / running before the upgrade:
   # systemctl enable --now vxfs vxglm vxgms vxodm ..
   -- Start VCS (main.cf is preserved during the upgrade):
   # /etc/sysconfig/vcs   : VCS_START=1  VCS_STOP=1
   # systemctl enable --now vcs

11. Verify the services and perform a sanity reboot if required
   # hastatus -sum

Issue/Introduction

The `leapp preupgrade / leapp upgrade` to RHEL 9.x is inhibited because some InfoScale (VRTS*) RPMs are signed with RSA/SHA1, which RHEL 9 rejects by default. The workaround is to take a configuration backup, stop and uninstall InfoScale, run the Leapp upgrade, then reinstall with compatible InfoScale release on RHEL 9 and start the services manually. Existing cluster, VxVM and VxFS configuration is preserved.

Additional Information


Notes and limitations
The procedure was validated on a single-node cluster. On a multi-node cluster, repeat it node by node and first confirm that a cluster mixing RHEL 8 and RHEL 9 nodes at the same InfoScale level is supported (SORT SCL). Check CVM and fencing behavior before starting.