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

podman images -a breaks after pulling <image>@<digest> #7651

Closed
AkihiroSuda opened this issue Sep 16, 2020 · 3 comments · Fixed by #7654
Closed

podman images -a breaks after pulling <image>@<digest> #7651

AkihiroSuda opened this issue Sep 16, 2020 · 3 comments · Fixed by #7654
Assignees
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

@AkihiroSuda
Copy link
Collaborator

AkihiroSuda commented Sep 16, 2020

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

/kind bug

Description

podman images -a breaks after pulling IMAGE@DIGEST

Steps to reproduce the issue:

$ podman pull docker.io/library/hello-world@sha256:4cf9c47f86df71d48364001ede3a4fcd85ae80ce02ebad74156906caff5378bc
Trying to pull docker.io/library/hello-world@sha256:4cf9c47f86df71d48364001ede3a4fcd85ae80ce02ebad74156906caff5378bc...
Getting image source signatures
Copying blob 0e03bdcc26d7 done  
Copying config bf756fb1ae [======================================] 1.5KiB / 1.5KiB
Writing manifest to image destination
Storing signatures
bf756fb1ae65adf866bd8c456593cd24beb6a0a061dedf42b26a993176745f6b

$ podman images -a
Error: error parsing repository tag "docker.io/library/hello-world:sha256:4cf9c47f86df71d48364001ede3a4fcd85ae80ce02ebad74156906caff5378bc":: invalid reference format

Describe the results you received:
Failed as shown above

Describe the results you expected:
Shouldn't fail

Output of podman version:

Version:      2.1.0-dev
API Version:  1
Go Version:   go1.15.2
Git Commit:   b9c47fa40bc503e155a528174974293c6b053ec2
Built:        Wed Sep 16 18:05:37 2020
OS/Arch:      linux/amd64

Output of podman info --debug:

host:
  arch: amd64
  buildahVersion: 1.16.1
  cgroupVersion: v1
  conmon:
    package: Unknown
    path: /usr/local/bin/conmon
    version: 'conmon version 2.0.21, commit: 35a2fa83022e56e18af7e6a865ba5d7165fa2a4a'
  cpus: 2
  distribution:
    distribution: ubuntu
    version: "20.04"
  eventLogger: journald
  hostname: suda-ws01
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1001
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1001
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
  kernel: 5.4.0-47-generic
  linkmode: dynamic
  memFree: 3893223424
  memTotal: 8319303680
  ociRuntime:
    name: runc
    package: Unknown
    path: /usr/local/sbin/runc
    version: |-
      runc version 1.0.0-rc92+dev
      commit: 09ddc63afdde16d5fb859a1d3ab010bd45f08497
      spec: 1.0.2-dev
  os: linux
  remoteSocket:
    path: /run/user/1001/podman/podman.sock
  rootless: true
  slirp4netns:
    executable: /usr/local/bin/slirp4netns
    package: Unknown
    version: |-
      slirp4netns version 1.1.4
      commit: b66ffa8e262507e37fca689822d23430f3357fe8
      libslirp: 4.3.1
      SLIRP_CONFIG_VERSION_MAX: 3
  swapFree: 2147479552
  swapTotal: 2147479552
  uptime: 7h 23m 23.37s (Approximately 0.29 days)
registries:
  search:
  - docker.io
store:
  configFile: /home/suda/.config/containers/storage.conf
  containerStore:
    number: 0
    paused: 0
    running: 0
    stopped: 0
  graphDriverName: overlay
  graphOptions:
    overlay.mount_program:
      Executable: /usr/local/bin/fuse-overlayfs
      Package: Unknown
      Version: |-
        fusermount3 version: 3.9.0
        fuse-overlayfs: version 1.1.0
        FUSE library version 3.4.1
        using FUSE kernel interface version 7.27
  graphRoot: /home/suda/.local/share/containers/storage
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "false"
  imageStore:
    number: 1
  runRoot: /tmp/1001
  volumePath: /home/suda/.local/share/containers/storage/volumes
version:
  APIVersion: 1
  Built: 1600247137
  BuiltTime: Wed Sep 16 18:05:37 2020
  GitCommit: b9c47fa40bc503e155a528174974293c6b053ec2
  GoVersion: go1.15.2
  OsArch: linux/amd64
  Version: 2.1.0-dev

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?

Yes

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 16, 2020
@vrothberg vrothberg self-assigned this Sep 16, 2020
@vrothberg
Copy link
Member

Thanks, @AkihiroSuda!

@mheon, sounds like a candidate for 2.0? Shall we open a BZ?

@mheon
Copy link
Member

mheon commented Sep 16, 2020

@vrothberg Yeah, this one's pretty serious.

@TomSweeneyRedHat
Copy link
Member

vrothberg added a commit to vrothberg/libpod that referenced this issue Sep 17, 2020
Always return all associated names / repo tags of an image and fix a bug
with malformed repo tags.

Previously, Podman returned all names only with `--all` but this flag
only instructs to list intermediate images and should not alter
associated names.  With `--all` Podman queried the repo tags of an image
which splits all *tagged* names into repository and tag which is then
reassembled to eventually be parsed again in the frontend.  Lot's of
redundant CPU heat and buggy as the reassembly didn't consider digests
which ultimately broke parsing in the frontend.

Fixes: containers#7651
Signed-off-by: Valentin Rothberg <[email protected]>
edsantiago added a commit to edsantiago/libpod that referenced this issue Sep 19, 2020
- podman network create: new test

- podman pull by-sha + podman images -a (containers#7651)

- podman image mount: new test

- podman pod: --infra-image and --infra-command (containers#7167)

For convenience and robustness, build a new testimage
containing a custom file /home/podman/testimage-id
with contents YYYYMMDD (same as image tag). The
image-mount test checks that this file exists and
has the desired content. New testimage also includes
a dummy 'pause' executable, for testing pod infra.

Updates from testimage:20200902 to :20200917

Signed-off-by: Ed Santiago <[email protected]>
@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 Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 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

Successfully merging a pull request may close this issue.

5 participants