maas-dns failed to install completely on Trusty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Undecided
|
Unassigned | ||
maas (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Installed maas packages on a fresh trusty install like so:
$ sudo apt-get install maas maas-region-
Installation proceeded successfully until maas-dns. maas-dns errored out:
Setting up maas (1.4+bzr1789+
Processing triggers for libc-bin ...
Errors were encountered while processing:
maas-dns
E: Sub-process /usr/bin/dpkg returned an error code (1)
After apt-get exited, I re-ran the comand and this time the configuration of maas-dns seems to have successfully completed and exited, but there was a failure when trying to restart bind9:
bladernr@
[sudo] password for bladernr:
Reading package lists... Done
Building dependency tree
Reading state information... Done
maas is already the newest version.
maas-cluster-
maas-dhcp is already the newest version.
maas-dns is already the newest version.
maas-region-
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up maas-dns (1.4+bzr1789+
* Stopping domain name service... bind9 waiting for pid 22203 to die
* Starting domain name service... bind9 [fail]
invoke-rc.d: initscript bind9, action "restart" failed.
Looking in the apt term.log, I noticed this traceback the first time I tried installing maas-dns:
Setting up maas-dns (1.4+bzr1789+
Traceback (most recent call last):
File "/usr/bin/
management.
File "/usr/lib/
utility.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
output = self.handle(*args, **options)
File "/usr/lib/
upstream_dns = Config.
File "/usr/lib/
return self.get(
File "/usr/lib/
return self.get_
File "/usr/lib/
num = len(clone)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
for row in compiler.
File "/usr/lib/
for rows in self.execute_
File "/usr/lib/
cursor = self.connection
File "/usr/lib/
cursor = util.CursorWrap
File "/usr/lib/
self.
File "/usr/lib/
self.connect()
File "/usr/lib/
six.
File "/usr/lib/
self.connect()
File "/usr/lib/
self.connection = self.get_
File "/usr/lib/
return Database.
File "/usr/lib/
connection_
django.
FATAL: password authentication failed for user "maas"
dpkg: error processing maas-dns (--configure):
subprocess installed post-installation script returned error exit status 1
and this was term.log for the retry:
Setting up maas (1.4+bzr1789+
Processing triggers for libc-bin ...
Errors were encountered while processing:
maas-dns
Log ended: 2014-01-07 11:10:08
Log started: 2014-01-07 11:10:39
Setting up maas-dns (1.4+bzr1789+
* Stopping domain name service... bind9 ESC[80G waiting for pid 22203 to die
^MESC[74G[ OK ]
* Starting domain name service... bind9 ESC[80G ^MESC[74G[
invoke-rc.d: initscript bind9, action "restart" failed.
Log ended: 2014-01-07 11:10:42
Additionall, manually attempting to restart bind9 results in the following:
bladernr@
* Stopping domain name service... bind9 rndc: connect failed: 127.0.0.1#953: connection refused
* Starting domain name service... bind9 [fail]
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: maas-dns 1.4+bzr1789+
ProcVersionSign
Uname: Linux 3.12.0-7-generic x86_64
ApportVersion: 2.12.7-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Jan 7 11:12:16 2014
InstallationDate: Installed on 2014-01-07 (0 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140106)
PackageArchitec
SourcePackage: maas
UpgradeStatus: No upgrade log present (probably fresh install)
Looked into syslog when manually restarting bind9 and it seems to hang on the maas zone file: rl.13214. 22-P2-Ubuntu- 1:9.9.3. dfsg.P2- 4ubuntu2 -u bind /usr/share/ man' '--infodir= /usr/share/ info' '--sysconfdir= /etc/bind' '--localstatedi r=/var' '--enable-threads' '--enable- largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with- openssl= /usr' '--with- gssapi= /usr' '--with-gnu-ld' '--with-geoip=/usr' '--with-atf=no' '--enable-ipv6' '--enable- filter- aaaa' 'CFLAGS= -fno-strict- aliasing -DDIG_SIGCHASE -O2' ------- ------- ------- ------- ------- ------- --- /www.isc. org/support ------- ------- ------- ------- ------- ------- --- named.conf' named.conf. local:9: open: /etc/bind/ maas/named. conf.maas: file not found
Jan 7 11:28:16 critical-maas named[29464]: starting BIND 9.9.3-rpz2+
Jan 7 11:28:16 critical-maas named[29464]: built with '--prefix=/usr' '--mandir=
Jan 7 11:28:16 critical-maas named[29464]: -------
Jan 7 11:28:16 critical-maas named[29464]: BIND 9 is maintained by Internet Systems Consortium,
Jan 7 11:28:16 critical-maas named[29464]: Inc. (ISC), a non-profit 501(c)(3) public-benefit
Jan 7 11:28:16 critical-maas named[29464]: corporation. Support and training for BIND 9 are
Jan 7 11:28:16 critical-maas named[29464]: available at https:/
Jan 7 11:28:16 critical-maas named[29464]: -------
Jan 7 11:28:16 critical-maas named[29464]: adjusted limit on open files from 4096 to 1048576
Jan 7 11:28:16 critical-maas named[29464]: found 4 CPUs, using 4 worker threads
Jan 7 11:28:16 critical-maas named[29464]: using 4 UDP listeners per interface
Jan 7 11:28:16 critical-maas named[29464]: using up to 4096 sockets
Jan 7 11:28:16 critical-maas named[29464]: loading configuration from '/etc/bind/
Jan 7 11:28:16 critical-maas named[29464]: /etc/bind/
Jan 7 11:28:16 critical-maas named[29464]: loading configuration: file not found
Jan 7 11:28:16 critical-maas named[29464]: exiting (due to fatal error)