MAAS post-inst script can create duplicate lines in named.conf.local

Bug #1720242 reported by Kellen Renshaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Medium
Andres Rodriguez

Bug Description

The sed line in line 8 of debian/maas-dns.postinst can cause creation of a duplicate line in named.conf.local since it doesn't check case. This happened on a 2.0 to 2.2 upgrade.

Bind read the configuration twice and failed to start.

The resulting config in named.conf.local:
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

Include "/etc/bind/maas/named.conf.maas";
include "/etc/bind/maas/named.conf.maas";

####
Deleting one of the lines and restarting Bind works to correct the issue.

Changed in maas:
milestone: none → 2.3.0
importance: Undecided → Medium
status: New → Triaged
Changed in maas:
assignee: nobody → Andres Rodriguez (andreserl)
Changed in maas:
milestone: 2.3.0 → 2.3.x
Revision history for this message
Adam Collard (adam-collard) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

MAAS Team

Changed in maas:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.