Page MenuHomePhabricator

Ensure spot instances in AWS are closed properly in Drydock
AbandonedPublic

Authored by hach-que on Feb 24 2015, 3:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 26, 12:30 PM
Unknown Object (File)
Dec 10 2023, 6:41 PM
Unknown Object (File)
Nov 30 2023, 12:57 AM
Unknown Object (File)
Nov 15 2023, 11:03 AM
Unknown Object (File)
Nov 9 2023, 3:41 AM
Unknown Object (File)
Nov 8 2023, 4:57 AM
Unknown Object (File)
Nov 8 2023, 3:54 AM
Unknown Object (File)
Nov 8 2023, 1:26 AM

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Maniphest Tasks
T2015: Implement Drydock
Summary

Ref T2015. If you attempt to close a "Pending Allocation" resource in Drydock for an EC2 resource, and that resource was a spot request, currently you are unable to close the resource because the TerminateInstance call fails (because there is no instance).

Instead, only call TerminateInstance if there is an instance ID, and use CancelSpotInstanceRequests if a spot request ID is present. Closing pending allocation resources should only be done if the daemons were interrupted during allocation, and the resources need to be manually cleaned up or closed.

Test Plan

Not tested yet...

Diff Detail

Repository
rP Phabricator
Branch
drydock-spot-request-cleanup
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4634
Build 4648: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

hach-que retitled this revision from to Ensure spot instances in AWS are closed properly in Drydock.
hach-que updated this object.
hach-que edited the test plan for this revision. (Show Details)
epriestley added a reviewer: epriestley.

Premature

This revision now requires changes to proceed.Aug 8 2015, 6:51 PM