Bug 1300611

Summary: filter instances by ip not work
Product: [Community] RDO Reporter: tangyi <tinetkiller>
Component: openstack-novaAssignee: Russell Bryant <rbryant>
Status: CLOSED EOL QA Contact: nlevinki <nlevinki>
Severity: low Docs Contact:
Priority: unspecified    
Version: JunoCC: berrange, dasmith, eglynn, rbryant, sbauza, sferdjao, sgordon, srevivo, vromanso
Target Milestone: ---   
Target Release: Kilo   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 15:52:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description tangyi 2016-01-21 09:38:22 UTC
Description of problem:
use openstack horizon.in instances panel within admin panel group.filter instances by ip is not work,it only search in the current page.

Version-Release number of selected component (if applicable):
juno

How reproducible:
everytime

Steps to Reproduce:
1.install the nova-api component use http://repos.fedorapeople.org/repos/openstack/openstack-juno/epel-7/
2.login openstack dashboard with admin user.click admin panel group,and then click instances panel
3.select "IPv4 Address" filter,enter an ip address that is not displayed in current page.

Actual results:
no result display

Expected results:
display the instance with entered ip address.

Additional info:

I finally figured out the problem. install nova-api with http://repos.fedorapeople.org/repos/openstack/openstack-juno/epel-7/ repo,nova-api code is not newest.problem is caused by missing the following four line code(juno stable in github has thoes code):
  
filter_ip = 'ip6' in filters or 'ip' in filters
if filter_ip and limit:
    LOG.debug('Removing limit for DB query due to IP filter')
    limit = None

openstack offical doc Recommend use rdo repo(http://repos.fedorapeople.org/repos/openstack/openstack-juno/epel-7/),i think the code is not newest will affect lots of person.

Comment 1 tangyi 2016-01-21 10:00:19 UTC
In centos7 the location of file which missing code is /usr/lib/python2.7/site-packages/nova/compute/api.py. line 1989.

Comment 2 Chandan Kumar 2016-05-19 15:52:28 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.