问题描述
一台生产环境出现修改用户 17 密码失败,以及 test user2 password 失败
查看日志报错无法获取 KMC 密钥长度,以及 KMC not running
2026-06-12 01:16:47.957878 account ERROR: [C](65535): [WSEC_CBB][][99] (UTC) 2026-06-12 01:16:47 KMC not running.
2026-06-12 01:16:47.958322 account ERROR: [C](65535): [WSEC_CBB][][769] (UTC) 2026-06-12 01:16:47 [SDP] GetWorkKeyByIDHash get WK failed 155.
2026-06-12 01:16:47.958663 account ERROR: [C](65535): [WSEC_CBB][][907] (UTC) 2026-06-12 01:16:47 [SDP] SdpDecryptDataV2 get WK failed 155.
2026-06-12 01:16:47.959176 account ERROR: kmc_client.lua(46): decrypt failed, decrypt failed, ret = 155
2026-06-12 01:16:47.964385 iam ERROR: engine.lua(27): BMC.Error.Unknow: pack failed, error: pack binary failed: unknow field CompletionCode.
2026-06-12 01:16:49.036113 account ERROR: [C](65535): [WSEC_CBB][][99] (UTC) 2026-06-12 01:16:49 KMC not running.
2026-06-12 01:16:49.036587 account ERROR: [C](65535): [WSEC_CBB][][769] (UTC) 2026-06-12 01:16:49 [SDP] GetWorkKeyByIDHash get WK failed 155.
2026-06-12 01:16:49.036946 account ERROR: [C](65535): [WSEC_CBB][][907] (UTC) 2026-06-12 01:16:49 [SDP] SdpDecryptDataV2 get WK failed 155.
2026-06-12 01:16:49.037460 account ERROR: kmc_client.lua(46): decrypt failed, decrypt failed, ret = 155
2026-06-12 01:16:49.042154 iam ERROR: engine.lua(27): BMC.Error.Unknow: pack failed, error: pack binary failed: unknow field CompletionCode.
2026-06-12 01:16:50.129947 account ERROR: [C](65535): [WSEC_CBB][][99] (UTC) 2026-06-12 01:16:50 KMC not running.
2026-06-12 01:16:50.130335 account ERROR: [C](65535): [WSEC_CBB][][769] (UTC) 2026-06-12 01:16:50 [SDP] GetWorkKeyByIDHash get WK failed 155.
2026-06-12 01:16:50.131875 account ERROR: [C](65535): [WSEC_CBB][][907] (UTC) 2026-06-12 01:16:50 [SDP] SdpDecryptDataV2 get WK failed 155.
2026-06-12 01:16:50.132529 account ERROR: kmc_client.lua(46): decrypt failed, decrypt failed, ret = 155
2026-06-12 01:16:50.136985 iam ERROR: engine.lua(27): BMC.Error.Unknow: pack failed, error: pack binary failed: unknow field CompletionCode.
2026-06-12 01:16:51.209979 account ERROR: [C](65535): [WSEC_CBB][][99] (UTC) 2026-06-12 01:16:51 KMC not running.
2026-06-12 01:16:51.210381 account ERROR: [C](65535): [WSEC_CBB][][769] (UTC) 2026-06-12 01:16:51 [SDP] GetWorkKeyByIDHash get WK failed 155.
2026-06-12 01:16:51.210831 account ERROR: [C](65535): [WSEC_CBB][][907] (UTC) 2026-06-12 01:16:51 [SDP] SdpDecryptDataV2 get WK failed 155.
2026-06-12 01:16:51.212136 account ERROR: kmc_client.lua(46): decrypt failed, decrypt failed, ret = 155
2026-06-12 01:16:51.216636 iam ERROR: engine.lua(27): BMC.Error.Unknow: pack failed, error: pack binary failed: unknow field CompletionCode.
2026-06-12 01:16:52.304734 account ERROR: [C](65535): [WSEC_CBB][][99] (UTC) 2026-06-12 01:16:52 KMC not running.
2026-06-12 01:16:52.305188 account ERROR: [C](65535): [WSEC_CBB][][769] (UTC) 2026-06-12 01:16:52 [SDP] GetWorkKeyByIDHash get WK failed 155.
2026-06-12 01:16:52.305716 account ERROR: [C](65535): [WSEC_CBB][][907] (UTC) 2026-06-12 01:16:52 [SDP] SdpDecryptDataV2 get WK failed 155.
2026-06-12 01:16:52.306294 account ERROR: kmc_client.lua(46): decrypt failed, decrypt failed, ret = 155
2026-06-12 01:16:52.310465 iam ERROR: engine.lua(27): BMC.Error.Unknow: pack failed, error: pack binary failed: unknow field CompletionCode.
026-06-12 01:18:57.975368 snmp NOTICE: key_client.lua(91): WsecInitialize sucess
2026-06-12 01:18:57.975621 snmp NOTICE: kmc.c(124): initialize the agent of kmc successfully.
2026-06-12 01:19:01.098779 account ERROR: operation_logger.lua(640): ChangeAccountPwd: nil 155
2026-06-12 01:19:01.106597 account ERROR: engine.lua(27): BMC.Error.Unknow: ...t/bmc/apps/account/lualib/interface/operation_logger.lua:643: ...ps/account/lualib/infrastructure/ipmi_running_record.lua:97: ./opt/bmc/apps/account/lualib/infrastructure/kmc_client.lua:55: get ciphertext len failed, ret = 155
2026-06-12 01:19:02.229601 account ERROR: operation_logger.lua(640): ChangeAccountPwd: nil 155
2026-06-12 01:19:02.237239 account ERROR: engine.lua(27): BMC.Error.Unknow: ...t/bmc/apps/account/lualib/interface/operation_logger.lua:643: ...ps/account/lualib/infrastructure/ipmi_running_record.lua:97: ./opt/bmc/apps/account/lualib/infrastructure/kmc_client.lua:55: get ciphertext len failed, ret = 155
2026-06-12 01:19:03.342610 account ERROR: operation_logger.lua(640): ChangeAccountPwd: nil 155
2026-06-12 01:19:03.345107 account ERROR: engine.lua(27): BMC.Error.Unknow: ...t/bmc/apps/account/lualib/interface/operation_logger.lua:643: ...ps/account/lualib/infrastructure/ipmi_running_record.lua:97: ./opt/bmc/apps/account/lualib/infrastructure/kmc_client.lua:55: get ciphertext len failed, ret = 155
2026-06-12 01:19:04.452004 account ERROR: operation_logger.lua(640): ChangeAccountPwd: nil 155
2026-06-12 01:19:04.458634 account ERROR: engine.lua(27): BMC.Error.Unknow: ...t/bmc/apps/account/lualib/interface/operation_logger.lua:643: ...ps/account/lualib/infrastructure/ipmi_running_record.lua:97: ./opt/bmc/apps/account/lualib/infrastructure/kmc_client.lua:55: get ciphertext len failed, ret = 155
2026-06-12 01:19:05.568781 account ERROR: operation_logger.lua(640): ChangeAccountPwd: nil 155
2026-06-12 01:19:05.573918 account ERROR: engine.lua(27): BMC.Error.Unknow: ...t/bmc/apps/account/lualib/interface/operation_logger.lua:643: ...ps/account/lualib/infrastructure/ipmi_running_record.lua:97: ./opt/bmc/apps/account/lualib/infrastructure/kmc_client.lua:55: get ciphertext len failed, ret = 155
2026-06-12 01:19:06.720787 account ERROR: operation_logger.lua(640): ChangeAccountPwd: nil 155
2026-06-12 01:19:06.739547 account ERROR: engine.lua(27): BMC.Error.Unknow: ...t/bmc/apps/account/lualib/interface/operation_logger.lua:643: ...ps/account/lualib/infrastructure/ipmi_running_record.lua:97: ./opt/bmc/apps/account/lualib/infrastructure/kmc_client.lua:55: get ciphertext len failed, ret = 155
2026-06-11 23:52:13.878395 event_policy ERROR: app_preloader.lua(232): ./opt/bmc/lualib/key_mgmt/key_client_lib.lua:106: app(event_policy/service/main) count(7) pcall failed(./opt/bmc/libmc/lualib/mc/logging.lua:458: kmc refresh mk mask (ex) failed, ret = 155)
2026-06-11 23:52:14.560923 product_mgmt ERROR: [C](65535): [WSEC_CBB][][99] (UTC) 2026-06-11 23:52:14 KMC not running.
2026-06-11 23:52:14.561528 product_mgmt ERROR: app_preloader.lua(232): ./opt/bmc/lualib/key_mgmt/key_client_lib.lua:106: app(product_mgmt/service/main) count(7) pcall failed(./opt/bmc/libmc/lualib/mc/logging.lua:458: kmc refresh mk mask (ex) failed, ret = 155)
2026-06-11 23:52:16.638605 product_mgmt ERROR: [C](65535): [WSEC_CBB][][99] (UTC) 2026-06-11 23:52:16 KMC not running.
2026-06-11 23:52:16.639093 product_mgmt ERROR: app_preloader.lua(232): ./opt/bmc/lualib/key_mgmt/key_client_lib.lua:106: app(product_mgmt/service/main) count(7) pcall failed(./opt/bmc/libmc/lualib/mc/logging.lua:458: kmc refresh mk mask (ex) failed, ret = 155)
2026-06-11 23:52:18.462177 remote_console ERROR: [C](65535): [WSEC_CBB][][99] (UTC) 2026-06-11 23:52:18 KMC not running.
2026-06-11 23:52:18.462982 remote_console ERROR: app_preloader.lua(232): ./opt/bmc/lualib/key_mgmt/key_client_lib.lua:106: app(remote_console/service/main) count(7) pcall failed(./opt/bmc/libmc/lualib/mc/logging.lua:458: kmc refresh mk mask (ex) failed, ret = 155)
2026-06-11 23:52:23.876993 event_policy NOTICE: key_client_lib.lua(107): Start Refresh MK Mask.
2026-06-11 23:52:24.550481 product_mgmt NOTICE: key_client_lib.lua(107): Start Refresh MK Mask.
2026-06-11 23:52:26.117616 account ERROR: [C](65535): [WSEC_CBB][][99] (UTC) 2026-06-11 23:52:26 KMC not running.
2026-06-11 23:52:26.118708 account ERROR: app_preloader.lua(232): ./opt/bmc/lualib/key_mgmt/key_client_lib.lua:106: app(account/service/main) count(7) pcall failed(./opt/bmc/libmc/lualib/mc/logging.lua:458: kmc refresh mk mask (ex) failed, ret = 155)
看起来问题与 key_mgmt 闭源模块相关,请帮忙确认问题根因谢谢
环境信息
社区 LTS SP1 基线
