podman: podman --connection not working on macOS (failed to resolve active destination: service destination not found)
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
running podman --remote --connection <connection-string> <some-command> with the Podman MacOS client errors with Error: failed to resolve active destination: "<connection-string>" service destination not found
Steps to reproduce the issue:
Server(s): Podman 3.0.1 on Fedora 33 (prepared for remoting) Client: Podman 3.0.1 on MacOS 11.2.2 x86_64 (installed via homebrew)
On the Mac client:
- create two connections:
$ podman system connection add conA --identity /Users/myuser/.ssh/podman_rsa ssh://root@servA/run/user/0/podman/podman.sock
$ podman system connection add conB --identity /Users/myuser/.ssh/podman_rsa ssh://root@servB/run/user/0/podman/podman.sock
$ podman system connection default conA
- default connection works (without
--connection):
$ podman --remote info
...
hostname: servA
...
- trying to use same connection with
--connection <connection-string>fails:
$ podman --remote --connection conA info
Error: failed to resolve active destination: "conA" service destination not found
(same for the other connection, also same without --remote)
Describe the results you received:
$ podman --remote --connection conA info
Error: failed to resolve active destination: "conA" service destination not found
Describe the results you expected:
$ podman --remote --connection conA info
host:
arch: amd64
...
Additional information you deem important (e.g. issue happens only occasionally):
--remote --connection <connection-string>to the same servers seems to work when remoting from a Linux host.- did not test on Windows
Output of podman version:
podman version
Client:
Version: 3.0.1
API Version: 3.0.0
Go Version: go1.15.8
Built: Sat Feb 20 05:46:59 2021
OS/Arch: darwin/amd64
Server:
Version: 3.0.1
API Version: 3.0.0
Go Version: go1.15.8
Built: Fri Feb 19 17:56:17 2021
OS/Arch: linux/amd64
Output of podman info --debug:
host:
arch: amd64
buildahVersion: 1.19.4
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon-2.0.26-1.fc33.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.0.26, commit: 777074ecdb5e883b9bec233f3630c5e7fa37d521'
cpus: 8
distribution:
distribution: fedora
version: "33"
eventLogger: journald
hostname: servA.mydomain.local
idMappings:
gidmap: null
uidmap: null
kernel: 5.10.17-200.fc33.x86_64
linkmode: dynamic
memFree: 15073468416
memTotal: 16779329536
ociRuntime:
name: crun
package: crun-0.18-1.fc33.x86_64
path: /usr/bin/crun
version: |-
crun version 0.18
commit: 808420efe3dc2b44d6db9f1a3fac8361dde42a95
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
os: linux
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: false
seccompEnabled: true
selinuxEnabled: true
slirp4netns:
executable: ""
package: ""
version: ""
swapFree: 7734288384
swapTotal: 7734288384
uptime: 1h 17m 16.82s (Approximately 0.04 days)
registries:
search:
- registry.fedoraproject.org
- registry.access.redhat.com
- registry.centos.org
- docker.io
store:
configFile: /etc/containers/storage.conf
containerStore:
number: 3
paused: 0
running: 1
stopped: 2
graphDriverName: overlay
graphOptions:
overlay.mountopt: nodev,metacopy=on
graphRoot: /var/lib/containers/storage
graphStatus:
Backing Filesystem: xfs
Native Overlay Diff: "false"
Supports d_type: "true"
Using metacopy: "true"
imageStore:
number: 7
runRoot: /var/run/containers/storage
volumePath: /var/lib/containers/storage/volumes
version:
APIVersion: 3.0.0
Built: 1613753777
BuiltTime: Fri Feb 19 17:56:17 2021
GitCommit: ""
GoVersion: go1.15.8
OsArch: linux/amd64
Version: 3.0.1
Package info (e.g. output of rpm -q podman or apt list podman):
$ brew info podman
podman: stable 3.0.1 (bottled)
Tool for managing OCI containers and pods
https://podman.io/
/usr/local/Cellar/podman/3.0.1 (150 files, 37.9MB) *
Poured from bottle on 2021-02-22 at 16:30:55
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/podman.rb
License: Apache-2.0
==> Dependencies
Build: go ✘, go-md2man ✘
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Analytics
install: 3,319 (30 days), 8,674 (90 days), 16,873 (365 days)
install-on-request: 3,314 (30 days), 8,628 (90 days), 16,434 (365 days)
build-error: 0 (30 days)
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
- server: qemu vm
- client: physical (Macbook Intel)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (8 by maintainers)
Closed via https://github.com/containers/common/pull/541