Error while installing collections from Red Hat Automation Hub

Solution Verified - Updated -

Environment

  • Ansible Automation Platform (AAP) >= 2.1.2 (controller >= 4.1.2)

Issue

  • While trying to install collections from private Automation Hub, it fails with the following error:
ERROR! Failed to resolve the requested dependencies map. Could not satisfy the following requirements:
* ansible.tower:3.8.6 (direct request)

Resolution

There are two steps to resolve the error:

  1. Refresh the Automation Hub Token:
  • Use the following command to refresh the token:
curl https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token -d grant_type=refresh_token -d client_id="cloud-services" -d refresh_token="{{ user_token }}" --fail --silent --show-error --output /dev/null
  1. Update the AAP credentials.

Note: If the token is saved in vault go to Red Hat Automation Hub, generate a new token and save it to vault, and update AAP credentials.

Root Cause

  • The token will expire after 30 days of inactivity.

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.

Comments