-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Multiple filter options do not act as logical AND for volume ls #19219
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
14 tasks
Thanks for reaching out and providing the reproducer, @hickeng ! |
@jakecorrenti, interested in tackling this one? Currently, any filter must match to return a volume but to match Docker, all filters must match. Should also be made clear in the docs. @mheon was that intentional? |
sure thing, I'll take a look! |
/assign |
@vrothberg I have no memory of this but I can't see doing it intentionally. |
jakecorrenti
added a commit
to jakecorrenti/podman
that referenced
this issue
Jul 18, 2023
Fixes a bug where `podman volume ls` with multiple `label` filters would return volumes that matched *any* of the filters, not *all* of them. Adapts generating volume filter functions to be more in line with how it is done for containers and pods. Fixes: containers#19219 Signed-off-by: Jake Correnti <[email protected]>
ashley-cui
pushed a commit
to ashley-cui/podman
that referenced
this issue
Jul 20, 2023
Fixes a bug where `podman volume ls` with multiple `label` filters would return volumes that matched *any* of the filters, not *all* of them. Adapts generating volume filter functions to be more in line with how it is done for containers and pods. Fixes: containers#19219 Signed-off-by: Jake Correnti <[email protected]>
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
Oct 17, 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.
Issue Description
Proximately the same issue as was described for
ps
in #1341Using multiple
--filter
option on volumes is anOR
but should beAND
.Steps to reproduce the issue
Steps to reproduce the issue:
Query with compound filters:
Describe the results you received
Lists all volumes matching either label
Describe the results you expected
Lists only the volumes matching all the specified filters:
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
No
Additional environment details
WSL environment created using podman-machine
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: