ansible-navigator
ansible-navigator copied to clipboard
[macos] ansible navigator doesn't pickup docker when also podman is installed
trafficstars
ISSUE TYPE
- Bug Report
- Documentation Bug
SUMMARY
Following the documentation: https://ansible-navigator.readthedocs.io/en/latest/installation/#macos A-N doesn't run, probably because it also picked up podman installed on the machine
ANSIBLE-NAVIGATOR VERSION
ansible-navigator 2.1.0
CONFIGURATION
none
LOG FILE
none
STEPS TO REPRODUCE
- start with an empty python environment
- Install podman on macos. (Needed for other projects)
- Follow installation procedure from https://ansible-navigator.readthedocs.io/en/latest/installation/#macos
- try to run ansible-navigator
- See how it seems to detect podman installation and then warn about /dev/mqueue not available (see #1247)
additionally: 5) try with parameter "--ee false" 6) See warning about no installed ansible (of course, see step 0)
EXPECTED RESULTS
- Expected a running ansible-navigator installation, that either is able to use podman or docker (both are installed)
- Expected to find documented ways to force the use of docker over podman.
ACTUAL RESULTS
# ansible-navigator welcome
Warning: Issues were found while applying the settings.
Hint: Command provided: 'welcome'
Error: Execution environment support while using podman requires a '/dev/mqueue/' directory.
Hint: Try creating it with 'mkdir /dev/mqueue/' or reference the documentation for your operating system related to POSIX message
queues.
Note: Configuration failed, using default log file location. (/Volumes/home/src/AAP2/ansible-navigator.log) Log level set to
debug
Hint: Review the hints and log file to see what went wrong.
# ansible-navigator --ee false welcome
Warning: Issues were found while applying the settings.
Hint: Command provided: '--ee false welcome'
Error: 'ansible --version' reported the following errors:
/bin/sh: ansible: command not found
The 'ansible-playbook' command could not be found or was not executable, ansible is required when running without an
Ansible Execution Environment. Try one of 'pip install ansible-base' 'pip install ansible-core' 'pip install
ansible' or simply '-ee' or '--execution-environment' to use an Ansible Execution Environment
Note: Configuration failed, using default log file location. (/Volumes/home/src/AAP2/ansible-navigator.log) Log level set to
debug
Hint: Review the hints and log file to see what went wrong.
ADDITIONAL INFORMATION
# podman info
host:
arch: amd64
buildahVersion: 1.27.0
cgroupControllers:
- cpu
- io
- memory
- pids
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon-2.1.0-2.fc36.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.1.0, commit: '
cpuUtilization:
idlePercent: 98.25
systemPercent: 1.54
userPercent: 0.21
cpus: 1
distribution:
distribution: fedora
variant: coreos
version: "36"
eventLogger: journald
hostname: localhost.localdomain
idMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 1000000
uidmap:
- container_id: 0
host_id: 501
size: 1
- container_id: 1
host_id: 100000
size: 1000000
kernel: 5.19.6-200.fc36.x86_64
linkmode: dynamic
logDriver: journald
memFree: 1369767936
memTotal: 2066894848
networkBackend: netavark
ociRuntime:
name: crun
package: crun-1.5-1.fc36.x86_64
path: /usr/bin/crun
version: |-
crun version 1.5
commit: 54ebb8ca8bf7e6ddae2eb919f5b82d1d96863dea
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
os: linux
remoteSocket:
exists: true
path: /run/user/501/podman/podman.sock
security:
apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: true
seccompEnabled: true
seccompProfilePath: /usr/share/containers/seccomp.json
selinuxEnabled: true
serviceIsRemote: true
slirp4netns:
executable: /usr/bin/slirp4netns
package: slirp4netns-1.2.0-0.2.beta.0.fc36.x86_64
version: |-
slirp4netns version 1.2.0-beta.0
commit: 477db14a24ff1a3de3a705e51ca2c4c1fe3dda64
libslirp: 4.6.1
SLIRP_CONFIG_VERSION_MAX: 3
libseccomp: 2.5.3
swapFree: 0
swapTotal: 0
uptime: 144h 20m 31.00s (Approximately 6.00 days)
plugins:
authorization: null
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
volume:
- local
registries:
search:
- docker.io
store:
configFile: /var/home/core/.config/containers/storage.conf
containerStore:
number: 1
paused: 0
running: 0
stopped: 1
graphDriverName: overlay
graphOptions: {}
graphRoot: /var/home/core/.local/share/containers/storage
graphRootAllocated: 106825756672
graphRootUsed: 2475245568
graphStatus:
Backing Filesystem: xfs
Native Overlay Diff: "true"
Supports d_type: "true"
Using metacopy: "false"
imageCopyTmpDir: /var/tmp
imageStore:
number: 2
runRoot: /run/user/501/containers
volumePath: /var/home/core/.local/share/containers/storage/volumes
version:
APIVersion: 4.2.0
Built: 1660228937
BuiltTime: Thu Aug 11 16:42:17 2022
GitCommit: ""
GoVersion: go1.18.4
Os: linux
OsArch: linux/amd64
Version: 4.2.0
# docker info
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., v0.9.1)
compose: Docker Compose (Docker Inc., v2.10.2)
extension: Manages Docker extensions (Docker Inc., v0.2.9)
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
scan: Docker Scan (Docker Inc., v0.19.0)
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 22.06.0-beta.0-372-gd3bb8227ce.m
Storage Driver: stargz
driver-type: io.containerd.snapshotter.v1
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
runc version: v1.1.4-0-g5fd4c4d
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 5.10.124-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 4.821GiB
Name: docker-desktop
ID: ae71cec1-bc78-454f-a345-5dc705254c56
Docker Root Dir: /var/lib/docker
Debug Mode: true
File Descriptors: 46
Goroutines: 52
System Time: 2022-09-20T17:11:39.60901989Z
EventsListeners: 6
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
No Proxy: hubproxy.docker.internal
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
hubproxy.docker.internal:5000
registry-cache
hub.registry
127.0.0.0/8
Registry Mirrors:
http://registry-cache/
http://192.168.222.228/
Live Restore Enabled: false