runcmd does not run if cloud-config contains apt directives
Bug #1249828 reported by
Mikhail Garber
This bug report is a duplicate of:
Bug #1124384: Configuration reload clears event that others jobs may be waiting on.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
using AWS image ubuntu-
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/
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.
To post a comment you must log in.
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).