Red Hat Bugzilla – Bug 1286609
Amazon instances take a long time to get deleted
Last modified: 2015-12-03 11:31:07 EST
Description of problem: Amazon instances do not get Archived on deletion
Version-Release number of selected component (if applicable): 188.8.131.52
How reproducible: 100%
Steps to Reproduce:
1. Add an ec2 provider
2. Add an instance outside of cloudforms
3. Refresh the provider
4. Delete/Terminate the instance
5. Refresh the provider
Actual results: Provider shows the instance as powered off
Expected results: Instance should be archived
I will do further tests, initially it seemed like it was never getting deleted. New instances show up immediately on refresh, but old ones take a long time to get deleted. Minimum over 10 minutes.
We'll probably have to gather data on what the instance looks like in Amazon. Or, more specifically, what the instance looks like in results from the API calls we make to Amazon when gathering inventory.
Cloudform's behavior reflects that of EC2 in this regard.
Cloudforms does not mark an instance as "Archived" until the provider no longer reports on that instance. EC2 will continue to report on an instance for about
an hour after the instance has been terminated.
Both the EC2 and Cloudforms dashboards align, listing the "Power State" as "terminated" during this time.
Once EC2 discontinues reporting on the instance Cloudforms then moves it
to "Archived" but, again, this could take an hour. This can be observed by
monitoring both the EC2 and Cloudforms dashboards.
I do not feel this is a bug so I will mark it as such. If you disagree
please let me know.
Joe, this is absolutely fine, there was an issue with our mgmtsystem that pulls data from EC2, this has now been resolved. Apologies!