The DNS configuration is not created if maas-dns is installed after the DNS config has been set up.
Bug #1085865 reported by
Raphaël Badin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Raphaël Badin | ||
1.2 |
Fix Released
|
High
|
Julian Edwards |
Bug Description
Consider the following scenario:
- set up MAAS to manage a DNS server
- install the package maas-dns
Then the DNS configuration is not written because changing the DNS config (in the UI or using the API) in MAAS triggers the actual config to be written only if maas-dns is installed. If one installs the package before setting up the config, then the configuration is written all right.
The fix for this should be twofold:
- add a new django command 'write_dns_config' which will write the DNS configuration
- run that command in the postinst script of the maas-dns package
Related branches
lp:~rvb/maas/write_dns_config-command
- Jeroen T. Vermeulen (community): Approve
-
Diff: 108 lines (+87/-1)3 files modifiedsrc/maasserver/management/commands/set_up_dns.py (+1/-1)
src/maasserver/management/commands/write_dns_config.py (+34/-0)
src/maasserver/tests/test_commands_write_dns_config.py (+52/-0)
lp:~julian-edwards/maas/backport-r1303
- Julian Edwards (community): Approve
-
Diff: 108 lines (+87/-1)3 files modifiedsrc/maasserver/management/commands/set_up_dns.py (+1/-1)
src/maasserver/management/commands/write_dns_config.py (+34/-0)
src/maasserver/tests/test_commands_write_dns_config.py (+52/-0)
lp:~rvb/maas/packaging.bug-1085865
- Julian Edwards (community): Approve
-
Diff: 25 lines (+4/-0)2 files modifieddebian/changelog (+2/-0)
debian/maas-dns.postinst (+2/-0)
lp:~rvb/maas/packaging.precise.sru-bug-1085865
- Gavin Panella (community): Approve
-
Diff: 34 lines (+6/-1)2 files modifieddebian/changelog (+4/-1)
debian/maas-dns.postinst (+2/-0)
lp:~rvb/maas/packaging.quantal-bug-1085865
- Gavin Panella (community): Approve
-
Diff: 34 lines (+6/-1)2 files modifieddebian/changelog (+4/-1)
debian/maas-dns.postinst (+2/-0)
Changed in maas: | |
assignee: | nobody → Raphaël Badin (rvb) |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.