Closed arctic-alpaca closed 3 years ago
same with podman-remote. I looked at the code, but I don’t know how to modify it with minimal intervention @rhatdan PTAL
I just noticed another thing, when using podman info --format="json"
, the response is missing the exists
field in the remoteSocket
object.
I just noticed another thing, when using
podman info --format="json"
, the response is missing theexists
field in theremoteSocket
object.
[root@Centos8 ~/podman]# podman info --format 'json' | jq .host.remoteSocket
{
"path": "/run/podman/podman.sock",
"exists": true
}
[root@Centos8 ~/podman]# podman version
Version: 3.0.1
API Version: 3.0.0
Go Version: go1.14.12
Built: Fri Apr 9 23:07:44 2021
OS/Arch: linux/amd64
this is not a bug. only display when the sock file is exists
Is this intended? Shouldn't it be
{
"path": "/run/podman/podman.sock",
"exists": false
}
if the file doesn't exist?
this is not a bug. only display when the sock file is exists
Is this intended? Shouldn't it be
{ "path": "/run/podman/podman.sock", "exists": false }
if the file doesn't exist?
yes
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The json response from the system -> get info API method doesn't contain the
remoteSocket
field.Steps to reproduce the issue:
Start api
./podman system service unix:///home/`whoami`/podman.sock --log-level=debug --time=500
Call info method
curl --unix-socket /home/`whoami`/podman.sock http://d/v3.0.0/libpod/info
Describe the results you received:
Describe the results you expected:
The same as above, just with a
remoteSocket
field.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Note, I discovered this issue on version 3.0.1 and could replicate it with the static build from this ci run.
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.):
Windows 10, WSL2, Debian, x64