[2.4] Spurious failure for start_commissioning functions

Bug #1759599 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Unassigned

Bug Description

MAAS is sometimes failing in src/maasserver/models/tests/test_node.py:TestNode.test_start_commissioning_sets_options :

roaksoax@rivals:~/project/maas$ ./bin/test.region src/maasserver/models/tests/test_node.py:TestNode.test_start_commissioning_sets_options
pg_ctl: another server might be running; trying to start server anyway
F
======================================================================
FAIL: maasserver.models.tests.test_node.TestNode.test_start_commissioning_sets_options
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  Twisted logs

Traceback (most recent call last):
  File "/home/roaksoax/project/maas/src/maastesting/runtest.py", line 138, in _run_user
    result = function(*args, **kwargs)
  File "/home/roaksoax/.buildout/eggs/testtools-2.2.0-py3.6.egg/testtools/testcase.py", line 719, in _run_test_method
    return self._get_test_method()()
  File "/home/roaksoax/project/maas/src/maasserver/models/tests/test_node.py", line 2702, in test_start_commissioning_sets_options
    self.assertAttributes(node, expected_attrs)
  File "/home/roaksoax/project/maas/src/maastesting/testcase.py", line 242, in assertAttributes
    self.assertThat(tested_object, matcher)
  File "/home/roaksoax/.buildout/eggs/testtools-2.2.0-py3.6.egg/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: Differences: [
False != True: skip_bmc_config
]

-------------------- >> begin captured logging << --------------------
maas.node: info: 3i6GYjXD2y06wiGXWK0j: Status transition from NEW to COMMISSIONING
maas.node: error: 3i6GYjXD2y06wiGXWK0j: Could not start node for commissioning:
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 1 test in 2.688s

================================================================================================
if i re-run the test, it suceeds
================================================================================================

roaksoax@rivals:~/project/maas$ ./bin/test.region src/maasserver/models/tests/test_node.py:TestNode.test_start_commissioning_sets_options
.
----------------------------------------------------------------------
Ran 1 test in 2.204s

Changed in maas:
importance: Undecided → Critical
status: New → Triaged
milestone: none → 2.4.0beta1
Changed in maas:
status: Triaged → 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.