From 378b2be757f8c2b917bb846c57bf53fbfc9cceb5 Mon Sep 17 00:00:00 2001 From: "zhongqi.liu" Date: Fri, 24 Apr 2026 02:16:58 -0500 Subject: [PATCH] [conf]: add ORG_ZSTACK_AI_10159 for model service startup timeout Resolves: ZSTAC-84677 Allocate a dedicated error code for the "model service instance startup timeout" failure path in AIModelManagerImpl. Before this change, that path reused ORG_ZSTACK_AI_10144 (owned by VmModelMountManager for "mount path already used"), causing the UI to render the unrelated Chinese mount-conflict template with unfilled %s slots for a health-check timeout. - Declare ORG_ZSTACK_AI_10159 in CloudOperationsErrorCode - Add the Chinese localization in global-error-zh_CN.json --- conf/i18n/globalErrorCodeMapping/global-error-zh_CN.json | 3 ++- .../zstack/utils/clouderrorcode/CloudOperationsErrorCode.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/i18n/globalErrorCodeMapping/global-error-zh_CN.json b/conf/i18n/globalErrorCodeMapping/global-error-zh_CN.json index 826e57aa36..1369c59bbf 100644 --- a/conf/i18n/globalErrorCodeMapping/global-error-zh_CN.json +++ b/conf/i18n/globalErrorCodeMapping/global-error-zh_CN.json @@ -4733,5 +4733,6 @@ "ORG_ZSTACK_AI_10147": "挂载记录[uuid:%s]未找到", "ORG_ZSTACK_AI_10148": "挂载记录「%s」(UUID: %s) 未处于已挂载状态,当前状态: %s", "ORG_ZSTACK_AI_10149": "挂载模型到虚拟机失败: %s", - "ORG_ZSTACK_AI_10150": "模型「%s」(UUID: %s) 已挂载到虚拟机「%s」(UUID: %s),路径: %s。\n每个模型在每个虚拟机上只能挂载一次。" + "ORG_ZSTACK_AI_10150": "模型「%s」(UUID: %s) 已挂载到虚拟机「%s」(UUID: %s),路径: %s。\n每个模型在每个虚拟机上只能挂载一次。", + "ORG_ZSTACK_AI_10159": "推理服务实例(UUID: %s)启动超时(%s 秒),原因: %s" } diff --git a/utils/src/main/java/org/zstack/utils/clouderrorcode/CloudOperationsErrorCode.java b/utils/src/main/java/org/zstack/utils/clouderrorcode/CloudOperationsErrorCode.java index 720902d8b3..e5c8939da9 100644 --- a/utils/src/main/java/org/zstack/utils/clouderrorcode/CloudOperationsErrorCode.java +++ b/utils/src/main/java/org/zstack/utils/clouderrorcode/CloudOperationsErrorCode.java @@ -14933,6 +14933,7 @@ public class CloudOperationsErrorCode { public static final String ORG_ZSTACK_AI_10157 = "ORG_ZSTACK_AI_10157"; public static final String ORG_ZSTACK_AI_10158 = "ORG_ZSTACK_AI_10158"; + public static final String ORG_ZSTACK_AI_10159 = "ORG_ZSTACK_AI_10159"; public static final String ORG_ZSTACK_CORE_CLOUDBUS_10000 = "ORG_ZSTACK_CORE_CLOUDBUS_10000";