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
F18937441: D14144.id34178.diff
Nov 10 2025, 11:31 PM
F18844020: D14144.diff
Oct 29 2025, 2:39 AM
F18839404: D14144.id.diff
Oct 27 2025, 4:09 PM
F18835117: D14144.diff
Oct 26 2025, 1:26 PM
F18704195: D14144.id34181.diff
Sep 28 2025, 6:33 AM
F18631600: D14144.id.diff
Sep 16 2025, 3:51 PM
F18630310: D14144.id34181.diff
Sep 16 2025, 11:20 AM
F18627821: D14144.id34178.diff
Sep 16 2025, 4:52 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.