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]
```
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.
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 cloud.cfg. d/99-disable- network- config. cfg with the following:
addresses: [10.10.10.10/24]
# 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/
# network: {config: disabled}
network:
version: 2
ethernets:
eth0:
dhcp4: true
eth1:
dhcp4: false
root@maas-deb:~# apt-cache madison maas beta1-16214- g.1eeea8524- 0ubuntu1~ 22.04.1 | https:/ /ppa.launchpadc ontent. net/maas/ 3.5-next/ ubuntu jammy/main amd64 Packages
maas | 1:3.5.0~
``` python3/ dist-packages/ maasserver/ dhcp.py" , line 878, in configure_dhcp python3/ dist-packages/ twisted/ internet/ defer.py" , line 857, in _runCallbacks python3/ dist-packages/ provisioningser ver/rpc/ common. py", line 145, in _global_ intercept_ errback raiseException( ) python3/ dist-packages/ twisted/ python/ failure. py", line 475, in raiseException with_traceback( self.tb) ver.rpc. exceptions. CannotConfigure DHCP: DHCPv4 server failed to restart: Service 'maas-dhcpd' failed to restart. Its current state is 'SERVICE_STATE.OFF' and 'dead'. rack_controller : [critical] Failed configuring DHCP on rack controller 'id:1'. python3/ dist-packages/ twisted/ internet/ defer.py" , line 1750, in gotResult context. run(_inlineCall backs, r, gen, status) python3/ dist-packages/ twisted/ internet/ defer.py" , line 1740, in _inlineCallbacks deferred. errback( ) python3/ dist-packages/ twisted/ internet/ defer.py" , line 700, in errback allbacks( fail) python3/ dist-packages/ twisted/ internet/ defer.py" , line 763, in _startRunCallbacks cks() python3/ dist-packages/ twisted/ internet/ defer.py" , line 857, in _runCallbacks python3/ dist-packages/ maasserver/ rack_controller .py", line 281, in <lambda> NoConnectionsAv ailable) ) python3/ dist-packages/ twisted/ python/ failure. py", line 451, in trap tion() python3/ dist-packages/ twisted/ python/ failure. py", line 475, in raiseException with_traceback( self.tb) python3/ dist-packages/ twisted/ internet/ defer.py" , line 857, in _runCallbacks python3/ dist-packages/ maasserver/ rack_controller .py", line 300, in unwatch_ if_does_ not_exist RackController. DoesNotExist) python3/ dist-packages/ twisted/ python/ failure. py", line 451, in trap tion() python3/ dist-packages/ twisted/ python/ failure. py", line 475, in raiseException with_traceback( self.tb) python3/ dist-packages/ twisted/ internet/ defer.py" , line 1660, in _inlineCallbacks context. run(gen. send, result) python3/ dist-packages/ maasserver/ dhcp.py" , line 960, in configure_dhcp python3/ dist-packages/ maasserver/ dhcp.py" , line 878, in configure_dhcp ver.rpc. exceptions. CannotConfigure DHCP: 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]: 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/
Mar 05 20:47:43 maas-deb regiond[611]: yield client(
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
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/
Mar 05 20:47:43 maas-deb regiond[611]: failure.
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
Mar 05 20:47:43 maas-deb regiond[611]: raise self.value.
Mar 05 20:47:43 maas-deb regiond[611]: provisioningser
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.
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/
Mar 05 20:47:43 maas-deb regiond[611]: current_
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
Mar 05 20:47:43 maas-deb regiond[611]: status.
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
Mar 05 20:47:43 maas-deb regiond[611]: self._startRunC
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
Mar 05 20:47:43 maas-deb regiond[611]: self._runCallba
Mar 05 20:47:43 maas-deb regiond[611]: --- <exception caught here> ---
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
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/
Mar 05 20:47:43 maas-deb regiond[611]: d.addErrback(lambda f: f.trap(
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
Mar 05 20:47:43 maas-deb regiond[611]: self.raiseExcep
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
Mar 05 20:47:43 maas-deb regiond[611]: raise self.value.
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
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/
Mar 05 20:47:43 maas-deb regiond[611]: f.trap(
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
Mar 05 20:47:43 maas-deb regiond[611]: self.raiseExcep
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
Mar 05 20:47:43 maas-deb regiond[611]: raise self.value.
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
Mar 05 20:47:43 maas-deb regiond[611]: result = current_
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
Mar 05 20:47:43 maas-deb regiond[611]: raise ipv4_exc
Mar 05 20:47:43 maas-deb regiond[611]: File "/usr/lib/
Mar 05 20:47:43 maas-deb regiond[611]: yield client(
Mar 05 20:47:43 maas-deb regiond[611]: provisioningser
```