Podman: APIv2: libpod endpoint not working

Created on 17 Apr 2020  路  2Comments  路  Source: containers/podman

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

I tried to get the APIv2 working. The docker endpoint works, but the libpod endpoint does not.

Steps to reproduce the issue:

  1. In one terminal: podman system service --timeout 5000

  2. In a second terminal: curl -s --unix-socket /$XDG_RUNTIME_DIR/podman/podman.sock http://localhost/images/json

  3. Afterwards, in the second terminal: curl -s --unix-socket /$XDG_RUNTIME_DIR/podman/podman.sock http://localhost/libpod/images/json

Describe the results you received:

The docker endpoint works as expected:

$ curl -s --unix-socket /$XDG_RUNTIME_DIR/podman/podman.sock http://localhost/images/json
[{"Id":"8c2e0da7c436e45be5ebf2adf26b41d13939190bd186214a4d45c30485071f9f","RepoTags":["registry.fedoraproject.org/fedora:latest"],"Created":1583300892,....

However, the libpod endpoint does not work:

$ curl -s --unix-socket /$XDG_RUNTIME_DIR/podman/podman.sock http://localhost/libpod/images/json
Not Found

However, ping works for both:

$ curl -s --unix-socket /$XDG_RUNTIME_DIR/podman/podman.sock http://localhost/_ping
OK
$ curl -s --unix-socket /$XDG_RUNTIME_DIR/podman/podman.sock http://localhost/libpod/_ping
OK

Describe the results you expected:

The libpod endpoint should show the images as well.

Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

podman version 2.0.0-dev

Output of podman info --debug:

host:
  arch: amd64
  buildahversion: 1.14.8
  cgroupsversion: v2
  conmon:
    package: podman-2.0.0-1587116239.gitd31dcb9b.fc31.x86_64
    path: /usr/libexec/podman/conmon
    version: 'conmon version 2.0.7, commit: d63e7804404d66e0e8e3df3c7a7e0a5880ed8ad5-dirty'
  cpus: 4
  distribution:
    distribution: fedora
    version: "31"
  eventlogger: journald
  hostname: kube
  idmappings:
    gidmap:
    - containerid: 0
      hostid: 1000
      size: 1
    - containerid: 1
      hostid: 100000
      size: 65536
    uidmap:
    - containerid: 0
      hostid: 1000
      size: 1
    - containerid: 1
      hostid: 100000
      size: 65536
  kernel: 5.5.16-200.fc31.x86_64
  memfree: 3667197952
  memtotal: 4120432640
  ociruntime:
    name: crun
    package: crun-0.13-2.fc31.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 0.13
      commit: e79e4de4ac16da0ce48777afb72c6241de870525
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
  os: linux
  rootless: true
  runtimeinfo: {}
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.0.0-1.fc31.x86_64
    version: |-
      slirp4netns version 1.0.0
      commit: a3be729152a33e692cd28b52f664defbf2e7810a
      libslirp: 4.1.0
  swapfree: 4261408768
  swaptotal: 4261408768
  uptime: 1m 11.51s
store:
  configfile: /home/rwolters/.config/containers/storage.conf
  containerstore:
    number: 3
    paused: 0
    running: 0
    stopped: 3
  graphdrivername: overlay
  graphoptions:
    overlay.mount_program:
      Executable: /usr/bin/fuse-overlayfs
      Package: fuse-overlayfs-0.7.8-1.fc31.x86_64
      Version: |-
        fusermount3 version: 3.6.2
        fuse-overlayfs: version 0.7.8
        FUSE library version 3.6.2
        using FUSE kernel interface version 7.29
  graphroot: /home/rwolters/.local/share/containers/storage
  graphstatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "false"
  imagestore:
    number: 5
  runroot: /run/user/1000/containers
  volumepath: /home/rwolters/.local/share/containers/storage/volumes
registries:
  search:
  - registry.fedoraproject.org
  - docker.io
  - registry.access.redhat.com
  - registry.centos.org
  - quay.io
version:
  remoteapiversion: 1
  version: 2.0.0-dev
  goversion: go1.13.9
  gitcommit: d63e7804404d66e0e8e3df3c7a7e0a5880ed8ad5-dirty
  built: 1533340800
  osarch: linux/amd64

Package info (e.g. output of rpm -q podman or apt list podman):

Installed from COPR repository:

$ rpm -q podman
podman-2.0.0-1587116239.gitd31dcb9b.fc31.x86_64

Additional environment details (AWS, VirtualBox, physical, etc.):

virsh VM, running Fedora 31, freshly installed for these tests.

kinbug

Most helpful comment

the libpod endpoints are all versioned ...

i.e. http://localhost/v1.24/libpod/images/json

All 2 comments

the libpod endpoints are all versioned ...

i.e. http://localhost/v1.24/libpod/images/json

Awesome, thanks for the answer, sorry for the noise.

Was this page helpful?
0 / 5 - 0 ratings