Skip to content

podman volume ls doesn't print headers when there are no volumes #25911

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

Closed
nalind opened this issue Apr 17, 2025 · 0 comments · Fixed by #25937
Closed

podman volume ls doesn't print headers when there are no volumes #25911

nalind opened this issue Apr 17, 2025 · 0 comments · Fixed by #25937
Assignees
Labels
bugweek kind/bug Categorizes issue or PR as related to a bug. triaged Issue has been triaged

Comments

@nalind
Copy link
Member

nalind commented Apr 17, 2025

Issue Description

When I run podman volume ls when I have no volumes, it lists no volumes, but also doesn't print the headers that I'd expect from having used podman image ls.

Steps to reproduce the issue

Steps to reproduce the issue

  1. podman system reset
  2. podman volume ls

Describe the results you received

No output, whether or not the -n flag is used.

Describe the results you expected

Headers:

DRIVER     VOLUME NAME

podman info output

  arch: amd64
  buildahVersion: 1.40.0-dev
  cgroupControllers:
  - cpu
  - memory
  - pids
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: conmon-2.1.13-1.fc42.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.13, commit: '
  cpuUtilization:
    idlePercent: 97.44
    systemPercent: 0.61
    userPercent: 1.94
  cpus: 8
  databaseBackend: sqlite
  distribution:
    distribution: fedora
    variant: workstation
    version: "42"
  eventLogger: journald
  freeLocks: 2048
  hostname: pillbox
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 2516
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 2510
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
  kernel: 6.14.0-63.fc42.x86_64
  linkmode: dynamic
  logDriver: journald
  memFree: 6119047168
  memTotal: 33333391360
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    dns:
      package: aardvark-dns-1.14.0-1.fc42.x86_64
      path: /usr/libexec/podman/aardvark-dns
      version: aardvark-dns 1.14.0
    package: netavark-1.14.1-1.fc42.x86_64
    path: /usr/libexec/podman/netavark
    version: netavark 1.14.1
  ociRuntime:
    name: crun
    package: crun-1.21-1.fc42.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 1.21
      commit: 10269840aa07fb7e6b7e1acff6198692d8ff5c88
      rundir: /run/user/2510/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
  os: linux
  pasta:
    executable: /usr/bin/pasta
    package: passt-0^20250320.g32f6212-2.fc42.x86_64
    version: ""
  remoteSocket:
    exists: true
    path: /run/user/2510/podman/podman.sock
  rootlessNetworkCmd: pasta
  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: true
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: true
  serviceIsRemote: false
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.3.1-2.fc42.x86_64
    version: |-
      slirp4netns version 1.3.1
      commit: e5e368c4f5db6ae75c2fce786e31eef9da6bf236
      libslirp: 4.8.0
      SLIRP_CONFIG_VERSION_MAX: 5
      libseccomp: 2.5.5
  swapFree: 19159138304
  swapTotal: 25383919616
  uptime: 235h 39m 49.00s (Approximately 9.79 days)
  variant: ""
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - registry.fedoraproject.org
  - registry.access.redhat.com
  - docker.io
store:
  configFile: /home/nalin/.config/containers/storage.conf
  containerStore:
    number: 0
    paused: 0
    running: 0
    stopped: 0
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /home/nalin/.local/share/containers/storage
  graphRootAllocated: 461604126720
  graphRootUsed: 436192337920
  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/2510/containers
  transientStore: false
  volumePath: /home/nalin/.local/share/containers/storage/volumes
version:
  APIVersion: 5.5.0-dev
  Built: 1744904642
  BuiltTime: Thu Apr 17 11:44:02 2025
  GitCommit: 51c4df131668a839ef3f8dbe8de891d23e7ab4e3-dirty
  GoVersion: go1.24.1
  Os: linux
  OsArch: linux/amd64
  Version: 5.5.0-dev

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

Yes (main: 51c4df1)

Additional environment details

Additional environment details

Additional information

@nalind nalind added the kind/bug Categorizes issue or PR as related to a bug. label Apr 17, 2025
@Honny1 Honny1 added bugweek triaged Issue has been triaged labels Apr 17, 2025
@baude baude self-assigned this Apr 21, 2025
baude added a commit to baude/podman that referenced this issue Apr 21, 2025
To have consistency with other podman commands like `ps` and `images`,
`volume ls` should output its headers even when there are no volumes.

Fixes: containers#25911

Signed-off-by: Brent Baude <[email protected]>
baude added a commit to baude/podman that referenced this issue Apr 21, 2025
To have consistency with other podman commands like `ps` and `images`,
`volume ls` should output its headers even when there are no volumes.

Fixes: containers#25911

Signed-off-by: Brent Baude <[email protected]>
baude added a commit to baude/podman that referenced this issue Apr 21, 2025
To have consistency with other podman commands like `ps` and `images`,
`volume ls` should output its headers even when there are no volumes.

Fixes: containers#25911

Signed-off-by: Brent Baude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugweek kind/bug Categorizes issue or PR as related to a bug. triaged Issue has been triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants