[Bug 1266840] [NEW] maas-dns failed to install completely on Trusty
Jeff Lane
jeffrey.lane at canonical.com
Tue Jan 7 16:26:13 UTC 2014
Public bug reported:
Installed maas packages on a fresh trusty install like so:
$ sudo apt-get install maas maas-region-controller maas-cluster-
controller maas-dhcp maas-dns
Installation proceeded successfully until maas-dns. maas-dns errored
out:
Setting up maas (1.4+bzr1789+dfsg-0ubuntu1) ...
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 at critical-maas:~$ sudo apt-get install maas maas-region-controller maas-cluster-controller maas-dns maas-dhcp
[sudo] password for bladernr:
Reading package lists... Done
Building dependency tree
Reading state information... Done
maas is already the newest version.
maas-cluster-controller is already the newest version.
maas-dhcp is already the newest version.
maas-dns is already the newest version.
maas-region-controller is already the newest version.
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+dfsg-0ubuntu1) ...
* Stopping domain name service... bind9 waiting for pid 22203 to die
[ OK ]
* 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+dfsg-0ubuntu1) ...
Traceback (most recent call last):
File "/usr/bin/django-admin", line 5, in <module>
management.execute_from_command_line()
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
output = self.handle(*args, **options)
File "/usr/lib/python2.7/dist-packages/maasserver/management/commands/set_up_dns.py", line 54, in handle
upstream_dns = Config.objects.get_config("upstream_dns")
File "/usr/lib/python2.7/dist-packages/maasserver/models/config.py", line 93, in get_config
return self.get(name=name).value
File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 151, in get
return self.get_queryset().get(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 301, in get
num = len(clone)
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 77, in __len__
self._fetch_all()
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 854, in _fetch_all
self._result_cache = list(self.iterator())
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 220, in iterator
for row in compiler.results_iter():
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 710, in results_iter
for rows in self.execute_sql(MULTI):
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 780, in execute_sql
cursor = self.connection.cursor()
File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 159, in cursor
cursor = util.CursorWrapper(self._cursor(), self)
File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 129, in _cursor
self.ensure_connection()
File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 124, in ensure_connection
self.connect()
File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 99, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 124, in ensure_connection
self.connect()
File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 112, in connect
self.connection = self.get_new_connection(conn_params)
File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 116, in get_new_connection
return Database.connect(**conn_params)
File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in connect
connection_factory=connection_factory, async=async)
django.db.utils.OperationalError: FATAL: password authentication failed for user "maas"
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+dfsg-0ubuntu1) ...
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+dfsg-0ubuntu1) ...
* 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[ESC[31mfailESC[39;49m]
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 at critical-maas:~$ sudo service bind9 restart
* Stopping domain name service... bind9 rndc: connect failed: 127.0.0.1#953: connection refused
[ OK ]
* Starting domain name service... bind9 [fail]
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: maas-dns 1.4+bzr1789+dfsg-0ubuntu1
ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
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)
PackageArchitecture: all
SourcePackage: maas
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: maas (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug trusty
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1266840
Title:
maas-dns failed to install completely on Trusty
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1266840/+subscriptions
More information about the Ubuntu-server-bugs
mailing list