[lnst trac] #11: Race in NetTestController.__prepare_device()

lnst trac at fedorahosted.org
Tue Aug 21 12:22:18 UTC 2012


#11: Race in NetTestController.__prepare_device()
------------------------+-----------------------
 Reporter:  rpazdera    |       Owner:  rpazdera
     Type:  defect      |      Status:  new
 Priority:  critical    |   Milestone:
Component:  component1  |     Version:
 Keywords:              |  Blocked By:
 Blocking:              |
------------------------+-----------------------
 There's a race in this method of NetTestController class. Sometimes
 multiple devices with a same MAC address can be accepted by LNST.

 It can happen if you try to create a device with MAC that already exist on
 the target domain. If the interface addition is somehow delayed (because
 of scheduling for instance), the wait_for() function will pass correctly.
 It will find the already existing device, while the freshly created
 doesn't exist yet.

 The correct behavior would be to recognize this and fail because of a
 hwaddr collision between two interfaces.

 I will look at this and send a patch asap.

-- 
Ticket URL: <https://fedorahosted.org/lnst/ticket/11>
lnst <http://example.org/>
My example project


More information about the LNST-developers mailing list