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
F15452992: D21801.id51968.diff
Sat, Mar 29, 8:36 AM
F15452981: D21801.id51960.diff
Sat, Mar 29, 8:33 AM
F15452977: D21801.id.diff
Sat, Mar 29, 8:32 AM
F15447256: D21801.id51960.diff
Thu, Mar 27, 10:45 PM
F15439392: D21801.diff
Wed, Mar 26, 7:20 AM
F15436814: D21801.id51960.diff
Tue, Mar 25, 4:36 PM
F15427027: D21801.diff
Sun, Mar 23, 12:15 PM
F15426007: D21801.diff
Sun, Mar 23, 6:48 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