Network filtering by dns_domain is not supported in the "dns-integration" extension

Bug #1818318 reported by kay
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Confirmed
Medium
Unassigned

Bug Description

Filtering network by "dns_domain" (http://neutron/v2.0/networks?dns_domain=foo) returns:

in_() not yet supported for relationships. For a simple many-to-one, use in_() against the set of foreign key values.

However ports filtering by dns_name works fine (in Neutron Mitaka):

http://neutron/v2.0/ports?dns_name=bar

Floating IPs filtering by dns_name or dns_domain also doesn't work (filter is just not applied) and Neutron (even in Mitaka) returns all floating IPs.

I haven't managed to clarify why.

kay (kay-diam)
Changed in neutron:
status: New → Invalid
kay (kay-diam)
Changed in neutron:
status: Invalid → New
Revision history for this message
kay (kay-diam) wrote :

Another issue with DNS filtering. Looks like the Neutron Mitaka is capable to filter _ports_ by "dns_name", but the Neutron Queens returns all the ports.

kay (kay-diam)
description: updated
kay (kay-diam)
description: updated
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
kay (kay-diam) wrote :

Any news on this?

Revision history for this message
kay (kay-diam) wrote :

Do you have any news on this issue? It broke automation once neutron was upgrade from mitaka to queens.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lib (master)

Fix proposed to branch: master
Review: https://review.opendev.org/699062

Changed in neutron:
assignee: nobody → Dr. Jens Harbott (j-harbott)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.opendev.org/699063

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-lib (master)

Reviewed: https://review.opendev.org/699062
Committed: https://git.openstack.org/cgit/openstack/neutron-lib/commit/?id=79cd582084c4b23626a83a2e9059cb5c6e6a29ee
Submitter: Zuul
Branch: master

commit 79cd582084c4b23626a83a2e9059cb5c6e6a29ee
Author: Jens Harbott <email address hidden>
Date: Sat Dec 14 10:25:26 2019 +0100

    Pass on missing implementation while filtering

    The in_() filter isn't implemented yet for relations. Since these are
    being used in multiple locations in order to add new attributes to
    objects, we ignore the resulting error and allow the filtering to be
    applied by the corresponding result_filter hook afterwards.

    Change-Id: Ie91656387f7a7e60738a63bc28bf9bd505407cff
    Partial-Bug: 1818318

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Slawek Kaplonski (<email address hidden>) on branch: master
Review: https://review.opendev.org/699063
Reason: This review is > 4 weeks without comment, and failed Zuul jobs the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Changed in neutron:
status: In Progress → Confirmed
assignee: Dr. Jens Harbott (j-harbott) → nobody
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.