asgard icon indicating copy to clipboard operation
asgard copied to clipboard

Launch configurations are not cleaned up

Open danieltwagner opened this issue 11 years ago • 19 comments

As I create new auto scaling groups in my cluster, I delete the old ASGs. However, the launch configurations that are generated for each ASG are not deleted. Seeing as they are not reused, it would seem appropriate for them to be deleted when the ASG has disappeared. Otherwise creating new ASGs will eventually fail with the following error:

Create Launch Configuration 'www-r01-v010-20130721192302' with image 'ami-xxxxxxxx'
2013-07-21_19:23:04 Exception: LimitExceededException: Status Code: 400, AWS Service: AmazonAutoScaling, AWS Request ID: [id], AWS Error Code: LimitExceeded, AWS Error Message: Launch Configuration limit exceeded - You may only have 100 launch configurations

Maybe I'm using Asgard incorrectly, if so please do let me know.

danieltwagner avatar Jul 21 '13 19:07 danieltwagner

Asgard removes old launch configurations during an ASG deletion. It doesn't remove the current launch configuration. That seems odd to me and I will investigate the reasoning behind it. It sounds like you are at a point where you should investigate Janitor Monkey. https://github.com/Netflix/SimianArmy/wiki/Janitor-Home

claymccoy avatar Jul 22 '13 16:07 claymccoy

Is there anything new to this , its pretty annoying to realized that the build fails every few days because of this

romankor avatar Dec 11 '13 08:12 romankor

+1

amoffat avatar Feb 19 '14 17:02 amoffat

+1

bobtfish avatar Mar 24 '14 14:03 bobtfish

+1

ajmath avatar Mar 27 '14 18:03 ajmath

+1

dziemid avatar Apr 16 '14 06:04 dziemid

+1

rhussmann avatar Apr 23 '14 18:04 rhussmann

+1

brendangibat avatar May 13 '14 18:05 brendangibat

+1

atkins avatar May 16 '14 19:05 atkins

Any update on this @claymccoy it does not appear that the Launch Configuration is being deleted by Asgard when deleting an Auto Scaling Group?

zshenker avatar Jun 09 '14 22:06 zshenker

+1 Running into this all the time

OskarKjellin avatar Jun 14 '14 19:06 OskarKjellin

+1, anyone got a workaround for cleaning these up?

steder avatar Jul 08 '14 17:07 steder

I just wrote this cleanup script to help out in the interim. Sharing here just in case it ends up being helpful to others. I've exhaustively tested :smile: so if it breaks you get to keep both pieces.

https://gist.github.com/steder/1fddeab0d96f0c8c7bcc

steder avatar Jul 08 '14 18:07 steder

Ask amazon for more, by several orders of magnitude (is our solution currently) :)

bobtfish avatar Jul 08 '14 18:07 bobtfish

+1

sommestad avatar Aug 06 '14 06:08 sommestad

this seems like it would be a fairly simple pull request for somebody to put together and another person to vet... we don't have any team resources dedicated to enhancing Asgard, but if somebody from the community wanted to champion this effort, i'd happily merge it.

If not: what Clay said earlier though -- the alternative is to use Janitor Monkey.

danveloper avatar Aug 06 '14 10:08 danveloper

+1

claudiu-coman avatar Aug 12 '15 14:08 claudiu-coman

+1

haavardw avatar Nov 27 '15 11:11 haavardw

Asgard is no longer being supported. Spinnaker is the new continuous delivery utility from Netflix. It fits on top of existing Asgard structure, though, so it should be a drop-in replacement for those of you using Asgard today => http://spinnaker.io/

danveloper avatar Nov 27 '15 17:11 danveloper