← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1700351] [NEW] port_update_postcommit doesn't see latest version of object

 

Public bug reported:

Dragonflow's ML2 mechanism driver implements port_update_postcommit, and
saves the port object (after translation) to its distributed database.

In Dragonflow's tests [1], this object is compared with the object in
the Neutron db (specifically the revision_number, which is translated to
version on the Dragonflow object)

Currently, this test fails, since the versions are different, even
though there were no additional modifications to the port.

[1]
https://github.com/openstack/dragonflow/blob/18b89831532e4a5837e5cb61480f275f03d9d363/dragonflow/tests/unit/test_mech_driver.py#L374

** Affects: neutron
     Importance: Undecided
     Assignee: Omer Anson (omer-anson)
         Status: In Progress

** Changed in: neutron
     Assignee: (unassigned) => Omer Anson (omer-anson)

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

Title:
  port_update_postcommit doesn't see latest version of object

Status in neutron:
  In Progress

Bug description:
  Dragonflow's ML2 mechanism driver implements port_update_postcommit,
  and saves the port object (after translation) to its distributed
  database.

  In Dragonflow's tests [1], this object is compared with the object in
  the Neutron db (specifically the revision_number, which is translated
  to version on the Dragonflow object)

  Currently, this test fails, since the versions are different, even
  though there were no additional modifications to the port.

  [1]
  https://github.com/openstack/dragonflow/blob/18b89831532e4a5837e5cb61480f275f03d9d363/dragonflow/tests/unit/test_mech_driver.py#L374

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