DHCP config doesn't get written unless an inhuman combination of scripts is run
Bug #1044229 reported by
Julian Edwards
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Julian Edwards | ||
maas (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When packaging installs maas-dhcp it will run "maas config-master-dhcp" which also sets up the master nodegroup. This will also cause a task to run that generates the dhcpd.conf if the enable_dhcp flag is set.
Problem is, if the flag is not set, then the config is not written and the admin has to either run the script again or run a different script to give sample config output and restart the dhcpd manually.
The solution is to implicitly set the enable_dhcp flag if dhcp parameters are supplied - it's fairly certain that the user wants to set up DHCP.
Related branches
lp://staging/~julian-edwards/maas/enable_dhcp_when_setting_up_params
- Jeroen T. Vermeulen (community): Approve
-
Diff: 55 lines (+8/-20)2 files modifiedsrc/maasserver/management/commands/config_master_dhcp.py (+3/-3)
src/maasserver/tests/test_commands_config_master_dhcp.py (+5/-17)
lp://staging/~andreserl/maas/packaging_bzr957
- Andres Rodriguez (community): Approve
-
Diff: 136 lines (+54/-29)5 files modifieddebian/changelog (+2/-0)
debian/maas-dhcp.config (+13/-8)
debian/maas-dhcp.postinst (+22/-19)
debian/maas-dhcp.templates (+8/-0)
debian/maas.prerm (+9/-2)
lp://staging/~andreserl/maas/packaging_bzr971
- Andres Rodriguez (community): Approve
-
Diff: 73 lines (+25/-3)4 files modifieddebian/changelog (+4/-2)
debian/maas-dhcp.config (+2/-0)
debian/maas-dhcp.postinst (+6/-1)
debian/maas-dhcp.templates (+13/-0)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Critical |
description: | updated |
Changed in maas: | |
assignee: | nobody → Julian Edwards (julian-edwards) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Packaging is broken here since it installs maas-dhcp when installing maas. maas-dhcp should be optional.