Comment 14 for bug 1834637

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-ovn (stable/rocky)

Reviewed: https://review.opendev.org/682605
Committed: https://git.openstack.org/cgit/openstack/networking-ovn/commit/?id=1e2e424f5d90be32edaf701d1871701bf4b5d522
Submitter: Zuul
Branch: stable/rocky

commit 1e2e424f5d90be32edaf701d1871701bf4b5d522
Author: Maciej Józefczyk <email address hidden>
Date: Thu Sep 5 09:29:45 2019 +0000

    Set binding profile directly from OVNTrunkDriver

    Setting binding profile for Trunk subports takes
    time - for 125 subports rally CreateAndListTrunks
    scenario [0] takes about 150 seconds. We need to
    bump up the perfomance because large number of
    subports is widly used in Kuryr deployments.

    To achieve that I changed setting the binding
    profile to be saved directly to the neutron DB.
    Instead calling port_update I update only related
    fields in OVN NorthBound DB rows. That gave performance
    improvement in trunk port creation:

    from 101 sec to 19.7 for 95%ile
    from 99 sec to 14.9 for 50%ile

    The same thing has been done for Trunk deletion.

    [0] https://github.com/openstack/rally-openstack/blob/master/rally_openstack/scenarios/neutron/trunk.py#L37

    Closes-Bug: #1834637

    Conflicts:
        networking_ovn/ml2/trunk_driver.py
        networking_ovn/tests/unit/ml2/test_trunk_driver.py

    Change-Id: I020ba64618b2eb76c627632b0575896e88d1fcf8
    (cherry picked from commit 843200b9ce710d6973c0308b1b976a065efd6ce3)