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
F13199049: D21801.diff
Mon, May 13, 11:21 AM
F13198277: D21801.diff
Mon, May 13, 5:34 AM
F13196624: D21801.diff
Sun, May 12, 11:25 PM
F13183290: D21801.diff
Fri, May 10, 8:06 AM
Unknown Object (File)
Sat, May 4, 11:13 AM
Unknown Object (File)
Sat, May 4, 3:55 AM
Unknown Object (File)
Fri, May 3, 5:44 AM
Unknown Object (File)
Sun, Apr 28, 12:36 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