Skip to content

feat(infra): show the hosts of an infra repo with node state - #5188

Merged
dan-petty merged 2 commits into
mainfrom
feat/5123-show-the-hosts-of-an-infra
Nov 12, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/5123-show-the-hosts-of-an-infra

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops infra status <repo> shows each inventory host of an infra repo with the state of its Kubernetes node: groups, in service or offline, Ready, cordoned, kernel, kubelet, memory capacity and allocatable memory, and GPUs. The hosts come from the head of the default branch at origin, and the nodes from the kube context of the entry. A node that no host names gets its own row. The node of a host is devops_infra_node_name, else the first DNS label.

--ping runs one ansible-runner ad-hoc stat of /run/reboot-required on the hosts in service, with host key checks on and no become, and reads the job events. An agent needs the agent access level plan or above (require_agent_level). --format json|yaml gives the report model, and --dry-run makes no request.

Closes #5123

Change: openspec/changes/archive/2026-11-12-5123-show-the-hosts-of-an-infra/

@dan-petty dan-petty added type/feature Type feature: a new function scope/infra Docker container images, DevContainers, and infrastructure tooling labels Nov 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Live run on dan-petty/homelab (2026-11-12)

Run as an agent caller from this branch; the entry of dan-petty/homelab is at the agent access level full. The command read origin/main at 19f0457 and the kube context homelab-k3s. It found 4 hosts in service with their nodes and 2 hosts in offline with no node. hawk is cordoned with 15.5 GiB. Allocatable memory equals capacity on every node, because homelab #19 is merged and not applied. condor runs kernel 7.2.8; the other nodes run 7.2.15. --ping reached the 4 hosts in service, and no host has /run/reboot-required.

uv run devops infra status dan-petty/homelab --path <checkout>


Hosts of dan-petty/homelab (kube context homelab-k3s)
Reads origin/main at 19f04572eec78781f923792b4fea1d628eae9505, not the working tree of the checkout.
 Host           In service  Node       Ready    Cordoned  Kernel              Kubelet       Memory GiB   GPU 
 bombas.lan     no          bombas     no node                                                               
 condor.lan     yes         condor     True     no        7.2.8+deb14-amd64   v1.37.2+k3s1  62.5 / 62.5  2   
 gemini.lan     yes         gemini     True     no        7.2.15+deb14-amd64  v1.37.2+k3s1  62.5 / 62.5  2   
 hawk.lan       yes         hawk       True     yes       7.2.15+deb14-amd64  v1.37.2+k3s1  15.5 / 15.5  1   
 hog.lan        yes         hog        True     no        7.2.15+deb14-amd64  v1.37.2+k3s1  62.6 / 62.6  2   
 workhorse.lan  no          workhorse  no node                                                               
                            Memory GiB: capacity / allocatable. GPU: allocatable.                            

uv run devops infra status dan-petty/homelab --path <checkout> --ping


Hosts of dan-petty/homelab (kube context homelab-k3s)
Reads origin/main at 19f04572eec78781f923792b4fea1d628eae9505, not the working tree of the checkout.
 Host           In service  Node       Ready    Cordoned  Kernel              Kubelet       Memory GiB   GPU  SSH        Reboot 
 bombas.lan     no          bombas     no node                                                                                  
 condor.lan     yes         condor     True     no        7.2.8+deb14-amd64   v1.37.2+k3s1  62.5 / 62.5  2    reachable  no     
 gemini.lan     yes         gemini     True     no        7.2.15+deb14-amd64  v1.37.2+k3s1  62.5 / 62.5  2    reachable  no     
 hawk.lan       yes         hawk       True     yes       7.2.15+deb14-amd64  v1.37.2+k3s1  15.5 / 15.5  1    reachable  no     
 hog.lan        yes         hog        True     no        7.2.15+deb14-amd64  v1.37.2+k3s1  62.6 / 62.6  2    reachable  no     
 workhorse.lan  no          workhorse  no node                                                                                  
                   Memory GiB: capacity / allocatable. GPU: allocatable. Reboot: /run/reboot-required exists.                   

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 18:34
@dan-petty
dan-petty merged commit ed1d2e2 into main Nov 12, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/5123-show-the-hosts-of-an-infra branch November 12, 2026 18:42
dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.122.0](v0.121.1...v0.122.0)
(2026-11-12)


### Features

* **docs:** move the docs site to Zensical with a full nav and version
([#5183](#5183))
([64b7199](64b7199))
* **infra:** show the hosts of an infra repo with node state
([#5188](#5188))
([ed1d2e2](ed1d2e2))
* **roadmap:** eval grades prints the grade of each workflow
([#5189](#5189))
([aeb33d6](aeb33d6))


### Bug Fixes

* **infra:** read the default branch at origin, not the working tree
([#5181](#5181))
([6ef4336](6ef4336))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/infra Docker container images, DevContainers, and infrastructure tooling type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(infra): show the hosts of an infra repo with node state

1 participant