Zun

CLI: Introduce filters on listing containers

Bug #1757152 reported by hongbin
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zun
Fix Committed
Medium
Rajat Sharma

Bug Description

Currently, the server side supports the following filters [1]:

          container_allowed_filters = ['name', 'image', 'project_id', 'user_id',
                                     'memory', 'host', 'task_state', 'status',
                                     'auto_remove']

We'd better to support them in client side. The desired output might look like:

  $ zun list --name xxxx
  $ openstack appcontainer list --image xxx
  ...

[1] https://github.com/openstack/zun/blob/master/zun/api/controllers/v1/containers.py#L207

Related Bugs:
https://bugs.launchpad.net/zun/+bug/1764003
https://bugs.launchpad.net/zun/+bug/1750208

hongbin (hongbin034)
description: updated
Changed in zun:
importance: Undecided → Medium
status: New → Triaged
Rajat Sharma (tajar29)
Changed in zun:
assignee: nobody → Rajat Sharma (tajar29)
hongbin (hongbin034)
description: updated
description: updated
Revision history for this message
Rajat Sharma (tajar29) wrote :
hongbin (hongbin034)
Changed in zun:
status: Triaged → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-zunclient 1.4.0

This issue was fixed in the openstack/python-zunclient 1.4.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.