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 manifest rm gives the error "tag not known" even though inspect works #14763

Closed
kgibm opened this issue Jun 28, 2022 · 4 comments · Fixed by #14783
Closed

podman manifest rm gives the error "tag not known" even though inspect works #14763

kgibm opened this issue Jun 28, 2022 · 4 comments · Fixed by #14783
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. macos MacOS (OSX) related remote Problem is in podman-remote

Comments

@kgibm
Copy link

kgibm commented Jun 28, 2022

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

/kind bug

Description

Using podman 4.1.1 on macOS, I built a manifest list and I can inspect it, but trying to podman manifest rm it gives the error, "tag not known".

Steps to reproduce the issue:

  1. git clone https://github.com/IBM/containerdiag && cd containerdiag
  2. podman build --platform linux/amd64,linux/arm64 --manifest localhost/containerdiag:testmanifest .
  3. Inspecting and listing works fine:
    $ podman manifest inspect localhost/containerdiag:testmanifest
    {
        "schemaVersion": 2,
        "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
        "manifests": [
            {
                "mediaType": "application/vnd.oci.image.manifest.v1+json",
                "size": 1369,
                "digest": "sha256:bf87e19b854b4bad99b21d8301415bc50e50ae89283255d99d90490de2e4f7a3",
                "platform": {
                    "architecture": "amd64",
                    "os": "linux"
                }
            },
            {
                "mediaType": "application/vnd.oci.image.manifest.v1+json",
                "size": 1369,
                "digest": "sha256:5726853086de6ecd541def2e445b78bc6c8916265dcf508413ee517c1f43505b",
                "platform": {
                    "architecture": "arm64",
                    "os": "linux"
                }
            }
        ]
    }
    $ podman image ls localhost/containerdiag:testmanifest
    REPOSITORY               TAG           IMAGE ID      CREATED        SIZE
    localhost/containerdiag  testmanifest  044a5933fa63  2 minutes ago  2 kB
    
  4. Deleting it fails:
    $ podman manifest rm localhost/containerdiag:testmanifest
    Error: localhost/containerdiag:testmanifest: tag not known
    

Describe the results you received:

tag not known

Describe the results you expected:

Manifest list deleted

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

With --log-level=debug:

$ podman manifest rm --log-level=debug localhost/containerdiag:testmanifest
INFO[0000] podman filtering at log level debug          
DEBU[0000] Called rm.PersistentPreRunE(podman manifest rm --log-level=debug localhost/containerdiag:testmanifest) 
DEBU[0000] SSH Ident Key "/Users/kevin/.ssh/podman-machine-default" SHA256:HDfyUZ9uekoNiwQzy/kdVhoM+enCTX5OoaT4v7e9KYc ssh-ed25519 
DEBU[0000] Found SSH_AUTH_SOCK "/private/tmp/com.apple.launchd.wLOpBRXGMq/Listeners", ssh-agent signer(s) enabled 
DEBU[0000] SSH Agent Key SHA256:7Z2VAKPt/xZjYk290LSjGhV/KeIwjk7FgqHmD+2eqjM ssh-rsa 
DEBU[0000] DoRequest Method: GET URI: http://d/v4.1.1/libpod/_ping 
DEBU[0000] DoRequest Method: DELETE URI: http://d/v4.1.1/libpod/images/remove 
Error: localhost/containerdiag:testmanifest: tag not known

Output of podman version:

podman version output
$ podman version
Client:       Podman Engine
Version:      4.1.1
API Version:  4.1.1
Go Version:   go1.18.3
Built:        Tue Jun 14 15:12:46 2022
OS/Arch:      darwin/amd64

Server:       Podman Engine
Version:      4.1.0
API Version:  4.1.0
Go Version:   go1.18
Built:        Fri May  6 11:15:54 2022
OS/Arch:      linux/amd64

Output of podman info --debug:

podman info --debug output
$ podman version
Client:       Podman Engine
Version:      4.1.1
API Version:  4.1.1
Go Version:   go1.18.3
Built:        Tue Jun 14 15:12:46 2022
OS/Arch:      darwin/amd64

