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)
Mon, Nov 18, 4:35 PM
Unknown Object (File)
Fri, Nov 15, 1:12 AM
Unknown Object (File)
Sun, Nov 10, 9:39 PM
Unknown Object (File)
Sun, Nov 10, 6:23 AM
Unknown Object (File)
Sun, Nov 10, 6:14 AM
Unknown Object (File)
Thu, Nov 7, 10:21 AM
Unknown Object (File)
Oct 18 2024, 4:55 AM
Unknown Object (File)
Oct 11 2024, 3:38 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