Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIv2: libpod endpoint not working #5865

Closed
liquidat opened this issue Apr 17, 2020 · 3 comments
Closed

APIv2: libpod endpoint not working #5865

liquidat opened this issue Apr 17, 2020 · 3 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@liquidat
Copy link

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.

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Apr 17, 2020
@liquidat liquidat changed the title APIv2: libpopd endpoint not working APIv2: libpod endpoint not working Apr 17, 2020
@baude
Copy link
Member

baude commented Apr 17, 2020

the libpod endpoints are all versioned ...

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

@liquidat
Copy link
Author

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

@loganmzz
Copy link

Not very well documented from https://docs.podman.io/en/latest/_static/api.html.

Neither really versionned as any v([0-9]+(\.[0-9]+)? seems valid

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Dec 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

4 participants