juju bootstrap fails, apt-get update fails, zookeeper doesn't install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned |
Bug Description
After issuing the command 'juju bootstrap'
Monitoring with 'juju -v status' returns the following which will cycle indefinitely.
2012-08-17 18:18:18,444 DEBUG Spawning SSH process with remote_
2012-08-17 18:18:18,
2012-08-17 18:18:18,
2012-08-17 18:18:18,
2012-08-17 18:18:18,
2012-08-17 18:18:18,
2012-08-17 18:18:18,
2012-08-17 18:18:18,
2012-08-17 18:18:18,
2012-08-17 18:18:18,
2012-08-17 18:18:18,
2012-08-17 18:18:18,
This appears to be a zookeeper problem.
Logging in to the remote node, the following errors appear in lock-step with the MaaS primary box's looping of the zookeeper failures above, showing a constant attempt and failure to connect to localhost on the zookeeper port 2181.
Aug 17 18:20:18 Galaxy2 sshd[6593]: Accepted publickey for ubuntu from 192.168.10.10 port 56629 ssh2
Aug 17 18:20:18 Galaxy2 sshd[6593]: pam_unix(
Aug 17 18:20:19 Galaxy2 sshd[6723]: error: connect_to localhost port 2181: failed.
Aug 17 18:20:19 Galaxy2 sshd[6723]: error: connect_to localhost port 2181: failed.
Aug 17 18:20:19 Galaxy2 sshd[6723]: Received disconnect from 192.168.10.10: 11: disconnected by user
Aug 17 18:20:19 Galaxy2 sshd[6593]: pam_unix(
/var/log/
Err http://
403 Forbidden
This causes the failure of some packages to be installed.
WARNING: The following packages cannot be authenticated!
libavahi-client3 ttf-dejavu-core fontconfig-config libfontconfig1
libpixman-1-0 libxcb-render0 libxcb-shm0 libxrender1 libcairo2 libcups2
libdatrie1 x11-common libice6 libjpeg-turbo8 libnspr4 libnss3 libthai-data
libthai0 libxft2 fontconfig libpango1.0-0 libsm6 libxt6 libxmu6 libxpm4
libxaw7 libzookeeper-mt2 libjpeg8 libgd2-noxpm java-common
default-
python-bzrlib bzr fonts-liberation libcdt4 libcgraph5 libgraph4 libpathplan4
libgvc5 libgvpr1 graphviz python-pyasn1 python-
python-
python-
python-
python-dateutil python-txaws juju libjline-java liblog4j1.2-java
libnetty-java libservlet2.5-java libxml-
libxml-
python-support python-pyparsing python-pydot python-setuptools
ttf-liberation zookeeper zookeeperd
E: There are problems and -y was used without --force-yes
2012-08-17 17:40:20,711 - cc_apt_
2012-08-17 17:40:20,714 - __init_
File "/usr/lib/
cc.handle(name, run_args, freq=freq)
File "/usr/lib/
[name, self.cfg, self.cloud, cloudinit.log, args])
File "/usr/lib/
func(*args)
File "/usr/lib/
raise errors[0]
CalledProcessError: Command '['apt-get', '--option', 'Dpkg::
2012-08-17 17:40:20,714 - __init__.py[ERROR]: config handling of apt-update-upgrade, None, [] failed
2012-08-17 17:40:20,737 - cloud-init-
errors running cloud_config [config]: ['apt-update-
/var/lib/
Zookeeper, and a host of other packages fail to install on the remote node, ultimately causing the 'juju bootstrap' command to fail.
Manually running 'sudo apt-get update' on the remote node fails in the same manner.
/etc/apt/
description: | updated |
Full cloud-init- output. log
ubuntu@Galaxy2:~$ cat /var/log/ cloud-init- output. log ssh_host_ rsa_key. ssh_host_ rsa_key. pub. 5e:ca:4b: 1c:e4:1b: f6:a7:f3: dd:2e:b1: 74 root@Galaxy2 ssh_host_ dsa_key. ssh_host_ dsa_key. pub. 87:6e:2b: 14:15:c9: 03:c5:9c: 14:08:0a: f8 root@Galaxy2 ssh_host_ ecdsa_key. ssh_host_ ecdsa_key. pub. 53:75:70: 7c:f0:bd: 5c:33:c6: 5e:2c:2e: 56 root@Galaxy2 ubuntu- mirror precise InRelease ubuntu- mirror precise-updates InRelease ubuntu- mirror precise Release.gpg ubuntu- mirror precise-updates Release.gpg ubuntu- mirror precise Release ubuntu- mirror precise-updates Release ubuntu- mirror precise/main Sources/DiffIndex ubuntu- mirror precise/universe Sources/DiffIndex ubuntu- mirror precise/main amd64 Packages/DiffIndex ubuntu- mirror precise/universe amd64 Packages/DiffIndex ubuntu- mirror precise/main i386 Packages/DiffIndex ubuntu- mirror precise/universe i386 Packages/DiffIndex ubuntu- mirror precise/main TranslationIndex ubuntu- mirror precise/universe TranslationIndex ubuntu- mirror precise- updates/ main Sources/DiffIndex ubuntu- mirror precise- updates/ universe Sources/DiffIndex ubuntu- mirror precise- updates/ main amd64 Packages/DiffIndex ubuntu- mirror precise- updates/ universe amd64 Packages/DiffIndex ubuntu- mirror precise- updates/ main i386 Packages/DiffIndex ubuntu- mirror precise- updates/ universe i386 Packages/DiffIndex ubuntu- mirror precise- updates/ main TranslationIndex ubuntu- mirror precise- updates/ universe TranslationIndex security. ubuntu. com precise-security InRelease ubuntu- mirror precise/main Sources ubuntu- mirror precise/universe Sources ubuntu...
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
bd:3e:14:
The key's randomart image is:
+--[ RSA 2048]----+
| |
| . |
| o |
| .* . |
| S=.O |
| O.. + E|
| o.. + + |
| .o o o..|
| .. o.o+|
+-----------------+
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
79:01:c1:
The key's randomart image is:
+--[ DSA 1024]----+
|o ...@OB |
|.. . o X.. |
| .. o o. |
| E . o. . |
| . .S.. |
| . .. |
| . |
| |
| |
+-----------------+
Generating public/private ecdsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
4c:9d:23:
The key's randomart image is:
+--[ECDSA 256]---+
| ..oo+. |
| o . oooo|
| + + E**|
| o o . o+.*|
| S o .+ |
| . . |
| |
| |
| |
+-----------------+
Generating locales...
en_US.UTF-8... up-to-date
Generation complete.
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Err http://
403 Forbidden
Err http://
403 Forbidden
Err http://