Homec4science

Support working copies and separate allocate + activate steps for…

Authored by epriestley <git@epriestley.com> on Sep 21 2015, 13:46.

Description

Support working copies and separate allocate + activate steps for resources/leases in Drydock

Summary:
Ref T9253. For resources and leases that need to do something which takes a lot of time or requires waiting, allow them to allocate/acquire first and then activate later.

When we allocate a resource or acquire a lease, the blueprint can either activate it immediately (if all the work can happen quickly/inline) or activate it later. If the blueprint activates it later, we queue a worker to handle activating it.

Rebuild the "working copy" blueprint to work with this model: it allocates/acquires and activates in a separate step, once it is able to acquire a host.

Test Plan: With some power of imagination, brought up a bunch of working copies with bin/drydock lease --type working-copy ...

Reviewers: hach-que, chad

Reviewed By: hach-que, chad

Maniphest Tasks: T9253

Differential Revision: https://secure.phabricator.com/D14127

Details

Committed
epriestley <git@epriestley.com>Sep 21 2015, 13:46
Pushed
aubortJan 31 2017, 17:16
Parents
rPH6a0eb9d84b5a: Allow AlmanacHost blueprints to build a meaningful CommandInterface
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHf1119ffcf51d: Support working copies and separate allocate + activate steps for… (authored by epriestley <git@epriestley.com>).Sep 21 2015, 13:46