Bulk-created ports ignore binding_host_id property

Bug #1835209 reported by Michal Dulko on 2019-07-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
High
Nate Johnston

Bug Description

If you pass binding_host_id to bulk port creation request, the property is not saved into the DB and this results in port being unbound. This is problematic for Kuryr where we precreate a number of ports pre-attached to Neutron hosts.

I believe this was introduced in https://review.opendev.org/#/c/624815/.

Bernard Cafarelli (bcafarel) wrote :

Thanks for filling the LP!

Patch under review by Nate in https://review.opendev.org/#/c/665516/, this one will probably marked as linked bug

Changed in neutron:
status: New → In Progress
assignee: nobody → Nate Johnston (nate-johnston)
importance: Undecided → High
Changed in neutron:
assignee: Nate Johnston (nate-johnston) → Bernard Cafarelli (bcafarel)
Changed in neutron:
assignee: Bernard Cafarelli (bcafarel) → Slawek Kaplonski (slaweq)
Changed in neutron:
assignee: Slawek Kaplonski (slaweq) → Rodolfo Alonso (rodolfo-alonso-hernandez)
Changed in neutron:
assignee: Rodolfo Alonso (rodolfo-alonso-hernandez) → Nate Johnston (nate-johnston)

Reviewed: https://review.opendev.org/665516
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=d0c172afa6ea38e94563afb4994471420b27cddf
Submitter: Zuul
Branch: master

commit d0c172afa6ea38e94563afb4994471420b27cddf
Author: Nate Johnston <email address hidden>
Date: Sat Jun 15 10:14:58 2019 -0400

    Fix bulk port binding

    Bulk ports were not binding correctly when they were created. This is
    due to a few inconsistencies between the create_port code and the
    create_port_bulk code, mostly a result of the use of the Port object in
    the bulk code.

    Change-Id: I3bcd3cec12b1b6f6a568cda4bfeb569f636efb98
    Closes-Bug: #1835209

Changed in neutron:
status: In Progress → Fix Released

Reviewed: https://review.opendev.org/669788
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=aa60d6e83760cee0fccdf3925329858aa3c85903
Submitter: Zuul
Branch: stable/stein

commit aa60d6e83760cee0fccdf3925329858aa3c85903
Author: Nate Johnston <email address hidden>
Date: Sat Jun 15 10:14:58 2019 -0400

    Fix bulk port binding

    Bulk ports were not binding correctly when they were created. This is
    due to a few inconsistencies between the create_port code and the
    create_port_bulk code, mostly a result of the use of the Port object in
    the bulk code.

    Change-Id: I3bcd3cec12b1b6f6a568cda4bfeb569f636efb98
    Closes-Bug: #1835209
    (cherry picked from commit d0c172afa6ea38e94563afb4994471420b27cddf)

tags: added: in-stable-stein
tags: added: neutron-proactive-backport-potential

This issue was fixed in the openstack/neutron 15.0.0.0b1 development milestone.

This issue was fixed in the openstack/neutron 14.0.3 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers