list servers always returns all with 'ip6' filter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
A tempest test was failing because it was trying to filter servers based on ip from an ipv6 subnet but was not using the 'ip6' query param. But the fix to use 'ip6' failed because all servers are returned instead of just the one with that ipv6 addr.
This is most easily seen by just doing:
nova list --ip6 xxx
which returns all servers vs
nova list --ip xxx
which returns none.
For reference, the actual failing call from http://
2015-05-01 15:53:56.426 | 2015-05-01 15:22:28,839 30116 INFO [tempest_
2015-05-01 15:53:56.426 | 2015-05-01 15:22:28,840 30116 DEBUG [tempest_
2015-05-01 15:53:56.426 | Body: None
2015-05-01 15:53:56.426 | Response - Headers: {'content-type': 'application/json', 'x-compute-
2015-05-01 15:53:56.426 | Body: {"servers": [{"id": "0ab24a98-
Changed in nova: | |
status: | In Progress → Confirmed |
assignee: | Dr. Jens Rosenboom (j-rosenboom-j) → nobody |
Changed in nova: | |
assignee: | nobody → Jay Pipes (jaypipes) |
status: | Confirmed → In Progress |
Changed in nova: | |
assignee: | Jay Pipes (jaypipes) → Dr. Jens Rosenboom (j-rosenboom-j) |
importance: | Undecided → Medium |
tags: | added: api |
Changed in nova: | |
assignee: | Dr. Jens Rosenboom (j-rosenboom-j) → nobody |
status: | In Progress → Confirmed |
Seems like ip6 is missing from the list of allowed options for non-admin access:
http:// logs.openstack. org/98/ 179398/ 1/experimental/ check-tempest- dsvm-neutron- full-non- admin/aa764bb/ logs/screen- n-api.txt. gz#_2015- 05-01_15_ 22_28_784
DEBUG nova.api. openstack. compute. servers [req-ac54be26- 7689-4092- b42a-f3161c8029 5b demo demo] Removing options 'ip6' from query remove_ invalid_ options /opt/stack/ new/nova/ nova/api/ openstack/ compute/ servers. py:1156
So "nova list --ip6 xxx" is just treated like "nova list".