Publishing was a script somebody ran. When building moved into the portal nothing called it, so clusters were built, worked, and could not be reached by name - which is why a running cluster answered with the control plane's front page, and why c001 only worked after I ran the script by hand. It is part of building now. When the machines are up the runner waits for the head's portal to answer, pins the certificate it presents, and writes the entry the proxy reads. Releasing a cluster withdraws it again, or the proxy keeps routing a name at a machine nobody maintains. Pinning on first sight is a real trust decision and this is the moment to make it: the machine was created seconds ago, at an address this control plane assigned, on a network it runs. From then on a different certificate means a different machine and the proxy refuses it, which is the property worth having and the one a shared internal CA would not give. Failing to publish fails the build. The machines exist and work, but a cluster reported ready whose link leads nowhere is a worse answer than one that says what went wrong - and the log says which of the two happened. The clusters page and the overview now carry the link, and only once the cluster is actually published: linking a name the proxy does not know would send someone from their own cluster's row to "no cluster is published here", which reads as the cluster being broken. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
72 lines
2.7 KiB
HTML
72 lines
2.7 KiB
HTML
{{define "overview.html"}}<!doctype html>
|
||
<html lang="en"><head>{{template "head" .}}<title>HPC on Demand</title></head>
|
||
<body>
|
||
{{template "nav" .}}
|
||
<main>
|
||
<h1>HPC on Demand</h1>
|
||
<p class="deck">Clusters on request: the portal places them on hardware that can
|
||
actually run them, records what each one holds, and gives it back when the
|
||
lease ends.</p>
|
||
|
||
{{if .Err}}<div class="note crit"><p>{{.Err}}</p></div>{{end}}
|
||
{{with .Overview}}
|
||
|
||
{{if .Unhealthy}}
|
||
<div class="note crit"><p><strong>Attention.</strong>
|
||
{{range .Unhealthy}}{{.}}. {{end}}Nothing can be placed on a site in this state.</p></div>
|
||
{{end}}
|
||
|
||
{{if .Expiring}}
|
||
<div class="note"><p><strong>{{len .Expiring}} lease(s) need attention.</strong>
|
||
{{range .Expiring}}<code>{{.AccountingName}}</code> ({{.TenantName}}) {{.LeaseIn}}. {{end}}</p></div>
|
||
{{end}}
|
||
|
||
<div class="stats">
|
||
<div class="stat"><div class="k">{{len .Clusters}}</div><div class="l">clusters live</div></div>
|
||
<div class="stat"><div class="k">{{.SitesUp}}/{{.SitesTotal}}</div><div class="l">sites healthy</div></div>
|
||
<div class="stat"><div class="k">{{.FreeCores}}</div><div class="l">cores free</div></div>
|
||
<div class="stat"><div class="k">{{.FreeMemGB}}</div><div class="l">GiB free</div></div>
|
||
</div>
|
||
|
||
<div class="card">
|
||
<div class="card-h"><span class="card-t">Schedulable hardware</span>
|
||
<span class="age">confirmed, unallocated, passthrough-safe</span></div>
|
||
<div class="card-b">
|
||
{{if .Schedulable}}
|
||
{{range $cap, $n := .Schedulable}}<span class="pill ok">{{$cap}} ×{{$n}}</span> {{end}}
|
||
{{else}}
|
||
<span class="age">Nothing is schedulable right now.</span>
|
||
{{end}}
|
||
{{if .HeldDevices}}
|
||
<p style="margin:10px 0 0" class="age">{{.HeldDevices}} device(s) held by a guest
|
||
or reserved for a cluster, and therefore not offered.</p>
|
||
{{end}}
|
||
</div>
|
||
</div>
|
||
|
||
{{if .Clusters}}
|
||
<div class="card">
|
||
<div class="card-h"><span class="card-t">Running now</span></div>
|
||
<table>
|
||
<thead><tr><th>Cluster</th><th>Tenant</th><th>Where</th><th>State</th><th>Lease</th></tr></thead>
|
||
<tbody>
|
||
{{range .Clusters}}
|
||
<tr>
|
||
<td><code>{{.AccountingName}}</code>
|
||
{{if .PortalURL}}<br><a class="portal" href="{{.PortalURL}}" target="_blank" rel="noopener">Open portal ↗</a>{{end}}</td>
|
||
<td>{{.TenantName}}</td>
|
||
<td class="mono">{{.Site}} · {{.Hosts}}</td>
|
||
<td><span class="pill {{if eq .State "ready"}}ok{{else}}warn{{end}}">{{.State}}</span></td>
|
||
<td>{{if .LeaseIn}}{{.LeaseIn}}{{else}}<span class="age">no expiry</span>{{end}}</td>
|
||
</tr>
|
||
{{end}}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
{{end}}
|
||
|
||
{{end}}
|
||
</main>
|
||
</body></html>
|
||
{{end}}
|