← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1979643] [NEW] ``get_ports`` query done in ``check_baremetal_ports_dhcp_options`` cannot filter by VNIC type

 

Public bug reported:

``get_ports`` method calls
``neutron_lib.db.model_query.get_collection_query``. The "filters"
parameter passed on this call can only apply to the DB model required,
in this case "ports". The VNIC type field is not in "port" but in
"ml2_port_bindings", that is a child model of "ports".

In other to execute this query, a custom made query could be required.

This is related to patch
https://review.opendev.org/c/openstack/neutron/+/840316.

** Affects: neutron
     Importance: Medium
     Assignee: Rodolfo Alonso (rodolfo-alonso-hernandez)
         Status: New

** Changed in: neutron
   Importance: Undecided => Medium

** Changed in: neutron
     Assignee: (unassigned) => Rodolfo Alonso (rodolfo-alonso-hernandez)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1979643

Title:
  ``get_ports`` query done in ``check_baremetal_ports_dhcp_options``
  cannot filter by VNIC type

Status in neutron:
  New

Bug description:
  ``get_ports`` method calls
  ``neutron_lib.db.model_query.get_collection_query``. The "filters"
  parameter passed on this call can only apply to the DB model required,
  in this case "ports". The VNIC type field is not in "port" but in
  "ml2_port_bindings", that is a child model of "ports".

  In other to execute this query, a custom made query could be required.

  This is related to patch
  https://review.opendev.org/c/openstack/neutron/+/840316.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1979643/+subscriptions



Follow ups