While testing the puppet integration in EC2 images I noticed that some instances (7 out of 10 would fail) would failed to install the puppet package. According to the console log when cloud-config-puppet runs apt-get update it gets the files from archive.ubuntu.com.
After logging into the system it turns out that the ec2 mirror have been set correctly:
So it seems that there is a race condition between the moment apt-get update and apt-get install puppet even though the cloud-config-puppet upstart job is set to start on started /etc/init/cloud-apt-update-upgrade.conf.
Binary package hint: cloud-init
While testing the puppet integration in EC2 images I noticed that some instances (7 out of 10 would fail) would failed to install the puppet package. According to the console log when cloud-config-puppet runs apt-get update it gets the files from archive.ubuntu.com.
After logging into the system it turns out that the ec2 mirror have been set correctly:
ubuntu@ domU-12- 31-39-05- 19-A6:~ $ cat /etc/apt/ sources. list us-east- 1.ec2.archive. ubuntu. com/ubuntu/ lucid main universe us-east- 1.ec2.archive. ubuntu. com/ubuntu/ lucid main universe us-east- 1.ec2.archive. ubuntu. com/ubuntu/ lucid-updates main universe us-east- 1.ec2.archive. ubuntu. com/ubuntu/ lucid-updates main universe security. ubuntu. com/ubuntu lucid-security main universe security. ubuntu. com/ubuntu lucid-security main universe domU-12- 31-39-05- 19-A6:~ $ sudo apt-get install puppet
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
ubuntu@
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package puppet
So it seems that there is a race condition between the moment apt-get update and apt-get install puppet even though the cloud-config-puppet upstart job is set to start on started /etc/init/ cloud-apt- update- upgrade. conf.