dhcpd.conf not written due to byte size of hosts value in rpc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
High
|
Alexsander de Souza | ||
3.3 |
Won't Fix
|
Medium
|
Unassigned | ||
3.4 |
Won't Fix
|
Medium
|
Unassigned | ||
3.5 |
Fix Released
|
High
|
Alexsander de Souza | ||
3.6 |
Fix Committed
|
High
|
Alexsander de Souza |
Bug Description
I am using version 2.8.7-8611-
MaaS stops being able to write the dhcpd.conf and never starts the dhcpd service.
Taking a look at the python module used by MaaS it appears there is a 64k byte limit.
2022-06-17 16:33:30 maasserver.dhcp: [critical] Error configuring DHCPv4 on rack controller 'maas-server (7gyesb)':
Traceback (most recent call last):
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
timeout, self._conn.
File "/usr/lib/
d = maybeDeferred(func, *args, **kwargs)
--- <exception caught here> ---
File "/usr/lib/
result = f(*args, **kw)
File "/usr/lib/
return co._doCommand(self)
File "/usr/lib/
self.
File "/usr/lib/
command, box, requiresAnswer=
File "/usr/lib/
box.
File "/usr/lib/
proto.
File "/usr/lib/
self.
File "/usr/lib/
raise TooLong(False, True, v, k)
twisted.
Related branches
- Alexsander de Souza: Approve
- MAAS Lander: Approve
-
Diff: 157 lines (+83/-32)3 files modifiedsrc/provisioningserver/rpc/arguments.py (+36/-0)
src/provisioningserver/rpc/tests/test_arguments.py (+0/-32)
src/tests/provisioningserver/rpc/test_arguments.py (+47/-0)
- Anton Troyanov: Approve
- MAAS Lander: Approve
-
Diff: 157 lines (+83/-32)3 files modifiedsrc/provisioningserver/rpc/arguments.py (+36/-0)
src/provisioningserver/rpc/tests/test_arguments.py (+0/-32)
src/tests/provisioningserver/rpc/test_arguments.py (+47/-0)
Changed in maas: | |
milestone: | 3.3.0 → 3.4.0 |
tags: | added: amp dhcp |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.x |
Changed in maas: | |
milestone: | 3.4.x → 3.5.x |
no longer affects: | maas/3.3 |
Hi,
can you share some characteristics of your setup?
1) number of subnets
2) number of hosts
3) are you using DHCP snippets?