podman: ansible + podman not working
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I am using ansible to interact with podman via ansible podman connector. when using a rootless container, I am not able to execute any command via ansible and will get some errors. The command that should be executed is a simple cat /etc/hostname
This may not be 100% related to podman, but maybe to the ansible code (podman connector), since podman cp works in general.
Errors:
Error: cannot copy into running rootless container with pause set - pass --pause=false to force copying\\n
Steps to reproduce the issue:
- Start a container as user
podman run -d --rm --name instance fedora:31 sleep 300
- Execute some ansible
ansible instance -c podman -m setup -i inventory
instance = name of the container
inventory file = a plain file with the word instance in it
Describe the results you received:
Error: cannot copy into running rootless container with pause set - pass --pause=false to force copying\\n
Describe the results you expected:
either a working execution or some hints, how to manipulate the “pause” behaviour.
Output of podman version:
Version: 1.6.2
RemoteAPI Version: 1
Go Version: go1.13.1
OS/Arch: linux/amd64
Output of podman info --debug:
debug:
compiler: gc
git commit: ""
go version: go1.13.1
podman version: 1.6.2
host:
BuildahVersion: 1.11.3
CgroupVersion: v2
Conmon:
package: conmon-2.0.2-1.fc31.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.0.2, commit: 186a550ba0866ce799d74006dab97969a2107979'
Distribution:
distribution: fedora
version: "31"
IDMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
MemFree: 9151815680
MemTotal: 16602112000
OCIRuntime:
name: crun
package: crun-0.10.6-1.fc31.x86_64
path: /usr/bin/crun
version: |-
crun version 0.10.6
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
SwapFree: 8371826688
SwapTotal: 8371826688
arch: amd64
cpus: 8
eventlogger: journald
hostname: nb01
kernel: 5.4.7-200.fc31.x86_64
os: linux
rootless: true
slirp4netns:
Executable: /usr/bin/slirp4netns
Package: slirp4netns-0.4.0-20.1.dev.gitbbd6f25.fc31.x86_64
Version: |-
slirp4netns version 0.4.0-beta.3+dev
commit: bbd6f25c70d5db2a1cd3bfb0416a8db99a75ed7e
uptime: 21h 3m 30.47s (Approximately 0.88 days)
registries:
blocked: null
insecure: null
search:
- docker.io
- registry.fedoraproject.org
- registry.access.redhat.com
- registry.centos.org
- quay.io
store:
ConfigFile: /var/home/dschier/.config/containers/storage.conf
ContainerStore:
number: 4
GraphDriverName: overlay
GraphOptions:
overlay.mount_program:
Executable: /usr/bin/fuse-overlayfs
Package: fuse-overlayfs-0.7.2-2.fc31.x86_64
Version: |-
fusermount3 version: 3.6.2
fuse-overlayfs: version 0.7.2
FUSE library version 3.6.2
using FUSE kernel interface version 7.29
GraphRoot: /var/home/dschier/.local/share/containers/storage
GraphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "false"
Supports d_type: "true"
Using metacopy: "false"
ImageStore:
number: 10
RunRoot: /run/user/1000
VolumePath: /var/home/dschier/.local/share/containers/storage/volumes
Package info (e.g. output of rpm -q podman or apt list podman):
podman-manpages-1.6.2-2.fc31.noarch
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 26 (19 by maintainers)
I merged the fix for this in Ansible (ansible/ansible#66583) and opened a backport to
stable-2.9. It should be in the next 2.9 release.PR here: https://github.com/containers/libpod/pull/4828