Skip to content

Cannot build test image using ansible-bender #934

@betulependule

Description

@betulependule

What happened? What is the problem?

Trying to build a test image using make build-test-image (as described in CONTRIBUTING.md) in order to run tests results in the following error:

There was an error during execution: no python interpreter was found in the base image "fedora:latest", you can specify the path via CLI option --python-interpreter
make: *** [Makefile:9: build-test-image] Error 2

Makefile should be edited so that make build-test-image and subsequent make check-in-container work. As far as I can tell, there is no public image of Fedora containing a Python interpreter available. As suggested by nforro, an option is to create a local image of Fedora using podman and subsequently install a Python interpreter, but it would be a lazy solution.

A cleaner solution would be to avoid needing to use ansible-bender and create a local image with ansible-playbook (use packit/base:fedora) similarly to how's it's done in packit.

It's possible to run tests as described in plans/README.md using tmt for the time being.

What did you expect to happen?

No response

Example URL(s)

No response

Steps to reproduce

1. make build-test-image

Workaround

  • There is an existing workaround that can be used until this issue is fixed.

Participation

  • I am willing to submit a pull request for this issue. (Packit team is happy to help!)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions