Homec4science

Drydock blueprint for preallocated remote hosts

Authored by James Rhodes <jrhodes@redpointsoftware.com.au> on Nov 22 2013, 23:34.

Description

Drydock blueprint for preallocated remote hosts

Summary:
This adds a Drydock blueprint for preallocated, remote hosts. This will be used by the Harbormaster interface to allow users to specify remote hosts that builds can be run on.

This adds a canAllocateResource method to Drydock blueprints; it is used to detect whether a blueprint can allocate a resource for the given type and attributes.

Test Plan:
Ran:

bin/drydock lease --type host --attributes remote=true,preallocated=true,host=192.168.56.101,port=22,user=james,keyfile=,path=C:\\Build\\,platform=windows

and saw the "C:\Build\<id>" folder appear on the remote Windows machine. Viewed the lease and resource in Drydock as well.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran, jamesr

Maniphest Tasks: T4111

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

Details

Committed
epriestley <git@epriestley.com>Nov 22 2013, 23:34
Pushed
aubortJan 31 2017, 17:16
Parents
rPH97937556ca34: Fix issue when paging Applications
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH7c3cb5948c2e: Drydock blueprint for preallocated remote hosts (authored by James Rhodes <jrhodes@redpointsoftware.com.au>).Nov 22 2013, 23:34