From aa88279681df1afb755d8f926f4384846a2f8e91 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Mon, 7 Apr 2025 14:23:40 +0200 Subject: [PATCH] fix(storcon/http): node status API returns serialized runtime object (#11461) The Serialize impl on the `Node` type is for the `/debug` endpoint only. Committed APIs should use the `NodeDescribeResponse`. Refs - fixes https://github.com/neondatabase/neon/issues/11326 - found while working on admin UI change https://github.com/neondatabase/cloud/pull/26207 --- storage_controller/src/http.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage_controller/src/http.rs b/storage_controller/src/http.rs index 0caf6e3766..0d1dc8f8ee 100644 --- a/storage_controller/src/http.rs +++ b/storage_controller/src/http.rs @@ -899,7 +899,7 @@ async fn handle_node_status(req: Request) -> Result, ApiErr let state = get_state(&req); let node_id: NodeId = parse_request_param(&req, "node_id")?; - let node_status = state.service.get_node(node_id).await?; + let node_status = state.service.get_node(node_id).await?.describe(); json_response(StatusCode::OK, node_status) }