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 ps don't accept --filter pod #8512

Closed
PavelSosin-320 opened this issue Nov 30, 2020 · 3 comments · Fixed by #8804
Closed

Podman ps don't accept --filter pod #8512

PavelSosin-320 opened this issue Nov 30, 2020 · 3 comments · Fixed by #8804
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@PavelSosin-320
Copy link

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

/kind bug

Description

Podman ps and Podman container ls commands don't accept --filter options
##1345
Steps to reproduce the issue:

  1. Create named Pod
  2. Run image and assign it to Pod using Podman run --pod podName .... imageName command
  3. Start pod podName
  4. use Podman pod ls to see that the pod is running
  5. Run Podman ps or Podman container ls --pod command to see that the container is running and is assigned to the pod
  6. run Podman ps or Podman container ls with ---filter or --filter "pod=podname" option to see only containers assigned to the podName pod.
    Describe the results you received:
    Error: pod is an invalid filter regardless of used option format --filter=pod 123 --filter "pod=123", etc
    Describe the results you expected:
    List and status of containers running in the pod name pod following in the documentation and
    Tracking bug #Fix handling of multiple filters in podman ps #1345
    Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

Version:      2.1.1

Output of podman info --debug:

podman info --debug
host:
  arch: amd64
  buildahVersion: 1.16.1
  cgroupManager: systemd
  cgroupVersion: v1
  conmon:
    package: 'conmon: /usr/libexec/podman/conmon'
    path: /usr/libexec/podman/conmon
    version: 'conmon version 2.0.20, commit: '
  cpus: 4
  **distribution:
    distribution: Ubuntu
    version: "20.04"**
  eventLogger: journald
  hostname: MSI
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 4.19.128-microsoft-standard

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

apt list podman
Listing... Done
podman/now 2.1.1~2 amd64 [installed,local]

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?

No, I suppose 2.2 must be available

Additional environment details (AWS, VirtualBox, physical, etc.):
Ubuntu 20.04 distro with Kube Kubernetes Microk8c package installed and systemd is enabled.
sudo apt-get upgrade podman
Reading package lists... Done
Building dependency tree
Reading state information... Done
podman is already the newest version (2.1.1~2)

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 30, 2020
@Luap99
Copy link
Member

Luap99 commented Nov 30, 2020

Why do you think --filter pod= is valid? Our documentation mentions these filters: https://github.com/containers/podman/blob/master/docs/source/markdown/podman-ps.1.md#--filter--f

@Luap99 Luap99 changed the title Podman container ls and Podman ps don't accept --filter Podman ps don't accept --filter pod Nov 30, 2020
@Luap99 Luap99 added kind/feature Categorizes issue or PR as related to a new feature. and removed kind/bug Categorizes issue or PR as related to a bug. labels Nov 30, 2020
@Luap99
Copy link
Member

Luap99 commented Nov 30, 2020

Labelling this as feature request for pod filter support

@mheon
Copy link
Member

mheon commented Nov 30, 2020

Concur, this looks like an RFE. It seems like a good filter to add, though.

@baude baude self-assigned this Dec 22, 2020
baude added a commit to baude/podman that referenced this issue Dec 22, 2020
adds the ability to filter containers based on the filter "pod".  the
value can be a pod name or its full or partial id.

Fixes: containers#8512

Signed-off-by: baude <[email protected]>
@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 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Categorizes issue or PR as related to a new feature. 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.

5 participants