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

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

XMLWordPrintable

    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Testable

      This is a clone of RHELC-1269 that hasn't been implemented properly. A customer has hit the issue and the diagnosis is missing the important error message.

      [2024-05-07T14:43:35+0000] DEBUG - Got the following exception message: [u'Errors were encountered while downloading packages.', u'libXi-1.7.9-1.el7.x86_64: [Errno 256] No more mirrors to try.', u'ntp-4.2.6p5-29.el7_8.2.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: Transaction processing failed with error .
       Remediations: N/A
      

      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

            prwatson@redhat.com Preston Watson
            mbocek@redhat.com Michal Bocek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: