Page MenuHomePhabricator

Use the same logic in "bin/drydock lease" and LeaseUpdateWorker to identify candidate blueprints
ClosedPublic

Authored by epriestley on May 3 2022, 9:28 PM.
Tags
None
Referenced Files
F19523461: D21801.id51960.diff
Sat, Jan 17, 4:48 PM
F19518534: D21801.id.diff
Thu, Jan 15, 9:11 PM
F19516495: D21801.id51960.diff
Thu, Jan 15, 12:39 AM
F19516442: D21801.diff
Thu, Jan 15, 12:07 AM
F19514320: D21801.id51960.diff
Wed, Jan 14, 12:41 AM
F19303772: D21801.id51960.diff
Wed, Dec 24, 5:33 AM
F19289106: D21801.id51968.diff
Tue, Dec 23, 7:56 AM
F19059778: D21801.id51960.diff
Nov 29 2025, 6:47 AM
Subscribers
Restricted Owners Package

Details

Summary

Ref T13676. Currently, "bin/drydock lease" just creates a lease that permits any blueprint.

To prepare for "use specific blueprint X", unify the logic between this workflow and LeaseUpdateWorker so we select only blueprints which at least have coarse compatibility (e.g., if we're leasing a host, only select enabled blueprints of classes that can allocate hosts).

Test Plan

Used bin/drydock lease to try to lease a nonsense type, got sensible error. Leased a host.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable