0ebf137776
Clarify lab UME TLS verify after default flipped to true.
...
Point .env.example at NETX_UME_VERIFY_TLS=false for self-signed UME and surface the same hint on certificate verify login failures.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 15:11:21 +08:00
635cd52d4f
fix(ume): accept empty JSON body on successful delete-subscription
...
Parse 204/empty UME responses without JSONDecodeError; improve request error messages and orphan-delete failure reporting.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 21:01:24 +08:00
a8b359f60d
fix(ume): cancel alarm subscription with DELETE and surface failures
...
Use DELETE delete-subscription, refresh token before cancel, recover orphan subs on establish, and keep local state when UME delete fails.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 20:47:59 +08:00
4f8735a83f
feat(ume): real-time current alarms via WebSocket subscription
...
Add WS consumer, persisted subscription store, manual subscribe/cancel APIs, and UI controls; extend sync and tests.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 20:27:43 +08:00
ea7931496c
Fix deadlock: renew_token must not call login while holding _token_lock
...
Non-reentrant Lock caused /v1/ume/token/refresh to hang when handshake failed or token empty inside renew; UI stuck on 续期中.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-12 10:03:20 +08:00
def534e0a6
Fix UME token store sync: load token when expires_at is 0, clear stale memory
...
Previously exp>mem_exp blocked loading when both were 0 (restart + DB row with missing expiry). Also clear in-memory token when DB row is cleared so token/status matches store after disconnect.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-12 09:37:07 +08:00
037873423d
feat(UME): 网元与告警统一marker分页能力
...
将 marker 分页逻辑抽象为通用流程并同时应用于网元和告警同步,默认按 limit+marker 拉取全量数据,统一处理 is-end-of-reply、缺失marker和重复页保护。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-08 21:44:21 +08:00
00afaaae3d
fix(UME): 兼容首批无marker场景并补充回归测试
...
告警分页在响应头缺失 marker 时直接结束迭代,避免首批已全量却重复翻页;同时补充对应单测并保持 HTTPTransport 传输方式与现网一致。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-08 20:13:10 +08:00
2c0b52d972
fix(UME): 改用HTTPTransport并增强token失败提示
...
UME 客户端改为显式 HTTPTransport 以匹配现网可用链路,前端在手动登录/续期或断开 token 失败时优先展示后端返回的错误信息,便于快速定位问题。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-08 19:15:10 +08:00
267eddb273
feat(UME): 切换marker分页并简化告警表字段
...
告警同步改为按响应头 marker 连续迭代,支持 iterator is null 的500尾页兜底,同时移除告警表中的 ne_name/user_label 冗余字段,统一在查询层与网元表 join 补齐展示信息。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-08 18:58:24 +08:00
3396111f2d
fix(UME): 按现场实测调整请求头并强制HTTP/1.1
...
- 请求头仅保留 content-type 与 accessToken,不再发送 accept/application
- 统一通过 httpx.Client(http2=False) 调用,避免 UME 在 HTTP/2 下超时
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-08 11:36:06 +08:00
7f2e4ec393
feat(UME): 增加RESTCONF对接与可视化运维页
...
- 支持 token 获取/续约/断开、DB共享缓存与跨进程单飞锁、keepalive 保活
- 新增 inventory/current/history 告警同步入库与查询接口,前端增加 UME 对接页面与分页
- 修复 stop_netx.ps1 在部分 PowerShell 版本下 Stop-Job -Force 报错
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-08 01:36:53 +08:00