lp:~smoser/ubuntu-on-ec2/ec2-publishing-scripts.lp927823
- Get this branch:
- bzr branch lp:~smoser/ubuntu-on-ec2/ec2-publishing-scripts.lp927823
Branch merges
Related bugs
Bug #927823: publish-build-ebs can leak instances | Medium | Fix Released |
Related blueprints
Branch information
Recent revisions
- 412. By Scott Moser
-
reap-ec2-instances: initial commit
This just goes through and kills any instances over a given age
Examples:
./reap-ec2-instances --region us-east-1 --max-age 1d
./reap-ec2-instances --max-age=3600 - 411. By Scott Moser
-
better handle cleaning up of instances in failed publish-build-ebs
publish-build-ebs was "leaking instances" when one of the builds failed.
The primary problem was that the previous code expected that
a subshell's signal handlers were inherited from their parent. That is
simply not true.The changes here primarily address that, but also address general
signal handing of the SIGINT and SIGTERM.Note, that in publish-build-ebs, we still wait for each region to finish
serially. That means that if we're publishing in the following order:
us-east-1
us-west-1
ap-northeast-1
sa-east-1and ap-northeast-1 fails immediately, we'll continue on blissfully until
both us-east-1 and us-west-1 finish. At that point, it will recognize
that ap-northeast-1 has failed, and kill any jobs (possibly sa-east-1)
that are still running.The potential fix for that would be to add a signal handler for SIGCHLD
and then somehow check its return code and trigger cleanup code then. - 410. By Scott Moser
-
run-instance-
and-wait: make tag creation silent 'xc2 tag' was writing output to stdout. This program should not have
anything written to stdout other than instance-id and host.That caused the user of it (publish-build-ebs) to read the string 'TAG'
as the instance id. - 409. By Scott Moser
-
change failure of 'xc2 tag create' to warning [temporary]
The version of boto used on nectarine was not new enough to
have support for 'create_tag', and thus this was killing builds.Example failure from maverick-server 20120204.
Traceback (most recent call last):
File "/home/vmbuilder/ ec2-daily/ xc2/xc2- helper- tag", line 126, in <module>
main()
File "/home/vmbuilder/ ec2-daily/ xc2/xc2- helper- tag", line 118, in main
ret = tag_create(conn, args[1:], options.tags)
File "/home/vmbuilder/ ec2-daily/ xc2/xc2- helper- tag", line 41, in tag_create
response = conn.create_tags(resources, tagdict) - 406. By Scott Moser
-
publish-image: do not match ebs images when looking for instance-store
when looking for an existing image, we were searching like this:
/ubuntu.images/ ubuntu- natty-11. 04-i386- server- 20111003 which would match both
099720109477/ebs/ubuntu- images/ ubuntu- natty-11. 04-i386- server- 20111003
and
099720109477/ubuntu- images/ ubuntu- natty-11. 04-i386- server- 20111003 This changes the search to explicitly skip names matching the '/ebs/' token
- 405. By Scott Moser
-
alpha builds do not get version number
This reverts the change made in revision 398.
Alpha builds do not contain a version number, while beta and RC builds do. - 404. By Scott Moser
-
promote-daily: set XC2_XIMAGES_CACHE_D
This will benefit programs it calls by allowing them to share
a ximages cache.
Branch metadata
- Branch format:
- Branch format 6
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)