Using "ansible-builder" to create an Execution Environment with the "redhat.openshift" collection as a requirement fails

Solution Verified - Updated -

Issue

  • When building an Execution Environment using ansible-builder which includes the redhat.openshift collection, the build process fails with the following error message:
$ ansible-builder build -f execution-environment.yml -v 3
[...]
+ /usr/bin/microdnf install -y --nodocs --setopt install_weak_deps=0 openshift-clients
Downloading metadata...
[...]
Downloading metadata...
error: No package matches 'openshift-clients'
Error: building at STEP "RUN /output/scripts/assemble": while running runtime: exit status 1

Environment

  • Red Hat Ansible Automation Platform
    • 2.4
  • ansible-builder
    • 3.0.0
  • Ansible Automation Platform Certified Content: Ansible Content Collection (collection): redhat.openshift

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content