Page MenuHomePhabricator

Give Drydock resources and leases a real "destroy" lifecycle phase
ClosedPublic

Authored by epriestley on Sep 23 2015, 5:00 PM.
Tags
None
Referenced Files
F14417869: D14144.diff
Wed, Dec 25, 2:49 AM
Unknown Object (File)
Wed, Dec 18, 7:35 AM
Unknown Object (File)
Tue, Dec 17, 6:13 AM
Unknown Object (File)
Mon, Dec 16, 7:46 PM
Unknown Object (File)
Fri, Dec 13, 9:52 AM
Unknown Object (File)
Fri, Dec 6, 1:49 AM
Unknown Object (File)
Thu, Nov 28, 1:22 AM
Unknown Object (File)
Tue, Nov 26, 6:24 AM
Subscribers
None

Details

Summary

Ref T9252. Some leases or resources may need to remove data, tear down VMs, etc., during cleanup. After they are released, queue a "destroy" phase for performing teardown.

Test Plan
  • Used bin/drydock lease ... to create a working copy lease.
  • Used bin/drydock release-lease and bin/drydock release-resource to release the lease and then the working copy and host.
  • Saw working copy and host get destroyed and cleaned up properly.

Diff Detail

Repository
rP Phabricator
Branch
drydock2
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/applications/drydock/worker/DrydockLeaseDestroyWorker.php:32XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 8028
Build 9086: [Placeholder Plan] Wait for 30 Seconds
Build 9085: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Give Drydock resources and leases a real "destroy" lifecycle phase.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: chad, hach-que.
chad edited edge metadata.
This revision is now accepted and ready to land.Sep 23 2015, 6:06 PM
This revision was automatically updated to reflect the committed changes.