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
F13270289: D21801.id51968.diff
Wed, May 29, 9:27 AM
F13270288: D21801.id51960.diff
Wed, May 29, 9:27 AM
F13270287: D21801.id.diff
Wed, May 29, 9:27 AM
F13231956: D21801.id51968.diff
Tue, May 21, 12:54 AM
F13231609: D21801.id.diff
Tue, May 21, 12:36 AM
F13231062: D21801.id51960.diff
Tue, May 21, 12:05 AM
F13230987: D21801.id51960.diff
Mon, May 20, 11:35 PM
F13215608: D21801.diff
Fri, May 17, 6:30 PM
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
Branch
drydock5
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25696
Build 35524: arc lint + arc unit