Test failure: “One or more services are registered” etc.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Gavin Panella |
Bug Description
When running a full ./bin/test.maas test, I get this failure:
ERROR: maasserver.
-------
_StringException: Traceback (most recent call last):
File "/usr/lib/
return self._cleanups(
File "/usr/lib/
reraise(
File "/usr/lib/
cleanup(*args, **kwargs)
File "maas/src/
% ', '.join(service.name for service in services))
RuntimeError: One or more services are registered; this fixture cannot make a reasonable decision about what to do next.
The services in question turn out to be rpc, rpc-advertise, and nonce-cleanup. If I make the code go into pdb at the point where it is about to raise the exception, and I look into loop.services interactively, I get a MultiService object representing an empty list of services. So presumably this is a race that will fix itself given time.
This happens both on my i386-installed laptop and my amd64-installed desktop, both running 14.04.
Related branches
- Gavin Panella (community): Approve
- Julian Edwards (community): Approve
-
Diff: 19 lines (+5/-2)1 file modifiedsrc/maasserver/testing/eventloop.py (+5/-2)
- Raphaël Badin (community): Approve
-
Diff: 143 lines (+108/-2)3 files modifiedsrc/maasserver/tests/test_eventloop.py (+1/-1)
src/maastesting/crochet.py (+102/-0)
src/maastesting/testcase.py (+5/-1)
Changed in maas: | |
assignee: | nobody → Gavin Panella (allenap) |
status: | Triaged → In Progress |
description: | updated |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | none → 1.7.0 |
Changed in maas: | |
status: | Fix Committed → Fix Released |