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

Add preconversion analysis check for device PART_ENTRY_NUMBER

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • 2024-R1
    • Low
    • Testable

      This is a CentOS 7 system, fully updated. Originally installed as 7.4.

       

      [2023-10-21T15:20:23+0000] DEBUG - Traceback (most recent call last):
        File "/usr/lib/python2.7/site-packages/convert2rhel/main.py", line 144, in main_locked
          post_ponr_changes()
        File "/usr/lib/python2.7/site-packages/convert2rhel/main.py", line 269, in post_ponr_changes
          post_ponr_conversion()
        File "/usr/lib/python2.7/site-packages/convert2rhel/main.py", line 299, in post_ponr_conversion
          grub.post_ponr_set_efi_configuration()
        File "/usr/lib/python2.7/site-packages/convert2rhel/grub.py", line 589, in post_ponr_set_efi_configuration
          _replace_efi_boot_entry()
        File "/usr/lib/python2.7/site-packages/convert2rhel/grub.py", line 524, in _replace_efi_boot_entry
          efibootinfo_new = _add_rhel_boot_entry(efibootinfo_orig)
        File "/usr/lib/python2.7/site-packages/convert2rhel/grub.py", line 397, in _add_rhel_boot_entry
          dev_number = _get_device_number(get_efi_partition())
        File "/usr/lib/python2.7/site-packages/convert2rhel/grub.py", line 173, in _get_device_number
          return int(partition_number)
      ValueError: invalid literal for int() with base 10: ''

      WARNING - The conversion process failed.

       

       

      Above was caused by the call:

      output, ecode = utils.run_subprocess(["/usr/sbin/blkid", "-p", "-s", "PART_ENTRY_NUMBER", device], print_output=False

      Returning empty string because I do not have PART_ENTRY_NUMBER in my bootloader.

      Output of "blkid -p /dev/md125":

      /dev/md125: SEC_TYPE="msdos" UUID="299B-560E" VERSION="FAT16" TYPE="vfat" USAGE="filesystem"

       

        There are no Sub-Tasks for this issue.

            prwatson@redhat.com Preston Watson
            tomsorensenrh Thomas Sorensen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: