Unstable unit test uses subnet broadcast address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Bence Romsics |
Bug Description
This is a low frequency gate failure in unit tests.
Example log:
http://
2019-03-25 12:16:24.333688 | ubuntu-bionic | =======
2019-03-25 12:16:24.333764 | ubuntu-bionic | Failed 1 tests - output below:
2019-03-25 12:16:24.333837 | ubuntu-bionic | =======
2019-03-25 12:16:24.333863 | ubuntu-bionic |
2019-03-25 12:16:24.334052 | ubuntu-bionic | neutron.
2019-03-25 12:16:24.334243 | ubuntu-bionic | -------
2019-03-25 12:16:24.334271 | ubuntu-bionic |
2019-03-25 12:16:24.334326 | ubuntu-bionic | Captured traceback:
2019-03-25 12:16:24.334381 | ubuntu-bionic | ~~~~~~~~~~~~~~~~~~~
2019-03-25 12:16:24.334471 | ubuntu-bionic | b'Traceback (most recent call last):'
2019-03-25 12:16:24.334662 | ubuntu-bionic | b' File "/home/
2019-03-25 12:16:24.334754 | ubuntu-bionic | b' return f(self, *args, **kwargs)'
2019-03-25 12:16:24.335103 | ubuntu-bionic | b' File "/home/
2019-03-25 12:16:24.335243 | ubuntu-bionic | b" response = self._update(
2019-03-25 12:16:24.335490 | ubuntu-bionic | b' File "/home/
2019-03-25 12:16:24.335642 | ubuntu-bionic | b' self.assertEqua
2019-03-25 12:16:24.335921 | ubuntu-bionic | b' File "/home/
2019-03-25 12:16:24.336035 | ubuntu-bionic | b' self.assertThat
2019-03-25 12:16:24.336297 | ubuntu-bionic | b' File "/home/
2019-03-25 12:16:24.336372 | ubuntu-bionic | b' raise mismatch_error'
2019-03-25 12:16:24.336486 | ubuntu-bionic | b'testtools.
2019-03-25 12:16:24.336523 | ubuntu-bionic | b''
2019-03-25 12:16:24.336549 | ubuntu-bionic |
2019-03-25 12:16:24.336599 | ubuntu-bionic | Captured stderr:
2019-03-25 12:16:24.336650 | ubuntu-bionic | ~~~~~~~~~~~~~~~~
2019-03-25 12:16:24.337086 | ubuntu-bionic | b'/home/
2019-03-25 12:16:24.337157 | ubuntu-bionic | b' DeprecationWarn
2019-03-25 12:16:24.337594 | ubuntu-bionic | b'/home/
2019-03-25 12:16:24.337664 | ubuntu-bionic | b' DeprecationWarn
2019-03-25 12:16:24.337701 | ubuntu-bionic | b''
With some extra debug logging added I managed to obtain this error message:
ERROR [neutron.
Reading the unit test source it seems likely that a random IP+1 is occasionally the subnet broadcast address which is invalid as a fixed_ip.
I'm going to upload an attempted fix soon.
Fix proposed to branch: master /review. openstack. org/648172
Review: https:/