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
F18113375: D21801.diff
Wed, Aug 13, 1:45 AM
F18106683: D21801.id.diff
Sun, Aug 10, 11:12 PM
F18095999: D21801.id51960.diff
Fri, Aug 8, 3:41 AM
F18081603: D21801.diff
Tue, Aug 5, 1:02 AM
F17969072: D21801.diff
Fri, Aug 1, 2:03 PM
F17845732: D21801.diff
Jul 27 2025, 3:56 AM
F17674610: D21801.diff
Jul 13 2025, 7:26 AM
F17657458: D21801.diff
Jul 12 2025, 12:18 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable