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

Unclear message to user when "Failed to validate yum transaction." is hit

XMLWordPrintable

    • False
    • False
    • Hide

      None

      Show
      None
    • 5
    • 2024-R1
    • Testable

      I've tried running the "Pre-conversion analysis for converting to RHEL(stage)" task in the stage environment and hit an issue when convert2rhel failed to download one of the packages (I have no idea why) and following texts were provided to the user in the task result:

      The conversion cannot proceed. You must resolve existing issues to perform the conversion.

      Failed to validate yum transaction.
      During the yum transaction execution an error occurred and convert2rhel could no longer process the transaction.

      The problem (when checking convert2rhel.log) was:

      ...
      Downloading package: yum-utils-1.1.31-54.el7_8.noarch.rpm
      Downloading package: zlib-1.2.7-21.el7_9.x86_64.rpm
      [2023-12-01T09:25:53+0000] DEBUG - Got the following exception message: [u'Errors were encountered while downloading packages.', u'pam-1.1.8-23.el7.x86_64: [Errno 256] No more mirrors to try.']
      CRITICAL - Failed to validate the yum transaction.
      ERROR - (ERROR) VALIDATE_PACKAGE_MANAGER_TRANSACTION::FAILED_TO_VALIDATE_TRANSACTION - Failed to validate yum transaction.
       Description: During the yum transaction execution an error occurred and convert2rhel could no longer process the transaction.
       Diagnosis: N/A
       Remediation: N/A
      

      If I were the customer, I would have no idea what to do as I'm told to "resolve existing issues" but at the same time don't have any clue about what is the "existing issue" I could resolve.

       

      Acceptance criteria:

      • The debug message as in the example above is made part of the report error message
        • Through that an Insights user has an idea what went wrong

        1. convert2rhel.log
          59 kB
          Pavel Holica
        2. insights.png
          62 kB
          Pavel Holica

              prwatson@redhat.com Preston Watson
              pholica@redhat.com Pavel Holica
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: