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 system reset doesn't remove blob-info-cache-v1.sqlite #22825

Closed
bitcindy opened this issue May 28, 2024 · 1 comment · Fixed by #22830
Closed

podman system reset doesn't remove blob-info-cache-v1.sqlite #22825

bitcindy opened this issue May 28, 2024 · 1 comment · Fixed by #22830
Labels
Good First Issue This issue would be a good issue for a first time contributor to undertake. 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

@bitcindy
Copy link

Issue Description

Running "podman system reset" doesn't remove blob-info-cache-v1.sqlite file.

Steps to reproduce the issue

Steps to reproduce the issue

  1. Pulling an image with podman will create a a blob-info-cache-v1.sqlite file
  2. running 'podman system reset"
    See details
$ podman pull alpine
$ ls .local/share/containers/cache
blob-info-cache-v1.sqlite
$ podman system reset
WARNING! This will remove:
        - all containers
        - all pods
        - all images
        - all networks
        - all build cache
        - all machines
        - all volumes
        - the graphRoot directory: "/home/onecloud-user/.local/share/containers/storage"
        - the runRoot directory: "/run/user/1000/containers"
Are you sure you want to continue? [y/N] y

$ ls .local/share/containers/cache
blob-info-cache-v1.sqlite

Describe the results you received

The blob-info-cache-v1.sqlite file still exists.

Describe the results you expected

The blob-info-cache-v1.sqlite file is also removed.

podman info output

$ podman info
host:
  arch: amd64
  buildahVersion: 1.32.0
  cgroupControllers: []
  cgroupManager: cgroupfs
  cgroupVersion: v1
  conmon:
    package: conmon-2.1.8-1.module+el8.9.0+21697+6a5e98e7.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.8, commit: 57ed23ee47beaf9a72b28f5666fab095a9ad4a38'
  cpuUtilization:
    idlePercent: 99.67
    systemPercent: 0.11
    userPercent: 0.23
  cpus: 2
  databaseBackend: boltdb
  distribution:
    distribution: rhel
    version: "8.9"
  eventLogger: file
  freeLocks: 2048
  hostname: rehat
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
  kernel: 4.18.0-513.24.1.el8_9.x86_64
  linkmode: dynamic
  logDriver: k8s-file
  memFree: 1242320896
  memTotal: 3797094400
  networkBackend: cni
  networkBackendInfo:
    backend: cni
    dns:
      package: podman-plugins-4.6.1-9.module+el8.9.0+21697+6a5e98e7.x86_64
      path: /usr/libexec/cni/dnsname
      version: |-
        CNI dnsname plugin
        version: 1.3.1
        commit: unknown
    package: containernetworking-plugins-1.3.0-8.module+el8.9.0+21697+6a5e98e7.x86_64
    path: /usr/libexec/cni
  ociRuntime:
    name: runc
    package: runc-1.1.12-1.module+el8.9.0+21697+6a5e98e7.x86_64
    path: /usr/bin/runc
    version: |-
      runc version 1.1.12
      spec: 1.0.2-dev
      go: go1.20.12
      libseccomp: 2.5.2
  os: linux
  pasta:
    executable: ""
    package: ""
    version: ""
  remoteSocket:
    exists: false
    path: /run/user/1000/podman/podman.sock
  security:
    apparmorEnabled: false
    capabilities: CAP_NET_RAW,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: true
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: true
  serviceIsRemote: false
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.2.1-1.module+el8.9.0+21697+6a5e98e7.x86_64
    version: |-
      slirp4netns version 1.2.1
      commit: 09e31e92fa3d2a1d3ca261adaeb012c8d75a8194
      libslirp: 4.4.0
      SLIRP_CONFIG_VERSION_MAX: 3
      libseccomp: 2.5.2
  swapFree: 4201103360
  swapTotal: 4202688512
  uptime: 627h 30m 51.00s (Approximately 26.12 days)
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - registry.access.redhat.com
  - registry.redhat.io
  - docker.io
store:
  configFile: /home/onecloud-user/.config/containers/storage.conf
  containerStore:
    number: 0
    paused: 0
    running: 0
    stopped: 0
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /home/onecloud-user/.local/share/containers/storage
  graphRootAllocated: 47753990144
  graphRootUsed: 5507338240
  graphStatus:
    Backing Filesystem: xfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Supports shifting: "false"
    Supports volatile: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 0
  runRoot: /run/user/1000/containers
  transientStore: false
  volumePath: /home/onecloud-user/.local/share/containers/storage/volumes
version:
  APIVersion: 4.7.2
  Built: 1715653829
  BuiltTime: Tue May 14 02:30:29 2024
  GitCommit: 750b4c3a7c31f6573350f0b3f1b787f26e0fe1e3-dirty
  GoVersion: go1.20.12
  Os: linux
  OsArch: linux/amd64
  Version: 4.7.2

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

@bitcindy bitcindy added the kind/bug Categorizes issue or PR as related to a bug. label May 28, 2024
@Luap99 Luap99 added the Good First Issue This issue would be a good issue for a first time contributor to undertake. label May 28, 2024
giuseppe added a commit to giuseppe/image that referenced this issue May 28, 2024
@giuseppe
Copy link
Member

opened a PR for c/image to cleanup the blobinfo cache: containers/image#2435

giuseppe added a commit to giuseppe/image that referenced this issue May 28, 2024
mtrmac pushed a commit to giuseppe/image that referenced this issue May 28, 2024
giuseppe added a commit to giuseppe/libpod that referenced this issue May 29, 2024
TomSweeneyRedHat pushed a commit to TomSweeneyRedHat/image that referenced this issue Jul 25, 2024
@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Aug 28, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Aug 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Good First Issue This issue would be a good issue for a first time contributor to undertake. 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.

3 participants