@@ -75,6 +75,8 @@ def fix_app_setting_data(cluster: Cluster, instance: StorageInstance, sync_mode:
75
75
if status :
76
76
is_fix = 1
77
77
SqlserverCheckAppSettingReport .objects .create (
78
+ bk_cloud_id = cluster .bk_cloud_id ,
79
+ bk_biz_id = cluster .bk_biz_id ,
78
80
cluster = cluster .name ,
79
81
cluster_type = cluster .cluster_type ,
80
82
instance_host = instance .machine .ip ,
@@ -132,6 +134,8 @@ def add_app_setting_data(cluster: Cluster, instance: StorageInstance):
132
134
msg = "fix successfully"
133
135
134
136
SqlserverCheckAppSettingReport .objects .create (
137
+ bk_cloud_id = cluster .bk_cloud_id ,
138
+ bk_biz_id = cluster .bk_biz_id ,
135
139
cluster = cluster .name ,
136
140
cluster_type = cluster .cluster_type ,
137
141
instance_host = instance .machine .ip ,
@@ -156,6 +160,8 @@ def check_app_setting_data(self, cluster: Cluster):
156
160
if data is None :
157
161
# 如果返回是空则,则大概率是访问异常,录入异常信息,跳过这次的校验
158
162
SqlserverCheckAppSettingReport .objects .create (
163
+ bk_cloud_id = cluster .bk_cloud_id ,
164
+ bk_biz_id = cluster .bk_biz_id ,
159
165
cluster = cluster .name ,
160
166
cluster_type = cluster .cluster_type ,
161
167
instance_host = instance .machine .ip ,
@@ -201,6 +207,8 @@ def check_user(master_instance: StorageInstance, slave_instance: StorageInstance
201
207
)
202
208
if not status :
203
209
SqlserverCheckUserSyncReport .objects .create (
210
+ bk_cloud_id = cluster .bk_cloud_id ,
211
+ bk_biz_id = cluster .bk_biz_id ,
204
212
cluster = cluster .name ,
205
213
cluster_type = cluster .cluster_type ,
206
214
instance_host = slave_instance .machine .ip ,
@@ -224,6 +232,8 @@ def check_job(master_instance: StorageInstance, slave_instance: StorageInstance,
224
232
)
225
233
if not status :
226
234
SqlserverCheckJobSyncReport .objects .create (
235
+ bk_cloud_id = cluster .bk_cloud_id ,
236
+ bk_biz_id = cluster .bk_biz_id ,
227
237
cluster = cluster .name ,
228
238
cluster_type = cluster .cluster_type ,
229
239
instance_host = slave_instance .machine .ip ,
@@ -247,6 +257,8 @@ def check_link_server(master_instance: StorageInstance, slave_instance: StorageI
247
257
)
248
258
if not status :
249
259
SqlserverCheckLinkServerReport .objects .create (
260
+ bk_cloud_id = cluster .bk_cloud_id ,
261
+ bk_biz_id = cluster .bk_biz_id ,
250
262
cluster = cluster .name ,
251
263
cluster_type = cluster .cluster_type ,
252
264
instance_host = slave_instance .machine .ip ,
@@ -265,6 +277,8 @@ def check_job_is_disabled(cluster: Cluster):
265
277
if not status :
266
278
# 只有异常才记录
267
279
SqlserverCheckSysJobStatuReport .objects .create (
280
+ bk_cloud_id = cluster .bk_cloud_id ,
281
+ bk_biz_id = cluster .bk_biz_id ,
268
282
cluster = cluster .name ,
269
283
cluster_type = cluster .cluster_type ,
270
284
instance_host = instance .machine .ip ,
0 commit comments