HydraIssues

Node API returns null provision_state even when set in store
open bug Project: hydracluster Reporter: 23 Mar 2026 14:15

Description

## Problem

`GET /api/v1/nodes/{id}` returns `provision_state: null` even when the YAML store has a valid provision state (e.g. `status: pending`). This makes it impossible to debug provisioning issues via the API.

Discovered during Brussels district enrollment — the web UI provision trigger was working (YAML store updated) but the API showed null.

## Fix

Ensure `provision_state` is correctly serialized in the node API response. Check if the Node struct serialization skips the field when the map is initialized but has entries.