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
Unknown Object (File)
Sat, Apr 20, 5:55 PM
Unknown Object (File)
Sat, Apr 20, 5:16 PM
Unknown Object (File)
Fri, Apr 19, 9:15 AM
Unknown Object (File)
Mon, Apr 15, 11:06 PM
Unknown Object (File)
Thu, Apr 11, 8:42 AM
Unknown Object (File)
Wed, Apr 3, 11:36 AM
Unknown Object (File)
Mon, Apr 1, 2:57 AM
Unknown Object (File)
Mar 23 2024, 7:58 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