Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-902

Scope out implementing a post-conversion report

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • Post-conversion report scoping
    • False
    • False
    • 0% To Do, 0% In Progress, 100% Done
    • Testable

      Goal

      Similar to RHELC-751 and RHELC-1032 that focus on the pre-conversion analysis, the goal of this Epic is a post-conversion analysis and printing a report with warnings and/or actions the user needs to do after the conversion finishes.

      Rationale

      In RHELC-752 we've added a check for valid boot files. If the boot files are not valid we print a warning with actions to fix booting of the system. But this warning may not be spotted by the user. Especially when the last line they read is "Conversion successful! WARNING - In order to boot the RHEL kernel, restart of the system is needed."

       

      [02/17/2023 12:36:08] TASK - [Final: Update GRUB2 configuration] ********************************
      Backing up /boot/grub2/grub.cfg.
      [02/17/2023 12:36:08] DEBUG - Copying /boot/grub2/grub.cfg to /var/lib/convert2rhel/backup.
      Backing up /boot/grub2/grubenv.
      [02/17/2023 12:36:08] DEBUG - Copying /boot/grub2/grubenv to /var/lib/convert2rhel/backup.
      [02/17/2023 12:36:08] DEBUG - Calling command '/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg'
      [02/17/2023 12:36:08] DEBUG - Output of the grub2-mkconfig call:
      /usr/sbin/grub2-mkconfig: line 274: /boot/grub2/grub.cfg.new: No space left on device
      
      WARNING - GRUB2 config file generation failed.
      
      [02/17/2023 12:36:08] TASK - [Final: Remove temporary folder /var/lib/convert2rhel/] ************
      Temporary folder /var/lib/convert2rhel/ removed
      
      [02/17/2023 12:36:08] TASK - [Final: Check kernel boot files] ***********************************
      [02/17/2023 12:36:08] DEBUG - Calling command 'rpm -q --last kernel-core'
      Checking if the '/boot/vmlinuz-4.18.0-348.23.1.el8_5.x86_64' file exists.
      The vmlinuz file is not present.
      Checking if the '/boot/initramfs-4.18.0-348.23.1.el8_5.x86_64.img' file is valid.
      [02/17/2023 12:36:08] DEBUG - Checking if the '/boot/initramfs-4.18.0-348.23.1.el8_5.x86_64.img' file exists.
      The initramfs file is not present.
      WARNING - Couldn't verify the kernel boot files in the boot partition. This may cause problems during the next boot of your system.
      In order to fix this problem you may need to free/increase space in your boot partition and then run the following commands in your terminal:
      1. yum reinstall kernel-core-4.18.0-348.23.1.el8_5.x86_64 -y
      2. grub2-mkconfig -o /boot/grub2/grub.cfg
      3. reboot
      Writing breadcrumbs to '/etc/migration-results'.
      Writing RHSM custom facts to '/etc/rhsm/facts/convert2rhel.facts'.
      
      [02/17/2023 12:36:08] TASK - [Final: Update RHSM custom facts] **********************************
      Updating RHSM custom facts collected during the conversion.
      [02/17/2023 12:36:08] DEBUG - Calling command 'subscription-manager facts --update'
      RHSM custom facts uploaded successfully.
      
      Conversion successful!
      
      WARNING - In order to boot the RHEL kernel, restart of the system is needed. 

      Acceptance criteria:

      • Convert2RHEL gathers information about:
        • necessary actions the user needs to do manually to complete the conversion process.
        • potential problems the user should be aware of, including warnings and errors from the main transaction (scriptlet/systemd failures and similar)
      • A report with the above information is printed as the last information the user sees in the terminal.
      • The report is also available in a machine-readable format.

            Unassigned Unassigned
            mbocek@redhat.com Michal Bocek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: