2024-03-14 08:42:17 |
Jacopo Rota |
description |
Running MAAS 3.5.0-beta1 in a vanilla LXD container with 2 interfaces.
eth1 is controlled by MAAS, and as soon as I enable DHCP via UI DHCP service goes into a crash-loop.
root@maas-deb:~# cat /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
ethernets:
eth0:
dhcp4: true
eth1:
dhcp4: false
addresses: [10.10.10.10/24]
root@maas-deb:~# apt-cache madison maas
maas | 1:3.5.0~beta1-16214-g.1eeea8524-0ubuntu1~22.04.1 | https://ppa.launchpadcontent.net/maas/3.5-next/ubuntu jammy/main amd64 Packages
```
Mar 05 20:47:43 maas-deb regiond[611]: maasserver.dhcp: [critical] Error configuring DHCPv4 on rack controller 'maas-deb (xgbk8d)': DHCPv4 server failed to restart: Service 'maas-dhcpd' failed to restart. Its current state is 'SERVICE_STATE.OFF' and 'dead'.
Mar 05 20:47:43 maas-deb regiond[611]: Traceback (most recent call last):
Mar 05 20:47:43 maas-deb regiond[611]: --- <exception caught here> ---
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/maasserver/dhcp.py", line 878, in configure_dhcp
Mar 05 20:47:43 maas-deb regiond[611]: yield client(
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 857, in _runCallbacks
Mar 05 20:47:43 maas-deb regiond[611]: current.result = callback( # type: ignore[misc]
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/provisioningserver/rpc/common.py", line 145, in _global_intercept_errback
Mar 05 20:47:43 maas-deb regiond[611]: failure.raiseException()
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException
Mar 05 20:47:43 maas-deb regiond[611]: raise self.value.with_traceback(self.tb)
Mar 05 20:47:43 maas-deb regiond[611]: provisioningserver.rpc.exceptions.CannotConfigureDHCP: DHCPv4 server failed to restart: Service 'maas-dhcpd' failed to restart. Its current state is 'SERVICE_STATE.OFF' and 'dead'.
Mar 05 20:47:43 maas-deb regiond[611]:
Mar 05 20:47:43 maas-deb regiond[611]: maasserver.dhcp: [info] Successfully configured DHCPv6 on rack controller 'maas-deb (xgbk8d)'.
Mar 05 20:47:43 maas-deb regiond[611]: maasserver.rack_controller: [critical] Failed configuring DHCP on rack controller 'id:1'.
Mar 05 20:47:43 maas-deb regiond[611]: Traceback (most recent call last):
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1750, in gotResult
Mar 05 20:47:43 maas-deb regiond[611]: current_context.run(_inlineCallbacks, r, gen, status)
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1740, in _inlineCallbacks
Mar 05 20:47:43 maas-deb regiond[611]: status.deferred.errback()
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 700, in errback
Mar 05 20:47:43 maas-deb regiond[611]: self._startRunCallbacks(fail)
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 763, in _startRunCallbacks
Mar 05 20:47:43 maas-deb regiond[611]: self._runCallbacks()
Mar 05 20:47:43 maas-deb regiond[611]: --- <exception caught here> ---
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 857, in _runCallbacks
Mar 05 20:47:43 maas-deb regiond[611]: current.result = callback( # type: ignore[misc]
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/maasserver/rack_controller.py", line 281, in <lambda>
Mar 05 20:47:43 maas-deb regiond[611]: d.addErrback(lambda f: f.trap(NoConnectionsAvailable))
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 451, in trap
Mar 05 20:47:43 maas-deb regiond[611]: self.raiseException()
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException
Mar 05 20:47:43 maas-deb regiond[611]: raise self.value.with_traceback(self.tb)
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 857, in _runCallbacks
Mar 05 20:47:43 maas-deb regiond[611]: current.result = callback( # type: ignore[misc]
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/maasserver/rack_controller.py", line 300, in unwatch_if_does_not_exist
Mar 05 20:47:43 maas-deb regiond[611]: f.trap(RackController.DoesNotExist)
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 451, in trap
Mar 05 20:47:43 maas-deb regiond[611]: self.raiseException()
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException
Mar 05 20:47:43 maas-deb regiond[611]: raise self.value.with_traceback(self.tb)
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
Mar 05 20:47:43 maas-deb regiond[611]: result = current_context.run(gen.send, result)
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/maasserver/dhcp.py", line 960, in configure_dhcp
Mar 05 20:47:43 maas-deb regiond[611]: raise ipv4_exc
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/maasserver/dhcp.py", line 878, in configure_dhcp
Mar 05 20:47:43 maas-deb regiond[611]: yield client(
Mar 05 20:47:43 maas-deb regiond[611]: provisioningserver.rpc.exceptions.CannotConfigureDHCP: DHCPv4 server failed to restart: Service 'maas-dhcpd' failed to restart. Its current state is 'SERVICE_STATE.OFF' and 'dead'.
``` |
Running MAAS 3.5.0-beta1 in a vanilla LXD container with 2 interfaces.
Steps to reproduce:
1) create a container with 1 interface, start it and install maas.
2) stop the container and add another interface.
3) start the container and configure the interface and restart maas
4) BUM
eth1 is controlled by MAAS, and as soon as I enable DHCP via UI DHCP service goes into a crash-loop.
root@maas-deb:~# cat /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
ethernets:
eth0:
dhcp4: true
eth1:
dhcp4: false
addresses: [10.10.10.10/24]
root@maas-deb:~# apt-cache madison maas
maas | 1:3.5.0~beta1-16214-g.1eeea8524-0ubuntu1~22.04.1 | https://ppa.launchpadcontent.net/maas/3.5-next/ubuntu jammy/main amd64 Packages
```
Mar 05 20:47:43 maas-deb regiond[611]: maasserver.dhcp: [critical] Error configuring DHCPv4 on rack controller 'maas-deb (xgbk8d)': DHCPv4 server failed to restart: Service 'maas-dhcpd' failed to restart. Its current state is 'SERVICE_STATE.OFF' and 'dead'.
Mar 05 20:47:43 maas-deb regiond[611]: Traceback (most recent call last):
Mar 05 20:47:43 maas-deb regiond[611]: --- <exception caught here> ---
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/maasserver/dhcp.py", line 878, in configure_dhcp
Mar 05 20:47:43 maas-deb regiond[611]: yield client(
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 857, in _runCallbacks
Mar 05 20:47:43 maas-deb regiond[611]: current.result = callback( # type: ignore[misc]
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/provisioningserver/rpc/common.py", line 145, in _global_intercept_errback
Mar 05 20:47:43 maas-deb regiond[611]: failure.raiseException()
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException
Mar 05 20:47:43 maas-deb regiond[611]: raise self.value.with_traceback(self.tb)
Mar 05 20:47:43 maas-deb regiond[611]: provisioningserver.rpc.exceptions.CannotConfigureDHCP: DHCPv4 server failed to restart: Service 'maas-dhcpd' failed to restart. Its current state is 'SERVICE_STATE.OFF' and 'dead'.
Mar 05 20:47:43 maas-deb regiond[611]:
Mar 05 20:47:43 maas-deb regiond[611]: maasserver.dhcp: [info] Successfully configured DHCPv6 on rack controller 'maas-deb (xgbk8d)'.
Mar 05 20:47:43 maas-deb regiond[611]: maasserver.rack_controller: [critical] Failed configuring DHCP on rack controller 'id:1'.
Mar 05 20:47:43 maas-deb regiond[611]: Traceback (most recent call last):
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1750, in gotResult
Mar 05 20:47:43 maas-deb regiond[611]: current_context.run(_inlineCallbacks, r, gen, status)
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1740, in _inlineCallbacks
Mar 05 20:47:43 maas-deb regiond[611]: status.deferred.errback()
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 700, in errback
Mar 05 20:47:43 maas-deb regiond[611]: self._startRunCallbacks(fail)
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 763, in _startRunCallbacks
Mar 05 20:47:43 maas-deb regiond[611]: self._runCallbacks()
Mar 05 20:47:43 maas-deb regiond[611]: --- <exception caught here> ---
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 857, in _runCallbacks
Mar 05 20:47:43 maas-deb regiond[611]: current.result = callback( # type: ignore[misc]
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/maasserver/rack_controller.py", line 281, in <lambda>
Mar 05 20:47:43 maas-deb regiond[611]: d.addErrback(lambda f: f.trap(NoConnectionsAvailable))
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 451, in trap
Mar 05 20:47:43 maas-deb regiond[611]: self.raiseException()
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException
Mar 05 20:47:43 maas-deb regiond[611]: raise self.value.with_traceback(self.tb)
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 857, in _runCallbacks
Mar 05 20:47:43 maas-deb regiond[611]: current.result = callback( # type: ignore[misc]
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/maasserver/rack_controller.py", line 300, in unwatch_if_does_not_exist
Mar 05 20:47:43 maas-deb regiond[611]: f.trap(RackController.DoesNotExist)
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 451, in trap
Mar 05 20:47:43 maas-deb regiond[611]: self.raiseException()
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException
Mar 05 20:47:43 maas-deb regiond[611]: raise self.value.with_traceback(self.tb)
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
Mar 05 20:47:43 maas-deb regiond[611]: result = current_context.run(gen.send, result)
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/maasserver/dhcp.py", line 960, in configure_dhcp
Mar 05 20:47:43 maas-deb regiond[611]: raise ipv4_exc
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/python3/dist-packages/maasserver/dhcp.py", line 878, in configure_dhcp
Mar 05 20:47:43 maas-deb regiond[611]: yield client(
Mar 05 20:47:43 maas-deb regiond[611]: provisioningserver.rpc.exceptions.CannotConfigureDHCP: DHCPv4 server failed to restart: Service 'maas-dhcpd' failed to restart. Its current state is 'SERVICE_STATE.OFF' and 'dead'.
``` |
|