Spurious failure in TestIPRangeSavePreventsOverlapping.test__dynamic_range_cannot_overlap_most_ip_types
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Won't Fix
|
High
|
Mike Pontillo |
Bug Description
I was able to reproduce this by looping a test run:
while bin/test.region maasserver.
It fails about 1 time in 10 or 20 at a guess.
Traceback (most recent call last):
File ".../src/
result = function(*args, **kwargs)
File ".../testtools/
return self._get_
File ".../src/
test_
iprange.save()
File ".../testtools/
raise AssertionError(
AssertionError: ValidationError not raised.
Changed in maas: | |
milestone: | none → 2.5.0beta2 |
assignee: | nobody → Mike Pontillo (mpontillo) |
Changed in maas: | |
milestone: | 2.5.0beta2 → none |
Also:
FAIL: maasserver. models. tests.test_ iprange. TestIPRangeSave PreventsOverlap ping.test_ _dynamic_ range_cannot_ overlap_ most_ip_ types ------- ------- ------- ------- ------- ------- ------- ------- ------- testresult. real._StringExc eption: Empty attachments:
-------
Traceback (most recent call last):
testtools.
Twisted logs
Traceback (most recent call last): branch. lCCWfW/ src/maasserver/ models/ tests/test_ iprange. py", line 483, in test__dynamic_ range_cannot_ overlap_ most_ip_ types branch. lCCWfW/ src/maasserver/ models/ cleansave. py", line 28, in save full_clean( ) python3/ dist-packages/ django/ db/models/ base.py" , line 1171, in full_clean (errors) core.exceptions .ValidationErro r: {'type': ['No dynamic range can be created at requested start IP.'], 'start_ip': ['No dynamic range can be created at requested start IP.']}
File "/tmp/tarmac/
iprange.save()
File "/tmp/tarmac/
self.
File "/usr/lib/
raise ValidationError
django.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): branch. lCCWfW/ src/maastesting /runtest. py", line 134, in _run_user ubuntu/ .buildout/ eggs/testtools- 2.2.0-py3. 5.egg/testtools /testcase. py", line 719, in _run_test_method test_method( )() branch. lCCWfW/ src/maasserver/ models/ tests/test_ iprange. py", line 483, in test__dynamic_ range_cannot_ overlap_ most_ip_ types ubuntu/ .buildout/ eggs/testtools- 2.2.0-py3. 5.egg/testtools /testcase. py", line 1032, in __exit__ mismatch. describe( ))
File "/tmp/tarmac/
result = function(*args, **kwargs)
File "/home/
return self._get_
File "/tmp/tarmac/
iprange.save()
File "/home/
raise AssertionError(
AssertionError: "{'type': ['No dynamic range can be created at requested start IP.'], 'start_ip': ['No dynamic range can be created at requested start IP.']}" does not match /.*Requested dynamic range conflicts with an existing IP address or range.*/