Repository sync in Red Hat Satellite 6 failing with error Yum Metadata: unsupported operand type(s) for -=: 'Retry' and 'int'

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 7.x
  • Red Hat Satellite 6

Issue

  • Repository sync in Red Hat Satellite 6 failing with following error:

    PLP0000: Importer indicated a failed response
    Yum Metadata: unsupported operand type(s) for -=: 'Retry' and 'int'
    

Resolution

  • This is resolved in errata RHBA-2020:0781 in package python-requests-2.6.0-9.el7_7.noarch

  • Upgrade your Satellite 6.6 to the latest version to receive this update:

    # foreman-maintain upgrade run --target-version 6.6.z
    

Diagnostic Steps

  • Repo sync error message:

    # hammer repository synchronize --organization RedHat --product Test --name repo
    [..........................................................................................................................................................................................................] [100%]
    No new packages.
    Error: RPM1004: Error retrieving metadata: unsupported operand type(s) for -=: 'Retry' and 'int'
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.