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

Getting underlying errors when using dnf/yum api

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • 2023-R4
    • Testable

      When we are using the dnf or yum API, we are not getting as much information displayed in the logs as we should. For instance, within CS #03473613 we had a customer that encountered this in the convert2rhel logs

      [04/07/2023 15:16:17] DEBUG - Got the following exception message:
      Problem: conflicting requests
      CRITICAL - Failed to resolve dependencies in the transaction.
      [04/07/2023 15:16:17] DEBUG - Traceback (most recent call last):
      File "/usr/lib/python3.6/site-packages/convert2rhel/pkgmanager/handlers/dnf/_init_.py", line 141, in _resolve_dependencies
      self._base.resolve(allow_erasing=True)
      File "/usr/lib/python3.6/site-packages/dnf/base.py", line 860, in resolve
      raise exc
      dnf.exceptions.DepsolveError:
      Problem: conflicting requests

      There is no mention what packages were conflicting which makes it a lot more difficult to figure out what happened

      Acceptance Criteria

      • We know whether this can be added to dnf and yum API calls to capture the underlying reasons for the errors
      • Reproducer is created to get the issue

      Notes

            Unassigned Unassigned
            fgustavs@redhat.com Freya Gustavsson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: