Page MenuHomePhabricator

[drydock/core] Add blueprint PHID to Drydock logs
AbandonedPublic

Authored by epriestley on Nov 22 2014, 8:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 10:23 PM
Unknown Object (File)
Thu, Dec 19, 7:26 PM
Unknown Object (File)
Thu, Dec 19, 1:48 PM
Unknown Object (File)
Thu, Dec 19, 1:48 PM
Unknown Object (File)
Thu, Dec 19, 1:48 PM
Unknown Object (File)
Fri, Dec 13, 6:59 PM
Unknown Object (File)
Fri, Dec 13, 11:19 AM
Unknown Object (File)
Thu, Dec 12, 11:46 AM

Details

Reviewers
hach-que
Group Reviewers
Blessed Reviewers
Summary

This adds a blueprint PHID to Drydock logs, so that logs can be associated against Drydock logs. This is useful for tracking down issues when the Drydock allocator is choosing what blueprint to use, and can be used to log information about why blueprints were included or excluded from the available blueprints.

Test Plan

Brought this forward from D10506. Rebased on upstream and allocated a lease against a preallocated resource blueprint.

Event Timeline

hach-que retitled this revision from to Add blueprint PHID to Drydock logs.
hach-que updated this object.
hach-que edited the test plan for this revision. (Show Details)
hach-que added a reviewer: epriestley.
hach-que edited edge metadata.

Rebase on origin/master

Add schemata changes to DrydockLog

epriestley edited edge metadata.

This doesn't actually seem like it solves the stated problem. Particularly, in the screenshot, all of the blueprint IDs are strictly functions of their resources: no new information is available.

For leases which make it past the allocation phase, the blueprint is strictly a function of the resource. For leases which don't, it seems like we could solve this problem more cleanly by making the diagnostic messages around allocation more clear?

It seems like the right place to provide diagnostics is "1 Blueprint Enabled" -> "1 Blueprint Enabled: Blueprint 234 Name of Blueprint"?

This revision now requires changes to proceed.Aug 8 2015, 6:31 PM

For implementations which log during lease allocation, where the resource isn't yet allocated to the lease, the blueprint can't yet be determined from the lease because the resource isn't assigned yet.

The problem with just including the blueprint name is that it doesn't provide a mechanism to click through to the blueprint, and also goes out of date if the blueprint is renamed.

hach-que retitled this revision from Add blueprint PHID to Drydock logs to [drydock/core] Add blueprint PHID to Drydock logs.Aug 24 2015, 12:23 PM
hach-que edited edge metadata.
hach-que edited edge metadata.
  • Blueprint PHIDs
hach-que edited edge metadata.

Fix bad rebase

epriestley edited reviewers, added: hach-que; removed: epriestley.

I'm going to pursue some flavor of this. Plans are roughly:

  • Swap IDs for PHIDs.
  • Add BlueprintPHIDs.
  • Make logs more clearly a sub-object of blueprints, resources and leases, and get the SearchEngine stuff accommodating that.
  • Move logs a bit more structured so they can be translated and contain things like PHIDs that get linked on display (basically, follow the pattern used by modern Herald actions).

Those changes happened as part of D14196 and followups.