rackd fails setup because maasserver.models.node.DoesNotExist: RegionController matching query does not exist.

Bug #1721302 reported by Greg Lutostanski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
New
Undecided
Unassigned

Bug Description

version: maas_2.2.3-6114-g672ff26-0ubuntu1~16.04.1

From rackd.log:
2017-10-04 13:10:17 provisioningserver.rpc.clusterservice: [info] Rack controller 'artkwb' registered (via infra1:pid=16947).
2017-10-04 13:10:26 provisioningserver.rackdservices.dhcp_probe_service: [info] External DHCP probe complete.
2017-10-04 13:10:41 provisioningserver.utils.services: [critical] Failed to update and/or record network interface configuration: (b'UNHANDLED', 'Unknown Error [infra1:pid=16944:cmd=RequestRackRefresh:ask=5]')

Traceback (most recent call last):
Failure: twisted.protocols.amp.UnhandledCommand: (b'UNHANDLED', 'Unknown Error [infra1:pid=16944:cmd=RequestRackRefresh:ask=5]')

From syslog:
Oct 4 13:10:08 infra1 sh[16936]: 2017-10-04 13:10:08 maasserver.regiondservices.active_discovery: [info] Active network discovery: Discovery interval set to 10800 seconds.
Oct 4 13:10:08 infra1 sh[16936]: 2017-10-04 13:10:08 maasserver.regiondservices.active_discovery: [info] Active network discovery: Active scanning is not enabled on any subnet. Skipping periodic scan.
Oct 4 13:10:08 infra1 sh[16936]: 2017-10-04 13:10:08 twisted.internet.defer: [critical] Unhandled error in Deferred:
Oct 4 13:10:08 infra1 sh[16936]: 2017-10-04 13:10:08 twisted.internet.defer: [critical]
Oct 4 13:10:08 infra1 sh[16936]: Traceback (most recent call last):
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 434, in errback
Oct 4 13:10:08 infra1 sh[16936]: self._startRunCallbacks(fail)
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks
Oct 4 13:10:08 infra1 sh[16936]: self._runCallbacks()
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 588, in _runCallbacks
Oct 4 13:10:08 infra1 sh[16936]: current.result = callback(current.result, *args, **kw)
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1184, in gotResult
Oct 4 13:10:08 infra1 sh[16936]: _inlineCallbacks(r, g, deferred)
Oct 4 13:10:08 infra1 sh[16936]: --- <exception caught here> ---
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
Oct 4 13:10:08 infra1 sh[16936]: result = result.throwExceptionIntoGenerator(g)
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
Oct 4 13:10:08 infra1 sh[16936]: return g.throw(self.type, self.value, self.tb)
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/maasserver/regiondservices/reverse_dns.py", line 42, in startService
Oct 4 13:10:08 infra1 sh[16936]: RegionController.objects.get_running_controller)
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 246, in inContext
Oct 4 13:10:08 infra1 sh[16936]: result = inContext.theWork()
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 262, in <lambda>
Oct 4 13:10:08 infra1 sh[16936]: inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in callWithContext
Oct 4 13:10:08 infra1 sh[16936]: return self.currentContext().callWithContext(ctx, func, *args, **kw)
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in callWithContext
Oct 4 13:10:08 infra1 sh[16936]: return func(*args,**kw)
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 875, in callInContext
Oct 4 13:10:08 infra1 sh[16936]: return func(*args, **kwargs)
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 232, in wrapper
Oct 4 13:10:08 infra1 sh[16936]: result = func(*args, **kwargs)
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/maasserver/models/node.py", line 648, in get_running_controller
Oct 4 13:10:08 infra1 sh[16936]: return self.get(system_id=get_maas_id())
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/django/db/models/manager.py", line 127, in manager_method
Oct 4 13:10:08 infra1 sh[16936]: return getattr(self.get_queryset(), name)(*args, **kwargs)
Oct 4 13:10:08 infra1 sh[16936]: File "/usr/lib/python3/dist-packages/django/db/models/query.py", line 334, in get
Oct 4 13:10:08 infra1 sh[16936]: self.model._meta.object_name
Oct 4 13:10:08 infra1 sh[16936]: maasserver.models.node.DoesNotExist: RegionController matching query does not exist.
Oct 4 13:10:08 infra1 sh[16936]: 2017-10-04 13:10:08 maasserver.listener: [info] Listening for database notifications.
Oct 4 13:10:08 infra1 named[16888]: network unreachable resolving 'E.ROOT-SERVERS.NET/AAAA/IN': 2001:7fe::53#53

logs attached (check 10.245.208.30 subdir).

Tags: cdo-qa
Revision history for this message
Greg Lutostanski (lutostag) wrote :
tags: added: cdoqa
tags: added: cdo-qa
removed: cdoqa
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.