It was reported that when doing some changes to MAAS model, it causes the rack controller to disconnect. Statement:
"just changing the fabrics the various VLANs and subnets belong to seems to set it off"
Causes:
2017-07-11 16:20:57 twisted.internet.protocol.Factory: [info] RegionServer connection established (HOST:IPv6Address(TCP, '::ffff:172.26.10.11', 5252) PEER:IPv6Address(TCP, '::ffff:172.26.10.11', 43936)) [11/2555]
2017-07-11 16:20:57 twisted.internet.protocol.Factory: [info] RegionServer connection established (HOST:IPv6Address(TCP, '::ffff:172.26.17.11', 5251) PEER:IPv6Address(TCP, '::ffff:172.26.17.11', 46664))
2017-07-11 16:20:57 twisted.internet.protocol.Factory: [info] RegionServer connection established (HOST:IPv6Address(TCP, '::ffff:172.26.16.11', 5250) PEER:IPv6Address(TCP, '::ffff:172.26.16.11', 41964))
2017-07-11 16:20:57 maasserver.rpc.regionservice: [info] Rack controller authenticated from '::ffff:172.26.16.11:38184'.
2017-07-11 16:20:57 maasserver.rpc.regionservice: [info] Rack controller authenticated from '::ffff:172.26.10.11:43936'.
2017-07-11 16:20:57 maasserver.rpc.regionservice: [info] Rack controller authenticated from '::ffff:172.26.16.11:41964'.
2017-07-11 16:20:57 maasserver.rpc.regionservice: [info] Rack controller authenticated from '::ffff:172.26.17.11:46664'.
2017-07-11 16:22:45 regiond: [info] 172.26.11.11 GET /MAAS/rpc/ HTTP/1.0 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
2017-07-11 16:22:45 twisted.internet.protocol.Factory: [info] RegionServer connection established (HOST:IPv6Address(TCP, '::ffff:172.26.16.11', 5253) PEER:IPv6Address(TCP, '::ffff:172.26.16.11', 38232))
2017-07-11 16:22:45 twisted.internet.protocol.Factory: [info] RegionServer connection established (HOST:IPv6Address(TCP, '::ffff:172.26.10.11', 5252) PEER:IPv6Address(TCP, '::ffff:172.26.10.11', 43982))
2017-07-11 16:22:45 twisted.internet.protocol.Factory: [info] RegionServer connection established (HOST:IPv6Address(TCP, '::ffff:172.26.17.11', 5251) PEER:IPv6Address(TCP, '::ffff:172.26.17.11', 46710))
2017-07-11 16:22:45 twisted.internet.protocol.Factory: [info] RegionServer connection established (HOST:IPv6Address(TCP, '::ffff:172.26.16.11', 5250) PEER:IPv6Address(TCP, '::ffff:172.26.16.11', 42006))
2017-07-11 16:23:16 maasserver.rpc.regionservice: [critical] Failed to register rack controller 'ns66rw' into the database. Connection will be dropped.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 588, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1184, in gotResult
_inlineCallbacks(r, g, deferred)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
--- <exception caught here> ---
File "/usr/lib/python3/dist-packages/maasserver/rpc/regionservice.py", line 613, in register
process, rack_controller, self.host)
File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 246, in inContext
result = inContext.theWork()
File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 262, in <lambda>
inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 875, in callInContext
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 232, in wrapper
result = func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 686, in call_within_transaction
return func_outside_txn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 504, in retrier
return func(*args, **kwargs)
File "/usr/lib/python3.5/contextlib.py", line 30, in inner
return func(*args, **kwds)
File "/usr/lib/python3/dist-packages/maasserver/rpc/regionservice.py", line 1289, in registerConnection
process=process, address=host.host, port=host.port)
File "/usr/lib/python3/dist-packages/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/usr/lib/python3/dist-packages/django/db/models/query.py", line 334, in get
self.model._meta.object_name
maasserver.models.regioncontrollerprocessendpoint.DoesNotExist: RegionControllerProcessEndpoint matching query does not exist.
2017-07-11 16:23:16 maasserver.rpc.regionservice: [info] Rack controller 'ns66rw' disconnected.
2017-07-11 16:23:16 RegionServer,0,::ffff:172.26.16.11: [info] RegionServer connection lost (HOST:IPv6Address(TCP, '::ffff:172.26.16.11', 5253) PEER:IPv6Address(TCP, '::ffff:172.26.16.11', 37692))
Can you provide more detail on the steps to reproduce this? Like the exact steps?