Init region+rack not working

Hello,

After initializing with region+rack my controller is reported as “Region Controller” only, hence my images status are always "Waiting for rack controller(s) to sync ", I guess as I do not have a rack controller …

“Error:Unable to start the pod discovery process. No rack controllers connected.”

how can I guess this sorted?

Thanks

Hi, could you please provide which version of maas you’re using, exact steps you’ve taken to initialize it, and also if you see errors in /var/snap/maas/common/logs/{regiond,rackd}.log?

Hi ack,

Thanks for the reply, I have installed MAAS 3.0 using snap as described in the installation documentation (https://maas.io/docs/snap/3.0/ui/maas-installation), then used the test db (maas-test-db).

looking at the logs regiond.log doesn’t show any but rackd.log is reporting this:

Blockquote
2021-06-30 09:17:36 -: [critical] Unhandled Error
Traceback (most recent call last):
File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/application/service.py”, line 288, in startService
service.startService()
File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/application/internet.py”, line 275, in startService
self._loopFinished = self._loop.start(self.step, now=True)
File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/internet/task.py”, line 194, in start
self()
File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/internet/task.py”, line 239, in call
d = defer.maybeDeferred(self.f, *self.a, **self.kw)
— —
File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/internet/defer.py”, line 151, in maybeDeferred
result = f(*args, **kw)
File “/snap/maas/15003/lib/python3.8/site-packages/provisioningserver/rackdservices/tftp.py”, line 537, in updateServers
tftp_service.setServiceParent(self)
File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/application/service.py”, line 193, in setServiceParent
self.parent.addService(self)
File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/application/service.py”, line 314, in addService
service.privilegedStartService()
File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/application/internet.py”, line 114, in privilegedStartService
self._port = self._getPort()
File “/snap/maas/15003/lib/python3.8/site-packages/provisioningserver/rackdservices/tftp.py”, line 412, in _getPort
return self._listenUDP(*self.args, **self.kwargs)
File “/snap/maas/15003/lib/python3.8/site-packages/provisioningserver/rackdservices/tftp.py”, line 418, in _listenUDP
p.startListening()
File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/internet/udp.py”, line 178, in startListening
self._bindSocket()
File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/internet/udp.py”, line 198, in _bindSocket
raise error.CannotListenError(self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn’t listen on 192.168.122.1:69: [Errno 98] Address already in use.
2021-06-30 09:17:36 stderr: [error] Traceback (most recent call last):
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/internet/udp.py”, line 196, in _bindSocket
2021-06-30 09:17:36 stderr: [error] skt.bind((self.interface, self.port))
2021-06-30 09:17:36 stderr: [error] OSError: [Errno 98] Address already in use
2021-06-30 09:17:36 stderr: [error]
2021-06-30 09:17:36 stderr: [error] During handling of the above exception, another exception occurred:
2021-06-30 09:17:36 stderr: [error]
2021-06-30 09:17:36 stderr: [error] Traceback (most recent call last):
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/sbin/rackd”, line 8, in
2021-06-30 09:17:36 stderr: [error] run()
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/lib/python3.8/site-packages/provisioningserver/server.py”, line 95, in run
2021-06-30 09:17:36 stderr: [error] runService(“maas-rackd”)
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/lib/python3.8/site-packages/provisioningserver/server.py”, line 90, in runService
2021-06-30 09:17:36 stderr: [error] UnixApplicationRunner(config).run()
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/application/app.py”, line 385, in run
2021-06-30 09:17:36 stderr: [error] self.postApplication()
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/scripts/_twistd_unix.py”, line 254, in postApplication
2021-06-30 09:17:36 stderr: [error] self.startApplication(self.application)
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/scripts/_twistd_unix.py”, line 453, in startApplication
2021-06-30 09:17:36 stderr: [error] app.startApplication(application, not self.config[‘no_save’])
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/application/app.py”, line 690, in startApplication
2021-06-30 09:17:36 stderr: [error] service.IService(application).startService()
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/application/service.py”, line 288, in startService
2021-06-30 09:17:36 stderr: [error] service.startService()
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/application/service.py”, line 288, in startService
2021-06-30 09:17:36 stderr: [error] service.startService()
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/application/service.py”, line 288, in startService
2021-06-30 09:17:36 stderr: [error] service.startService()
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/application/internet.py”, line 120, in startService
2021-06-30 09:17:36 stderr: [error] self._port = self._getPort()
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/lib/python3.8/site-packages/provisioningserver/rackdservices/tftp.py”, line 412, in _getPort
2021-06-30 09:17:36 stderr: [error] return self._listenUDP(*self.args, **self.kwargs)
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/lib/python3.8/site-packages/provisioningserver/rackdservices/tftp.py”, line 418, in _listenUDP
2021-06-30 09:17:36 stderr: [error] p.startListening()
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/internet/udp.py”, line 178, in startListening
2021-06-30 09:17:36 stderr: [error] self._bindSocket()
2021-06-30 09:17:36 stderr: [error] File “/snap/maas/15003/usr/lib/python3/dist-packages/twisted/internet/udp.py”, line 198, in _bindSocket
2021-06-30 09:17:36 stderr: [error] raise error.CannotListenError(self.interface, self.port, le)
2021-06-30 09:17:36 stderr: [error] twisted.internet.error.CannotListenError: Couldn’t listen on 192.168.122.1:69: [Errno 98] Address already in use.
Blockquote

192.168.122.1 is actually the KVM bridge interface used to created the KVM guest instances “virt-install --name guest1-ubuntu --memory 2048 --vcpus 2 --disk size=8 --network=bridge:virbr0 --pxe --os-variant ubuntu20.10” as I followed the “give me an example of MAAS” guide (https://maas.io/docs/snap/3.0/ui/give-me-an-example-of-maas)

Also this is running on a freshly installed Ubuntu 21.04

Best Regards,

Ok, I’v got it I think 69 is TFTP, I installed a tftp server while following these instructions: http://jefflane.org/v2/technology/setting-up-kvm-to-pxe-boot-virtual-machines-from-a-local-tftp-server/

So I guess MAAS has it’s own built in TFTP server

Thanks for pointing in the right direction

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.