← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1650615] Re: objects: unittest may fail due to objects using same integer primary key

 

Reviewed:  https://review.openstack.org/411897
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=02fa4a1fbfbbb843a02c9d1aeb45c250373d937c
Submitter: Jenkins
Branch:    master

commit 02fa4a1fbfbbb843a02c9d1aeb45c250373d937c
Author: Kevin Benton <kevin@xxxxxxxxxx>
Date:   Fri Dec 16 08:24:51 2016 -0800

    Ensure random object unique constraints aren't violated
    
    The unit test framework for objects generates random values
    for the objects it creates. We need to pay attention to
    previously generated values to avoid using the same value
    for data models that have unique constrains.
    
    Closes-Bug: #1650615
    Change-Id: I0c54b0d82b8c15f2740cce5a850c8fa50acba536


** Changed in: neutron
       Status: In Progress => Fix Released

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

Title:
  objects: unittest may fail due to objects using same integer primary
  key

Status in neutron:
  Fix Released

Bug description:
  Data are randomly generated in DB unittests for objects. Some objects
  use integer type as primary key, that is uniquely constrained in
  database. Integer data are randomly generated from 1000 items so it
  may non-deterministically happen, that two objects obtain same integer
  number.

  example of failure: http://logs.openstack.org/17/385617/29/gate/gate-
  neutron-python35/720352f/console.html

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


References