Skip to content

feat(backend): 修复bkvision sdk安全工单问题 #16276#16292

Open
teng00123 wants to merge 1 commit intoTencentBlueKing:v1.5.0from
teng00123:feat/teng/#16276
Open

feat(backend): 修复bkvision sdk安全工单问题 #16276#16292
teng00123 wants to merge 1 commit intoTencentBlueKing:v1.5.0from
teng00123:feat/teng/#16276

Conversation

@teng00123
Copy link
Collaborator

No description provided.

app = cls.objects.get(bk_biz_id=bk_biz_id)
except AppCache.DoesNotExist:
logger.error("AppCache.get_app_attr: app not exist, bk_biz_id=%s", bk_biz_id)
logger.error("AppCache.get_app_attr: app not exist")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revoke


from backend.db_meta import api

logger = logging.getLogger("db_meta")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用:logger = logging.getLogger("root") 没有db_meta的logger
下面的logger一起修改下

skipped_info += _("等 {} 个集群").format(len(skipped_clusters))

raise serializers.ValidationError(_("所有集群版本已是最新或无法升级,无需升级。跳过的集群: {}").format(skipped_info))
raise serializers.ValidationError(_("所有集群版本已是最新或无法升级,无需升级。"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revoke

except ValueError as e:
# TdbctlUpgradeHandler 抛出的参数错误
raise serializers.ValidationError(str(e))
logger.error(f"TdbctlUpgradeSerializer validate ValueError: {e}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revoke

except Exception as e:
# 其他异常
raise serializers.ValidationError(_("校验集群时发生错误: {}").format(str(e)))
logger.error(f"TdbctlUpgradeSerializer validate Exception: {e}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revoke

sk_data = DBPrivManagerApi.get_password(query_sk_params)
if not sk_data["items"]:
logger.error("{} cannot get auth info secret_key from password service".format(account_id))
logger.error("cannot get auth info secret_key from password service")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revoke

)
if result["password"] is None:
logger.error("user:{} get password fail from db, error:{}".format(user, result["info"]))
logger.error("user: get password fail from db, error:{}".format(result["info"]))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revoke

password_info["nodes"], username, result
)
)
logger.error("save user password fail, error: {}".format(result))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revoke

username=MongoDBManagerUser.WebconsoleUser.value,
)

logger.info(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revoke

password_info["nodes"], username, result
)
)
logger.error("save user password fail, error: {}".format(result))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revoke

@teng00123 teng00123 force-pushed the feat/teng/#16276 branch 7 times, most recently from 69d577b to 8fd24b4 Compare February 10, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants