feat(backend): 修复bkvision sdk安全工单问题 #16276#16292
Open
teng00123 wants to merge 1 commit intoTencentBlueKing:v1.5.0from
Open
feat(backend): 修复bkvision sdk安全工单问题 #16276#16292teng00123 wants to merge 1 commit intoTencentBlueKing:v1.5.0from
teng00123 wants to merge 1 commit intoTencentBlueKing:v1.5.0from
Conversation
dd35c4a to
dd01f06
Compare
iSecloud
reviewed
Feb 10, 2026
dbm-ui/backend/db_meta/models/app.py
Outdated
| 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") |
|
|
||
| from backend.db_meta import api | ||
|
|
||
| logger = logging.getLogger("db_meta") |
Collaborator
There was a problem hiding this comment.
用:logger = logging.getLogger("root") 没有db_meta的logger
下面的logger一起修改下
| skipped_info += _("等 {} 个集群").format(len(skipped_clusters)) | ||
|
|
||
| raise serializers.ValidationError(_("所有集群版本已是最新或无法升级,无需升级。跳过的集群: {}").format(skipped_info)) | ||
| raise serializers.ValidationError(_("所有集群版本已是最新或无法升级,无需升级。")) |
| except ValueError as e: | ||
| # TdbctlUpgradeHandler 抛出的参数错误 | ||
| raise serializers.ValidationError(str(e)) | ||
| logger.error(f"TdbctlUpgradeSerializer validate ValueError: {e}") |
| except Exception as e: | ||
| # 其他异常 | ||
| raise serializers.ValidationError(_("校验集群时发生错误: {}").format(str(e))) | ||
| logger.error(f"TdbctlUpgradeSerializer validate Exception: {e}") |
| 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") |
| ) | ||
| 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"])) |
| password_info["nodes"], username, result | ||
| ) | ||
| ) | ||
| logger.error("save user password fail, error: {}".format(result)) |
| username=MongoDBManagerUser.WebconsoleUser.value, | ||
| ) | ||
|
|
||
| logger.info( |
| password_info["nodes"], username, result | ||
| ) | ||
| ) | ||
| logger.error("save user password fail, error: {}".format(result)) |
69d577b to
8fd24b4
Compare
8fd24b4 to
6167357
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.