[Bug 675711] [NEW] user-data scripts are run on first boot after a rebundle
smoser at canonical.com
Mon Nov 15 19:43:53 GMT 2010
Public bug reported:
Binary package hint: cloud-init
As reported at , there if a instance is launched with a user data
script (--user-data-file that has '#!'), then that script will persist
across a rebundle *and* be run on first boot after the rebundle. That
is not the desired behavior.
This problem probably exists with runcmd commands also (via cloud-config
For simplicity, I copied the report here:
| IMHO there is still a problem. It might be a feature though that I never understood.
| I start an AWS micro instance (EBS based obviously) instance with userdata:
| date > /tmp/x
| I check for the date stamp. it is there.
| then I stop the image, delete /tmp/x and create a new image of the one above.
| I run another instance based on the new AMI, but this time WITHOUT user-data.
| I check for the /tmp/x file. It is there. And it contains the new timestamp!
| So is the user-data persisted and used again when creating a new image?
| Is it a bug or a feature? If it is a feature, is it documented :-)
DistroRelease: Ubuntu 10.10
Package: cloud-init 0.5.15-0ubuntu3
ProcVersionSignature: User Name 2.6.35-22.33-virtual 18.104.22.168
Uname: Linux 2.6.35-22-virtual i686
Date: Mon Nov 15 19:35:45 2010
** Affects: cloud-init
** Affects: cloud-init (Ubuntu)
** Tags: apport-bug ec2-images i386 maverick
user-data scripts are run on first boot after a rebundle
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in ubuntu.
More information about the Ubuntu-server-bugs