ansible-navigator icon indicating copy to clipboard operation
ansible-navigator copied to clipboard

Podman inside execution enviroment using ansible-navigator

Open sean-m-sullivan opened this issue 3 years ago • 4 comments

ISSUE TYPE
  • podman enabled base EE
SUMMARY

Unable to run podman modules or ansible-builder inside an execution enviroment using ansible-navigator.

Steps to reproduce the issue:

  1. Try to run any podman module/command on an Execution enviroment.

Describe the results you received: Depending on how I build it, get either

podman run localhost/ee_tools ansible localhost -m ansible.builtin.shell -a 'podman images'
REPOSITORY  TAG         IMAGE ID    CREATED     SIZEtime="2021-10-07T20:03:22Z" level=warning msg="\"/\" is not a shared mount, this could cause issues or missing mounts with rootless containers"
time="2021-10-07T20:03:22Z" level=warning msg="using rootless single mapping into the namespace. This might break some images. Check /etc/subuid and /etc/subgid for adding sub*ids"

or

Errors were encountered while running the playbook:
ERROR! Invalid callback for stdout specified: awx_display...
[HINT] To see the full error message try ':stdout'
[HINT] After it's fixed, try to ':rerun' the playbook

Describe the results you expected: things to work.

Additional information you deem important (e.g. issue happens only occasionally): This is the working dir where I've been storing info trying to do this

This may be out of the scope of whats is expected here, but thought it might be a good place to broach the subject.

sean-m-sullivan avatar Feb 10 '22 20:02 sean-m-sullivan

Good day, any progress here? Having the same problem when I'm trying to build my ee from ansible automation platform.

jorgenspange avatar Feb 21 '24 11:02 jorgenspange

Container in container is.......... tricky. You may find some help here: https://github.com/cidrblock/container_in_container. The team is working on a more formal approach/answer to this and we should have something in the next few months.

cidrblock avatar Feb 22 '24 15:02 cidrblock

@jorgenspange This was my fix, doesn't solve inside navigator, but solves with AAP controller https://www.redhat.com/architect/ansible-execution-environment-automated-build

sean-m-sullivan avatar Apr 01 '24 22:04 sean-m-sullivan