ec2-init: RightScale startup script removes itself
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EC2 init scripts |
Invalid
|
Undecided
|
Unassigned | ||
Ubuntu on EC2 |
Invalid
|
Low
|
Unassigned | ||
ec2-init (Ubuntu) |
Triaged
|
Low
|
Scott Moser |
Bug Description
The ec2-init package includes a startup script in /etc/init.
In either case, this script removes itself. There are a couple issues with this:
1. It is unexpected and possibly a bit threatening to have an AMI run code on startup which is then removed before the user is given a chance to log in and see it. It is impossible for a user to view the source of the AMI before running it, so there is no way to verify what code is being run on the instance. This can be a cause of concern, especially if it is a publisher's known practice to delete startup code.
2. If a user runs an instance of the AMI and rebundles the instance as a new AMI, that new AMI no longer has support for being run inside RightScale with startup hooks.
A more appropriate approach for RightScale startup code would be to check and install the software on the first boot of each instance/AMI. Once the software gets installed, the script could disable (but not remove) itself.
Changed in ubuntu-on-ec2: | |
status: | New → Confirmed |
Changed in ec2-init: | |
status: | New → Confirmed |
Changed in ubuntu-on-ec2: | |
importance: | Undecided → Low |
tags: | added: ec2-images uec-images |
Changed in ec2-init (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in ubuntu-on-ec2: | |
status: | Confirmed → Invalid |
Changed in ec2-init: | |
status: | Confirmed → Invalid |
I'd like to fix this by making the rightscale init script (debian/ ec2-init. rightscale- init.init) [1] to use logic more like ec2-init's [2] run_once_per_ami
-- bazaar. launchpad. net/%7Eubuntu- branches/ ubuntu/ karmic/ ec2-init/ karmic/ annotate/ head%3A/ debian/ ec2-init. rightscale- init.init bazaar. launchpad. net/%7Eubuntu- branches/ ubuntu/ karmic/ ec2-init/ karmic/ annotate/ head%3A/ ec2-init
[1] http://
[2] http://