Openstack CLI container list --prefix does not work

Bug #1741159 reported by Josue Palmerin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
Medium
Oleksiy Molchanov

Bug Description

Detailed bug description:
 Filtering with --prefix is ignored using openstack CLI
 root@node-1:~# openstack container list --prefix Admin-Test-B
+----------------------------+
| Name |
+----------------------------+
| Admin-Test-Bucket-1 |
| Admin-Test-Bucket-2 |
| Admin-Test-Container-Quota |
+----------------------------+

Steps to reproduce:
 Deploy MOS 9.2
 Create a few containers using the same naming convention
 Filer by --prefix

Expected results:
 root@node-2:~# openstack container list --prefix cn190 --limit 10
+---------+
| Name |
+---------+
| cn19000 |
| cn19001 |
| cn19002 |
| cn19003 |
| cn19004 |
| cn19005 |
| cn19006 |
| cn19007 |
| cn19008 |
| cn19009 |
+---------+

Actual result:
  Returns list of containers ignoring the prefix
Reproducibility:
  100%

Description of the environment:
- Operation system: Ubuntu 14.04
- Versions of components: python-openstackclient 2.3.1-2~u14.04+mos3

Changed in mos:
assignee: nobody → Oleksiy Molchanov (omolchanov)
Changed in mos:
importance: Undecided → Medium
Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

Hello Josue,

I was trying to reproduce but I failed on both 9.2 and 9.2-mu-3. Perhaps you made some changes to fuel installation, didn't you?

Changed in mos:
status: New → Incomplete
Revision history for this message
Josue Palmerin (jpalmerin) wrote :

Hi Oleksiy,

I've made no changes to the vanilla deployment. Are you saying with this current version of the cli you are able to use --prefix to filter through results?

As you can see from my example.
openstack container list --prefix Admin-Test-B yields all the containers I had in the list at the time. which is only three for testing and noticed that one is has the following and should have been omitted Admin-Test-C

I will test once more and will provide my results.

Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

Hello Josue, Yes, with current version it works as expected.

Changed in mos:
milestone: 9.2-mu-4 → 9.2-mu-5
Changed in mos:
milestone: 9.2-mu-5 → 9.x-updates
Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

Closing as Invalid, because of no reply for more than a month.

Changed in mos:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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