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)
Fri, Dec 13, 4:42 PM
Unknown Object (File)
Sat, Dec 7, 1:15 PM
Unknown Object (File)
Thu, Dec 5, 10:39 AM
Unknown Object (File)
Sun, Dec 1, 10:22 AM
Unknown Object (File)
Wed, Nov 27, 4:58 AM
Unknown Object (File)
Wed, Nov 27, 1:05 AM
Unknown Object (File)
Tue, Nov 26, 9:40 PM
Unknown Object (File)
Tue, Nov 26, 8:41 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