Server:       Podman Engine
Version:      4.1.0
API Version:  4.1.0
Go Version:   go1.18
Built:        Fri May  6 11:15:54 2022
OS/Arch:      linux/amd64
Kevins-MBP:containerdiag kevin$ podman info --debug
host:
  arch: amd64
  buildahVersion: 1.26.1
  cgroupControllers:
  - cpuset
  - cpu
  - io
  - memory
  - hugetlb
  - pids
  - misc
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: conmon-2.1.0-2.fc36.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.0, commit: '
  cpuUtilization:
    idlePercent: 98.96
    systemPercent: 0.45
    userPercent: 0.59
  cpus: 4
  distribution:
    distribution: fedora
    variant: coreos
    version: "36"
  eventLogger: journald
  hostname: localhost.localdomain
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 5.17.5-300.fc36.x86_64
  linkmode: dynamic
  logDriver: journald
  memFree: 5062844416
  memTotal: 10431864832
  networkBackend: netavark
  ociRuntime:
    name: crun
    package: crun-1.4.4-1.fc36.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 1.4.4
      commit: 6521fcc5806f20f6187eb933f9f45130c86da230
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
  os: linux
  remoteSocket:
    exists: true
    path: /run/podman/podman.sock
  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
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: true
  serviceIsRemote: true
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.2.0-0.2.beta.0.fc36.x86_64
    version: |-
      slirp4netns version 1.2.0-beta.0
      commit: 477db14a24ff1a3de3a705e51ca2c4c1fe3dda64
      libslirp: 4.6.1
      SLIRP_CONFIG_VERSION_MAX: 3
      libseccomp: 2.5.3
  swapFree: 0
  swapTotal: 0
  uptime: 1h 18m 5.98s (Approximately 0.04 days)
plugins:
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  volume:
  - local
registries:
  search:
  - docker.io
store:
  configFile: /usr/share/containers/storage.conf
  containerStore:
    number: 0
    paused: 0
    running: 0
    stopped: 0
  graphDriverName: overlay
  graphOptions:
    overlay.mountopt: nodev,metacopy=on
  graphRoot: /var/lib/containers/storage
  graphRootAllocated: 128300593152
  graphRootUsed: 14736486400
  graphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "true"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 128
  runRoot: /run/containers/storage
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 4.1.0
  Built: 1651853754
  BuiltTime: Fri May  6 11:15:54 2022
  GitCommit: ""
  GoVersion: go1.18
  Os: linux
  OsArch: linux/amd64
  Version: 4.1.0

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

brew info podman output
$ brew info podman
podman: stable 4.1.1 (bottled), HEAD
Tool for managing OCI containers and pods
https://podman.io/
/usr/local/Cellar/podman/4.1.1 (174 files, 47.7MB) *
  Poured from bottle on 2022-06-28 at 12:38:03
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/podman.rb

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)

Yes

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

macOS information
$ system_profiler SPSoftwareDataType SPHardwareDataType | grep -v -e UUID -e UDID -e 'User Name' -e 'Computer Name' -e Serial
Software:

    System Software Overview:

      System Version: macOS 12.4 (21F79)
      Kernel Version: Darwin 21.5.0
      Boot Volume: MainDisk
      Boot Mode: Normal
      Secure Virtual Memory: Enabled
      System Integrity Protection: Disabled
      Time since boot: 12 days 2:24

Hardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro15,1
      Processor Name: 6-Core Intel Core i7
      Processor Speed: 2.6 GHz
      Number of Processors: 1
      Total Number of Cores: 6
      L2 Cache (per Core): 256 KB
      L3 Cache: 9 MB
      Hyper-Threading Technology: Enabled
      Memory: 16 GB
      System Firmware Version: 1731.120.10.0.0 (iBridge: 19.16.15071.0.0,0)
      OS Loader Version: 540.120.3~6
      Activation Lock Status: Enabled
@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Jun 28, 2022
@github-actions github-actions bot added macos MacOS (OSX) related remote Problem is in podman-remote labels Jun 28, 2022
@flouthoc
Copy link
Collaborator

Hi @kgibm ,

Thanks for creating the issue. There is already a known issue for podman manifest rm as mentioned here: #14740 (comment) and I hope this will be fixed when podman manifest rm for machine setups starts using new API.

@vrothberg
Copy link
Member

@flouthoc, since you're on the manifest-rm code. Can you tackle this issue as well? Lets make sure to add regression tests for all issues.

@flouthoc
Copy link
Collaborator

@vrothberg Sure.

@flouthoc flouthoc self-assigned this Jun 29, 2022
flouthoc added a commit to flouthoc/podman that referenced this issue Jun 30, 2022
ImagesBatchRemoval and ImageRemoval now honors and accepts
`LookupManifest` parameter which further tells libimage to resolve to
manifest list if it exists instead of actual image.

Following PR also makes `podman-remote manifest rm` functional which was
broken till now.

Closes: containers#14763

Signed-off-by: Aditya R <[email protected]>
@kgibm
Copy link
Author

kgibm commented Jun 30, 2022

@flouthoc thx!

@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 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 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. macos MacOS (OSX) related remote Problem is in podman-remote
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants