REST API /system/df UsageData.RefCount on volumes is always 1 #15720
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.
podman-desktop
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
In order to see who is using a volume, I'm using the
RefCount
attribute ofUsageData
fieldBut even if you create a volume without using it, it returns 1.
And if you create multiple containers using that volume, it's still using 1
Steps to reproduce the issue:
$ dummyVolume=$(podman volume create)
Use REST api to see refCount
It's already invalid
And we still have our container using it
Describe the results you received:
RefCount = 1
Describe the results you expected:
Valid RefCount
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
):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/No
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: