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
F13109977: D14144.diff
Sun, Apr 28, 8:47 AM
Unknown Object (File)
Fri, Apr 12, 5:32 PM
Unknown Object (File)
Thu, Apr 11, 11:50 AM
Unknown Object (File)
Sun, Apr 7, 2:46 PM
Unknown Object (File)
Wed, Apr 3, 4:06 PM
Unknown Object (File)
Mar 15 2024, 12:07 AM
Unknown Object (File)
Mar 4 2024, 6:14 PM
Unknown Object (File)
Mar 4 2024, 6:14 PM
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.