Skip to content

Unable to build on ee minimal rhel9 #424

@sean-m-sullivan

Description

@sean-m-sullivan

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that event-driven-ansible collection is open source software provided for free and that I might not receive a timely response.

Bug Summary

Get the following error when trying to include on rhel9 for an ansible excecution environment.

  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  FileNotFoundError: [Errno 2] No such file or directory: 'pkg-config'
  [end of output]

As a result if I do the following

When I include as a depenency
dependencies:
system:
- pkg-config [platform:rpm]

I get the following

Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
 error: subprocess-exited-with-error
 × Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
      Cannot find libsystemd or libsystemd-journal:

I suspect the problem is https://github.com/ansible/event-driven-ansible/blob/main/requirements.txt
Contains requirements for both EDA AND the collection, and with the python included on the rhel9 minimal something is incompatible.

Environment

/python3.11
registry.gitlab.com/ansible-community/execution-environments/ansible-automation-platform-images/aap25-ee-minimal-rhel9:latest

Steps to reproduce

Run ansible builder.
with the following EE definition

---
version: 3
build_arg_defaults:
  ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: '-vvv'
options:
  package_manager_path: /usr/bin/microdnf


dependencies:
  system:
    - pkg-config [platform:rpm]
  galaxy:
    collections:
      - name: ansible.eda
images:
  base_image:
    name: >-
      registry.gitlab.com/tmobile/ansible-community/execution-environments/ansible-automation-platform-images/aap25-ee-minimal-rhel9:latest

Actual results

it fails to build the container.

Expected results

it builds an EE with the collection installed.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions