runcmd does not run if cloud-config contains apt directives

Bug #1249828 reported by Mikhail Garber
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
New
Undecided
Unassigned

Bug Description

using AWS image ubuntu-raring-13.04-i386-server-20130615 (ami-05831335)

using user-data script containing #cloud-config

#cloud-config
apt_update: true
apt_upgrade: true
packages:
 - <my packages>
runcmd:
<my commands>
output: {all: '| tee -a /var/log/cloud-init-output.log'}

I had this configuration running for several months without any problems.

Now, the commands under runcmd do not run.
There is nothing in the logs after package installation.

narrowed down problem to this:
if apt statements are removed, problem is fixed, scripts run again. So seems that package upgrade messes up execution of the scripts.

Revision history for this message
Scott Moser (smoser) wrote :

Hi,
  Thanks for reporting this bug and then updating it to reflect that it occurred only when packages were upgraded (which gave me the knowledge for the dupe).

  This is fixed in 13.10, but wont be fixed in 13.04.
  The only fix for 13.04 is really to either
 a.) not use 'apt_upgrade'
 b.) make sure you use the latest cloud image available (which still could give the problem, but reduces likelyhood).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.