search option binary does not work for service-list

Bug #1309024 reported by Valeriy Ponomaryov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Undecided
Valeriy Ponomaryov

Bug Description

Request without params:

curl -i http://%host%:8786/v1/%tenant_id%/os-services -X GET -H "X-Auth-Project-Id: demo" -H "User-Agent: python-manilaclient" -H "Accept: application/json" -H "X-Auth-Token: %token%"

+------------------+---------------+------+---------+-------+----------------------------+
| Binary | Host | Zone | Status | State | Updated_at |
+------------------+---------------+------+---------+-------+----------------------------+
| manila-scheduler | nosb-devstack | nova | enabled | up | 2014-04-17T13:42:47.000000 |
| manila-share | nosb-devstack | nova | enabled | up | 2014-04-17T13:42:42.000000 |
+------------------+---------------+------+---------+-------+----------------------------+

Request with 'binary' param:

curl -i http://%host%:8786/v1/%tenant_id%/os-services?binary=fake -X GET -H "X-Auth-Project-Id: demo" -H "User-Agent: python-manilaclient" -H "Accept: application/json" -H "X-Auth-Token: %token%"

+------------------+---------------+------+---------+-------+----------------------------+
| Binary | Host | Zone | Status | State | Updated_at |
+------------------+---------------+------+---------+-------+----------------------------+
| manila-scheduler | nosb-devstack | nova | enabled | up | 2014-04-17T13:42:47.000000 |
| manila-share | nosb-devstack | nova | enabled | up | 2014-04-17T13:42:42.000000 |
+------------------+---------------+------+---------+-------+----------------------------+

but for second request was expected empty list, because there are no service with 'fake' binary.

Changed in manila:
assignee: nobody → Valeriy Ponomaryov (vponomaryov)
Changed in manila:
status: New → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/88300
Committed: https://git.openstack.org/cgit/stackforge/manila/commit/?id=07c7a181df87c9d37738d6baae7cf4f7b9a613e2
Submitter: Jenkins
Branch: master

commit 07c7a181df87c9d37738d6baae7cf4f7b9a613e2
Author: Valeriy Ponomaryov <email address hidden>
Date: Thu Apr 17 09:41:30 2014 -0400

    Refactored service-list filters

    Except fixing bug also added more filter options,
    that are expected to be added for client.

    Change-Id: Ie25d77b8b46914879e0a18189c3cd9c2fa71f860
    Closes-Bug: #1309024

Changed in manila:
status: In Progress → Fix Committed
Changed in manila:
status: Fix Committed → Fix Released
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.