nova list --ip filter shows all instances

Bug #1170718 reported by Vasyl Khomenko
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Satyanarayana Patibandla
python-novaclient
Invalid
Undecided
Unassigned

Bug Description

When i try to filter instances by IP i get all instances instead of filtered.

root@a011:/opt/stack/tempest/tempest/services/compute/json# nova list
+--------------------------------------+-----------+---------+-------------------+
| ID | Name | Status | Networks |
+--------------------------------------+-----------+---------+-------------------+
| edd24dca-9cac-428b-a62e-469b363d9f5f | insat | ACTIVE | private=10.0.11.3 |
| e9120b8d-b821-4904-9c15-cd629facd271 | instance1 | SHUTOFF | private=10.0.11.2 |
| 403b976b-d7e4-42ef-a5a4-b342ce237cce | server0 | ACTIVE | private=10.0.11.4 |
+--------------------------------------+-----------+---------+-------------------+

root@a011:/opt/stack/tempest/tempest/services/compute/json# nova list --ip 10.0.11.3
+--------------------------------------+-----------+---------+-------------------+
| ID | Name | Status | Networks |
+--------------------------------------+-----------+---------+-------------------+
| edd24dca-9cac-428b-a62e-469b363d9f5f | insat | ACTIVE | private=10.0.11.3 |
| e9120b8d-b821-4904-9c15-cd629facd271 | instance1 | SHUTOFF | private=10.0.11.2 |
| 403b976b-d7e4-42ef-a5a4-b342ce237cce | server0 | ACTIVE | private=10.0.11.4 |
+--------------------------------------+-----------+---------+-------------------+

Chuck Short (zulcss)
Changed in nova:
status: New → Confirmed
Changed in nova:
assignee: nobody → Satyanarayana Patibandla (satya-patibandla-i)
Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/28234

Revision history for this message
Satyanarayana Patibandla (satya-patibandla-i) wrote :

The code changes are merged as part of the blue print add-attribute-ip-in-server-search-options.

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
Jordan Pittier (jordan-pittier) wrote :

I am still able to repro.

This works : nova list --ip 10.0.0.1
This doesn't : nova list --ip 10.0.0.14 (return a error code 500)

 curl -ivk -H "X-Auth-Token: $TOKEN" http://XX:8774/v2/${PROJECT_ID}/servers?ip=10.0.0.14 and browse nova log to see the exact stack trace.

The updated Nova test should test a search based on a regex (req = fakes.HTTPRequest.blank('/v2/fake/servers?ip=10\..*') AND also an exact search (req = fakes.HTTPRequest.blank('/v2/fake/servers?ip=10.0.0.14)

Revision history for this message
Thierry Carrez (ttx) wrote :

@Jordan: this sounds like a different issue ? If you can reproduce with current master branch, could you open a new bug to make sure we don't lose track of this ?

Changed in nova:
status: Fix Released → Fix Committed
Revision history for this message
Satyanarayana Patibandla (satya-patibandla) wrote :

@Jordan: If you create a new bug, Please assign it to me.

Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-1
status: Fix Committed → Fix Released
Revision history for this message
Satyanarayana Patibandla (satya-patibandla) wrote :

As mentioned by Jordan in above comment, http 500 error issue can be reproducible with latest build.
The below mentioned pronto has been created to address this issue.

https://bugs.launchpad.net/nova/+bug/1177246

Thierry Carrez (ttx)
Changed in nova:
milestone: havana-1 → 2013.2
Revision history for this message
melanie witt (melwitt) wrote :

I think this was a nova bug that was fixed.

Changed in python-novaclient:
status: New → 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.