Spurious failure in TestPXEConfigAPI.test_pxeconfig_returns_json

Bug #1549331 reported by Gavin Panella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
High
Unassigned

Bug Description

FAIL: maasserver.api.tests.test_pxeconfig.TestPXEConfigAPI.test_pxeconfig_returns_json
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/tmp/tarmac/branch.fexxzr/src/maastesting/runtest.py", line 59, in _run_user
    result = function(*args, **kwargs)
  File "/home/ubuntu/.buildout/eggs/testtools-1.8.1-py3.5.egg/testtools/testcase.py", line 654, in _run_test_method
    return self._get_test_method()()
  File "/tmp/tarmac/branch.fexxzr/src/maasserver/api/tests/test_pxeconfig.py", line 189, in test_pxeconfig_returns_json
    response)
  File "/home/ubuntu/.buildout/eggs/testtools-1.8.1-py3.5.egg/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: Differences: [
<HTTPStatus.OK: 200> != 500
'application/json' != 'text/plain; charset=utf-8'
b'[Errno -3] Temporary failure in name resolution' does not start with b'{'.
'arch' not in '[Errno -3] Temporary failure in name resolution'
]: <django.http.response.HttpResponse object at 0x7f9be4b498d0>

-------------------- >> begin captured logging << --------------------
maasserver: ERROR: Unable to identify boot image for (ubuntu/i386/generic/trusty/commissioning): no RPC connection to rack controller 'VMO9UBkKmSEo5c5qVBXj'
maasserver: ERROR: ################################ Exception: [Errno -3] Temporary failure in name resolution ################################
maasserver: ERROR: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3.5/contextlib.py", line 30, in inner
    return func(*args, **kwds)
  File "/tmp/tarmac/branch.fexxzr/src/maasserver/api/pxeconfig.py", line 324, in pxeconfig
    rack_controller=rack_controller)
  File "/tmp/tarmac/branch.fexxzr/src/maasserver/server_address.py", line 75, in get_maas_facing_server_address
    addresses = addresses.union(resolve_hostname(hostname, 6))
  File "/tmp/tarmac/branch.fexxzr/src/provisioningserver/utils/network.py", line 453, in resolve_hostname
    address_info = getaddrinfo(hostname, port, addr_families[ip_version])
  File "/usr/lib/python3.5/socket.py", line 732, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

--------------------- >> end captured logging << ---------------------

Tags: tests
Changed in maas:
assignee: nobody → LaMont Jones (lamont)
assignee: LaMont Jones (lamont) → nobody
Revision history for this message
Andres Rodriguez (andreserl) wrote :

We believe this is no longer an issue in the latest releases of MAAS. Please upgrade to the latest version of MAAS, and If you believe this issue is still present, please re-open this bug report or file a new one.

Changed in maas:
status: Triaged → Invalid
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.