Noticed juju deployed services were failing to come up using Juju+MAAS and the newly released cloud-init SRU for 12.04. The node provisioned thru MAAS okay, but after first boot did not have the required agents installed. On further investigation, it looks like the required juju packages were never installed. /var/log/cloud-init-output.log shows the following traceback:
The key fingerprint is:
b4:83:ef:99:6e:65:15:a3:a3:a2:83:0b:f1:3c:62:7f root@test-08
The key's randomart image is:
+--[ECDSA 256]---+
| |
| o |
| . . o |
| o .o . |
|. . S. o |
| + ....o |
|o.+. . ..o |
|.oo.oE ..o |
| .o.. o= |
+-----------------+
Generating locales...
en_US.UTF-8... up-to-date
Generation complete.
2013-01-16 16:32:56,919 - __init__.py[WARNING]: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/__init__.py", line 117, in run_cc_modules
cc.handle(name, run_args, freq=freq)
File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/__init__.py", line 78, in handle
[name, self.cfg, self.cloud, cloudinit.log, args])
File "/usr/lib/python2.7/dist-packages/cloudinit/__init__.py", line 326, in sem_and_run
func(*args)
File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/cc_apt_update_upgrade.py", line 75, in handle
errors = add_sources(cloud, cfg['apt_sources'], params)
TypeError: add_sources() takes at most 2 arguments (3 given)
Noticed juju deployed services were failing to come up using Juju+MAAS and the newly released cloud-init SRU for 12.04. The node provisioned thru MAAS okay, but after first boot did not have the required agents installed. On further investigation, it looks like the required juju packages were never installed. /var/log/ cloud-init- output. log shows the following traceback:
The key fingerprint is: 99:6e:65: 15:a3:a3: a2:83:0b: f1:3c:62: 7f root@test-08 _.py[WARNING] : Traceback (most recent call last): python2. 7/dist- packages/ cloudinit/ CloudConfig/ __init_ _.py", line 117, in run_cc_modules python2. 7/dist- packages/ cloudinit/ CloudConfig/ __init_ _.py", line 78, in handle python2. 7/dist- packages/ cloudinit/ __init_ _.py", line 326, in sem_and_run python2. 7/dist- packages/ cloudinit/ CloudConfig/ cc_apt_ update_ upgrade. py", line 75, in handle
b4:83:ef:
The key's randomart image is:
+--[ECDSA 256]---+
| |
| o |
| . . o |
| o .o . |
|. . S. o |
| + ....o |
|o.+. . ..o |
|.oo.oE ..o |
| .o.. o= |
+-----------------+
Generating locales...
en_US.UTF-8... up-to-date
Generation complete.
2013-01-16 16:32:56,919 - __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/
errors = add_sources(cloud, cfg['apt_sources'], params)
TypeError: add_sources() takes at most 2 arguments (3 given)
2013-01-16 16:32:56,919 - __init__.py[ERROR]: config handling of apt-update-upgrade, None, [] failed
2013-01-16 16:32:56,998 - cloud-init- cfg[ERROR] : errors running cloud_config [config]: ['apt-update- upgrade' ] upgrade' ]
errors running cloud_config [config]: ['apt-update-
Attached are /var/log/ cloud-init. log and the MAAS provided user-data from /var/lib/ cloud/instance/ user-data. txt