How rackerlabs/understack works
UnderStack is a Kubernetes-hosted, opinionated OpenStack stack for bringing bare-metal systems into Ironic so they can be consumed by OpenStack. Its broad user workflow is cluster bootstrap and deployment, followed by hardware enrollment and provisioning; the README establishes that product flow but does not specify every runtime handoff. The repository also contains controllers, sync tooling, networking extensions, workflows, and operational CLIs. Edges below are limited to relationships visible in the README or sampled-source index/excerpts; some major subsystems have no evidenced connection to the overall provisioning flow.
Main entry points: manager.py NetApp Manager · root.go Stack Operator · osclient.py OpenStack Router Client · main.go UnderStack CLI
Components 22
Deployment and CLI
- Stack Operator
go/understackctl/cmd/root/root.go - UnderStack CLI
go/understackctl/main.go
Bare Metal Provisioning
- Provisioning Workflows
python/understack-workflows/understack_workflows/main - Ironic Integration
python/ironic-understack/ironic_understack/drivers - Nova Integration
python/nova-understack/ironic_understack/driver.py - Hardware Metrics Exporter
go/ironic-hardware-exporter/cmd/main.go - Metrics Cache and API
go/ironic-hardware-exporter/internal/server/server.go
Networking
- Neutron Extensions
python/neutron-understack/neutron_understack/routers.py - Router Health CLI
python/kubectl-us/us_cli/commands/router_health.py - OpenStack Router Client
python/kubectl-us/us_cli/osclient.py
Inventory and Sync
- Nautobot Operator
go/nautobotop/internal/controller/nautobot_controller.go - Nautobot Sync Services
go/nautobotop/internal/nautobot/sync - Inventory Diff
python/diff-nautobot-understack/diff_nautobot_understack/project/main.py - OpenStack Sync Hooks
python/openstack-sync/openstack_sync/hooks/router_flavors.py - Router Flavor Reconcile
python/openstack-sync/openstack_sync/plugins/neutron/router_flavors/reconcile.py
Platform Services
- Dex Client Operator
go/dexop/internal/controller/client_controller.go - Dex Service Client
go/dexop/dex/client.go - NetApp Manager
python/understack-workflows/understack_workflows/netapp/manager.py - ONTAP Client
python/understack-workflows/understack_workflows/netapp/client.py - Network Interface Service
python/understack-workflows/understack_workflows/netapp/lif_service.py
Other components
- Operator
- Bare Metal
Connections 13
- Operator → Stack Operator: bootstraps
- Stack Operator → Bare Metal: enables provisioning
- Bare Metal → Ironic Integration: ingested by
- UnderStack CLI → Stack Operator: executes commands
go/understackctl/main.go - Hardware Metrics Exporter → Metrics Cache and API: updates cache
go/ironic-hardware-exporter/cmd/main.go - Nautobot Operator → Nautobot Sync Services: invokes sync
go/nautobotop/internal/controller/nautobot_controller.go - Inventory Diff → OpenStack Router Client
- OpenStack Sync Hooks → Router Flavor Reconcile: reconciles flavors
python/openstack-sync/openstack_sync/hooks/router_flavors.py - Router Health CLI → OpenStack Router Client: uses connection
python/kubectl-us/us_cli/commands/router_health.py - Dex Client Operator → Dex Service Client: manages clients
go/dexop/internal/controller/client_controller.go - Provisioning Workflows → NetApp Manager
- NetApp Manager → ONTAP Client: delegates operations
python/understack-workflows/understack_workflows/netapp/manager.py - NetApp Manager → Network Interface Service: delegates interface work
python/understack-workflows/understack_workflows/netapp/manager.py