[CI] test_create_dynamic_range sometimes fails in CI

Bug #1593219 reported by Brendan Donegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Brendan Donegan

Bug Description

Every so often we're seeing test_create_dynamic_range fail with:

testtools.testresult.real._StringException: Empty attachments:
  stderr for maas maas ['ipranges', 'create', 'type=dynamic', 'start_ip=10.245.136.10', 'end_ip=10.245.136.200']

retcode for maas maas ['ipranges', 'create', 'type=dynamic', 'start_ip=10.245.136.10', 'end_ip=10.245.136.200']: {{{2}}}
stdout for maas maas ['ipranges', 'create', 'type=dynamic', 'start_ip=10.245.136.10', 'end_ip=10.245.136.200']: {{{{"subnet": ["This field is required."]}}}}

Traceback (most recent call last):
  File "/tmp/autopkgtest.9UO1rq/build.KY6/real-tree/debian/tests/maas-integration.py", line 604, in test_create_dynamic_range
    self.assertThat(output, Contains('"cidr": "%s"' % REGION_DHCP_CONFIG['cidr']))
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: '"cidr": "10.245.136.0/21"' not in '{"subnet": ["This field is required."]}'

It's only occurring every dozen builds or so, so it's not a huge pain at the moment, but we should address it if we can.

Changed in maas:
status: New → Triaged
assignee: nobody → Brendan Donegan (brendan-donegan)
importance: Undecided → Medium
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

As per conversation on IRC, we should be able to address this be reinstating the test_rack_connected test (it's currently skipped) and modifying it to check the status of the rackd service on the rack controller. Example code:

>>> js = json.loads(rack_controllers_output)
>>> for service in js[0]['service_set']:
... if service.get('name','') == 'rackd':
... print(service['status'])

Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.