foreman_rh_cloud 11.2.0 → 11.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_rh_cloud/locale/fr/foreman_rh_cloud.js +50 -50
- data/app/assets/javascripts/foreman_rh_cloud/locale/ja/foreman_rh_cloud.js +52 -52
- data/app/assets/javascripts/foreman_rh_cloud/locale/ko/foreman_rh_cloud.js +50 -50
- data/app/assets/javascripts/foreman_rh_cloud/locale/zh_CN/foreman_rh_cloud.js +50 -50
- data/app/controllers/insights_cloud/api/machine_telemetries_controller.rb +2 -0
- data/app/services/foreman_rh_cloud/cloud_request_forwarder.rb +1 -1
- data/lib/foreman_rh_cloud/engine.rb +1 -1
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/insights_cloud/async/insights_full_sync.rb +14 -9
- data/lib/insights_cloud/async/insights_resolutions_sync.rb +5 -1
- data/locale/foreman_rh_cloud.pot +2 -2
- data/locale/fr/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
- data/locale/fr/foreman_rh_cloud.po +53 -53
- data/locale/ja/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
- data/locale/ja/foreman_rh_cloud.po +54 -53
- data/locale/ka/foreman_rh_cloud.po +1 -0
- data/locale/ko/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
- data/locale/ko/foreman_rh_cloud.po +53 -52
- data/locale/zh_CN/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
- data/locale/zh_CN/foreman_rh_cloud.po +53 -52
- data/package.json +1 -1
- data/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb +13 -0
- data/test/jobs/insights_full_sync_test.rb +28 -0
- data/test/jobs/insights_resolutions_sync_test.rb +22 -0
- metadata +2 -5
- data/app/assets/javascripts/foreman_rh_cloud/locale/en/foreman_rh_cloud.js +0 -589
- data/locale/en/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
- data/locale/en/foreman_rh_cloud.po +0 -585
@@ -3,10 +3,10 @@
|
|
3
3
|
"locale_data": {
|
4
4
|
"foreman_rh_cloud": {
|
5
5
|
"": {
|
6
|
-
"Project-Id-Version": "foreman_rh_cloud 1.0
|
6
|
+
"Project-Id-Version": "foreman_rh_cloud 11.1.0",
|
7
7
|
"Report-Msgid-Bugs-To": "",
|
8
8
|
"PO-Revision-Date": "2023-01-20 13:26+0000",
|
9
|
-
"Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>,
|
9
|
+
"Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025",
|
10
10
|
"Language-Team": "Korean (https://app.transifex.com/foreman/teams/114/ko/)",
|
11
11
|
"MIME-Version": "1.0",
|
12
12
|
"Content-Type": "text/plain; charset=UTF-8",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"plural_forms": "nplurals=1; plural=0;"
|
19
19
|
},
|
20
20
|
" Sync all inventory status": [
|
21
|
-
""
|
21
|
+
"모든 인벤토리 상태 동기화"
|
22
22
|
],
|
23
23
|
"%s organizations": [
|
24
24
|
"%s 조직"
|
@@ -45,10 +45,10 @@
|
|
45
45
|
"자동 인벤토리 업로드"
|
46
46
|
],
|
47
47
|
"Automatic mismatch deletion": [
|
48
|
-
""
|
48
|
+
"자동 불일치 삭제"
|
49
49
|
],
|
50
50
|
"Cancel": [
|
51
|
-
"취소"
|
51
|
+
"취소 "
|
52
52
|
],
|
53
53
|
"Clear": [
|
54
54
|
"삭제"
|
@@ -87,7 +87,7 @@
|
|
87
87
|
"지정된 호스트에서 Cloud Connector 구성"
|
88
88
|
],
|
89
89
|
"Configure cloud connector": [
|
90
|
-
""
|
90
|
+
"클라우드 커넥터 구성"
|
91
91
|
],
|
92
92
|
"Connectivity test": [
|
93
93
|
"연결성 테스트"
|
@@ -114,7 +114,7 @@
|
|
114
114
|
"최신 보고서 다운로드"
|
115
115
|
],
|
116
116
|
"Enable automatic deletion of mismatched host records from the Red Hat cloud": [
|
117
|
-
""
|
117
|
+
"Red Hat 클라우드에서 일치하지 않는 호스트 기록의 자동 삭제를 활성화하십시오."
|
118
118
|
],
|
119
119
|
"Enable automatic synchronization of Insights recommendations from the Red Hat cloud": [
|
120
120
|
"Red Hat 클라우드에서 Insights 권장 사항의 자동 동기화를 활성화합니다."
|
@@ -150,7 +150,7 @@
|
|
150
150
|
"종료 코드: %s"
|
151
151
|
],
|
152
152
|
"Fetch Insights-related host details": [
|
153
|
-
""
|
153
|
+
"Insights 관련 호스트 세부 정보 가져오기"
|
154
154
|
],
|
155
155
|
"Fetching data about your accounts": [
|
156
156
|
"귀하의 계정에 대한 데이터를 가져오는 중"
|
@@ -165,10 +165,10 @@
|
|
165
165
|
"자세한 내용은 다음에서 참조하세요"
|
166
166
|
],
|
167
167
|
"For more information about Insights and Cloud Connector, see:": [
|
168
|
-
""
|
168
|
+
"Insights 및 Cloud Connector에 대한 자세한 내용은 다음을 참조하세요."
|
169
169
|
],
|
170
170
|
"For more information about the Subscriptions service, see:": [
|
171
|
-
""
|
171
|
+
"서브스크립션 서비스에 대한 자세한 정보는 다음을 참조하십시오:"
|
172
172
|
],
|
173
173
|
"Foreman plugin that process & upload data to Red Hat Cloud": [
|
174
174
|
"Red Hat Cloud에 데이터를 처리하고 업로드하는 Foreman 플러그인"
|
@@ -177,16 +177,16 @@
|
|
177
177
|
"전체 화면"
|
178
178
|
],
|
179
179
|
"Generate and upload report": [
|
180
|
-
""
|
180
|
+
"보고서 생성 및 업로드"
|
181
181
|
],
|
182
182
|
"Generate the report, but do not upload": [
|
183
|
-
""
|
183
|
+
"보고서를 생성하되 업로드하지 마십시오."
|
184
184
|
],
|
185
185
|
"Generating": [
|
186
186
|
"생성 중"
|
187
187
|
],
|
188
188
|
"Go to Foreman Insights page": [
|
189
|
-
""
|
189
|
+
"Foreman Insights 페이지로 이동"
|
190
190
|
],
|
191
191
|
"Go to first page": [
|
192
192
|
"첫 번째 페이지로 이동"
|
@@ -201,7 +201,7 @@
|
|
201
201
|
"이전 페이지로 이동"
|
202
202
|
],
|
203
203
|
"Grab hosts that are missing in RH Cloud": [
|
204
|
-
""
|
204
|
+
"RH Cloud에 없는 호스트를 가져오십시오."
|
205
205
|
],
|
206
206
|
"Host Insights recommendations": [
|
207
207
|
"호스트 Insights 추천"
|
@@ -249,7 +249,7 @@
|
|
249
249
|
"지식베이스 문서"
|
250
250
|
],
|
251
251
|
"List of host UUIDs": [
|
252
|
-
""
|
252
|
+
"호스트 UUID 목록"
|
253
253
|
],
|
254
254
|
"Loading": [
|
255
255
|
"로딩 중 "
|
@@ -354,7 +354,7 @@
|
|
354
354
|
"추천사항이 성공적으로 동기화되었습니다."
|
355
355
|
],
|
356
356
|
"Reconfigure cloud connector": [
|
357
|
-
""
|
357
|
+
"클라우드 커넥터 재구성"
|
358
358
|
],
|
359
359
|
"Red Hat Cloud Inventory": [
|
360
360
|
"Red Hat 클라우드 인벤토리"
|
@@ -396,7 +396,7 @@
|
|
396
396
|
"Satellite 서버에는 Red Hat의 권장 사항이 %{hits_count} 개 있습니다"
|
397
397
|
],
|
398
398
|
"Scoped search string for host removal": [
|
399
|
-
""
|
399
|
+
"호스트 제거를 위한 범위 검색 문자열"
|
400
400
|
],
|
401
401
|
"Select recommendations from all pages": [
|
402
402
|
"모든 페이지에서 추천을 선택하세요"
|
@@ -414,7 +414,7 @@
|
|
414
414
|
"고급 설정 표시"
|
415
415
|
],
|
416
416
|
"Show if system is configured to use local iop-advisor-engine.": [
|
417
|
-
""
|
417
|
+
"시스템이 로컬 iop-advisor-engine을 사용하도록 구성되어 있는지 표시하십시오."
|
418
418
|
],
|
419
419
|
"Start inventory synchronization": [
|
420
420
|
"인벤토리 동기화 시작"
|
@@ -438,16 +438,16 @@
|
|
438
438
|
"추천 사항을 자동으로 동기화합니다"
|
439
439
|
],
|
440
440
|
"The Foreman inventory upload plugin automatically uploads Foreman host inventory data to the Inventory service of Insights, where it can also be used by the Subscriptions service for subscription reporting. If you use the Subscriptions service, enabling inventory uploads is required.": [
|
441
|
-
""
|
441
|
+
"Foreman 인벤토리 업로드 플러그인은 Foreman 호스트 인벤토리 데이터를 자동으로 Insights의 인벤토리 서비스에 업로드하며, 이 데이터는 서브스크립션 보고서를 위한 서브스크립션 서비스에서도 사용할 수 있습니다. 서브스크립션 서비스를 사용하는 경우, 인벤토리 업로드를 활성화하는 것이 필수입니다."
|
442
442
|
],
|
443
443
|
"The Red Hat Hybrid Cloud Console provides a set of cloud services, including Red Hat Insights and Subscriptions, that provide predictive analysis, remediation of issues, and unified subscription reporting for this Foreman instance.": [
|
444
|
-
""
|
444
|
+
"Red Hat 하이브리드 클라우드 콘솔은 이 Foreman 인스턴스를 위한 예측 분석, 문제 해결, 통합된 서브스크립션 보고서를 제공하는 Red Hat Insights와 서브스크립션을 포함한 클라우드 서비스 세트를 제공합니다."
|
445
445
|
],
|
446
446
|
"The report file %{filename} doesn't exist": [
|
447
447
|
"보고서 파일%{filename}이/가 존재하지 않습니다"
|
448
448
|
],
|
449
449
|
"The scheduled process is disabled because this Foreman is configured with the use_local_advisor_engine option.": [
|
450
|
-
""
|
450
|
+
"예약된 프로세스는 이 Foreman이 use_local_advisor_engine 옵션으로 구성되어 있기 때문에 비활성화되었습니다."
|
451
451
|
],
|
452
452
|
"The server returned the following error: %s": [
|
453
453
|
"서버에서 다음 오류가 반환되었습니다. %s"
|
@@ -456,16 +456,16 @@
|
|
456
456
|
"다음 오류로 인해 작업이 실패했습니다."
|
457
457
|
],
|
458
458
|
"There are no recommendations for your hosts": [
|
459
|
-
""
|
459
|
+
"호스트에 대한 권장 사항이 없음"
|
460
460
|
],
|
461
461
|
"This action will also enable automatic reports upload": [
|
462
462
|
"이 작업을 수행하면 자동 보고서 업로드도 활성화됩니다."
|
463
463
|
],
|
464
464
|
"To enable this reporting for all Foreman organizations, set {uploadButtonName} to on. The data will be reported automatically once per day.": [
|
465
|
-
""
|
465
|
+
"이 보고서를 모든 Foreman 조직에 대해 활성화하려면 {uploadButtonName}를 켬으로 설정하십시오. 데이터는 하루에 한 번 자동으로 보고됩니다."
|
466
466
|
],
|
467
467
|
"To manually upload the data for a specific organization, select an organization and click {restartButtonName}.": [
|
468
|
-
""
|
468
|
+
"특정 조직에 대한 데이터를 수동으로 업로드하려면 조직을 선택하고 {restartButtonName}를 클릭하십시오."
|
469
469
|
],
|
470
470
|
"Total risk": [
|
471
471
|
"총 위험"
|
@@ -474,13 +474,13 @@
|
|
474
474
|
"총 위험"
|
475
475
|
],
|
476
476
|
"Upload hits from iop-advisor-engine": [
|
477
|
-
""
|
477
|
+
"iop-advisor-engine에서 히트 업로드"
|
478
478
|
],
|
479
479
|
"Upload hits information": [
|
480
|
-
""
|
480
|
+
"히트 정보 업로드"
|
481
481
|
],
|
482
482
|
"Upload rules related to the hits": [
|
483
|
-
""
|
483
|
+
"히트와 관련된 규칙 업로드"
|
484
484
|
],
|
485
485
|
"Uploading": [
|
486
486
|
"업로드 중"
|
@@ -498,31 +498,31 @@
|
|
498
498
|
"대기 및 %s"
|
499
499
|
],
|
500
500
|
"Whether the resolution requires reboot": [
|
501
|
-
""
|
501
|
+
"해결을 위해 재부팅이 필요한지 여부"
|
502
502
|
],
|
503
503
|
"category name": [
|
504
|
-
""
|
504
|
+
"카테고리 이름"
|
505
505
|
],
|
506
506
|
"generic": [
|
507
|
-
""
|
507
|
+
"일반"
|
508
508
|
],
|
509
509
|
"hosts page": [
|
510
510
|
"호스트 페이지"
|
511
511
|
],
|
512
512
|
"impact name": [
|
513
|
-
""
|
513
|
+
"영향 이름"
|
514
514
|
],
|
515
515
|
"iop payload including resolutions, rules, hits": [
|
516
|
-
""
|
516
|
+
"해결책, 규칙, 히트를 포함한 IOP 페이로드"
|
517
517
|
],
|
518
518
|
"items": [
|
519
519
|
"항목"
|
520
520
|
],
|
521
521
|
"likelihood number": [
|
522
|
-
""
|
522
|
+
"가능성 점수"
|
523
523
|
],
|
524
524
|
"more info": [
|
525
|
-
""
|
525
|
+
"상세 정보"
|
526
526
|
],
|
527
527
|
"page": [
|
528
528
|
"페이지"
|
@@ -531,52 +531,52 @@
|
|
531
531
|
"페이지 당"
|
532
532
|
],
|
533
533
|
"publish date (YYYY-MM-DD)": [
|
534
|
-
""
|
534
|
+
"게시 날짜 (YYYY-MM-DD)"
|
535
535
|
],
|
536
536
|
"rating": [
|
537
|
-
""
|
537
|
+
"등급"
|
538
538
|
],
|
539
539
|
"reason": [
|
540
|
-
""
|
540
|
+
"이유"
|
541
541
|
],
|
542
542
|
"reboot required": [
|
543
|
-
""
|
543
|
+
"재부팅 필요"
|
544
544
|
],
|
545
545
|
"resolution description": [
|
546
|
-
""
|
546
|
+
"해결 방법"
|
547
547
|
],
|
548
548
|
"resolution risk": [
|
549
|
-
""
|
549
|
+
"해결책 리스크"
|
550
550
|
],
|
551
551
|
"result url": [
|
552
|
-
""
|
552
|
+
"결과 URL"
|
553
553
|
],
|
554
554
|
"rule description": [
|
555
|
-
""
|
555
|
+
"규칙 설명"
|
556
556
|
],
|
557
557
|
"rule id": [
|
558
|
-
""
|
558
|
+
"규칙 ID"
|
559
559
|
],
|
560
560
|
"rule title": [
|
561
|
-
""
|
561
|
+
"규칙 제목"
|
562
562
|
],
|
563
563
|
"solution url": [
|
564
|
-
""
|
564
|
+
"솔루션 URL"
|
565
565
|
],
|
566
566
|
"summary": [
|
567
|
-
""
|
567
|
+
"요약"
|
568
568
|
],
|
569
569
|
"total risk": [
|
570
|
-
""
|
570
|
+
"전체 리스크"
|
571
571
|
],
|
572
572
|
"type": [
|
573
|
-
""
|
573
|
+
"유형"
|
574
574
|
],
|
575
575
|
"upload hits details json": [
|
576
|
-
""
|
576
|
+
"히트 상세정보 json 업로드"
|
577
577
|
],
|
578
578
|
"upload resolutions related to the hits": [
|
579
|
-
""
|
579
|
+
"히트와 관련된 해결책 업로드"
|
580
580
|
],
|
581
581
|
"view the job in progress": [
|
582
582
|
"진행중인 작업 보기"
|
@@ -6,7 +6,7 @@
|
|
6
6
|
"Project-Id-Version": "foreman_rh_cloud 11.1.0",
|
7
7
|
"Report-Msgid-Bugs-To": "",
|
8
8
|
"PO-Revision-Date": "2023-01-20 13:26+0000",
|
9
|
-
"Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>,
|
9
|
+
"Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2025",
|
10
10
|
"Language-Team": "Chinese (China) (https://app.transifex.com/foreman/teams/114/zh_CN/)",
|
11
11
|
"MIME-Version": "1.0",
|
12
12
|
"Content-Type": "text/plain; charset=UTF-8",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"plural_forms": "nplurals=1; plural=0;"
|
19
19
|
},
|
20
20
|
" Sync all inventory status": [
|
21
|
-
""
|
21
|
+
" 同步所有清单状态"
|
22
22
|
],
|
23
23
|
"%s organizations": [
|
24
24
|
"%s 机构"
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"自动清单上传"
|
46
46
|
],
|
47
47
|
"Automatic mismatch deletion": [
|
48
|
-
""
|
48
|
+
"自动清单删除"
|
49
49
|
],
|
50
50
|
"Cancel": [
|
51
51
|
"取消"
|
@@ -87,7 +87,7 @@
|
|
87
87
|
"在给定主机上配置 Cloud Connector"
|
88
88
|
],
|
89
89
|
"Configure cloud connector": [
|
90
|
-
""
|
90
|
+
"配置云连接器"
|
91
91
|
],
|
92
92
|
"Connectivity test": [
|
93
93
|
"连接测试"
|
@@ -111,10 +111,10 @@
|
|
111
111
|
"下载报告"
|
112
112
|
],
|
113
113
|
"Download latest report": [
|
114
|
-
"
|
114
|
+
"下载最新的报告"
|
115
115
|
],
|
116
116
|
"Enable automatic deletion of mismatched host records from the Red Hat cloud": [
|
117
|
-
""
|
117
|
+
"启用自动删除来自红帽云的主机记录"
|
118
118
|
],
|
119
119
|
"Enable automatic synchronization of Insights recommendations from the Red Hat cloud": [
|
120
120
|
"启用来自红帽云的 Insights 建议自动同步"
|
@@ -150,7 +150,7 @@
|
|
150
150
|
"退出代码:%s"
|
151
151
|
],
|
152
152
|
"Fetch Insights-related host details": [
|
153
|
-
""
|
153
|
+
"获取与 Insights 相关的主机详情"
|
154
154
|
],
|
155
155
|
"Fetching data about your accounts": [
|
156
156
|
"获取有关您的帐户的数据"
|
@@ -165,10 +165,10 @@
|
|
165
165
|
"如需更多信息,请访问"
|
166
166
|
],
|
167
167
|
"For more information about Insights and Cloud Connector, see:": [
|
168
|
-
""
|
168
|
+
"有关 Insights 和云连接器的更多信息,请参阅"
|
169
169
|
],
|
170
170
|
"For more information about the Subscriptions service, see:": [
|
171
|
-
""
|
171
|
+
"有关订阅服务的更多信息,请参阅:"
|
172
172
|
],
|
173
173
|
"Foreman plugin that process & upload data to Red Hat Cloud": [
|
174
174
|
"处理数据并将其上传到红帽云的 Foreman 插件"
|
@@ -177,16 +177,16 @@
|
|
177
177
|
"全屏"
|
178
178
|
],
|
179
179
|
"Generate and upload report": [
|
180
|
-
""
|
180
|
+
"生成并上传报告"
|
181
181
|
],
|
182
182
|
"Generate the report, but do not upload": [
|
183
|
-
""
|
183
|
+
"生成报告,但不上传"
|
184
184
|
],
|
185
185
|
"Generating": [
|
186
186
|
"生成中"
|
187
187
|
],
|
188
188
|
"Go to Foreman Insights page": [
|
189
|
-
""
|
189
|
+
"进入 Foreman Insights 页面"
|
190
190
|
],
|
191
191
|
"Go to first page": [
|
192
192
|
"前往第一页"
|
@@ -201,7 +201,7 @@
|
|
201
201
|
"前往上一页"
|
202
202
|
],
|
203
203
|
"Grab hosts that are missing in RH Cloud": [
|
204
|
-
""
|
204
|
+
"获取 RH Cloud 中缺少的主机"
|
205
205
|
],
|
206
206
|
"Host Insights recommendations": [
|
207
207
|
"主机 Insights 建议"
|
@@ -249,7 +249,7 @@
|
|
249
249
|
"知识库文章"
|
250
250
|
],
|
251
251
|
"List of host UUIDs": [
|
252
|
-
""
|
252
|
+
"主机 UUID 列表"
|
253
253
|
],
|
254
254
|
"Loading": [
|
255
255
|
"加载"
|
@@ -354,7 +354,7 @@
|
|
354
354
|
"成功同步建议"
|
355
355
|
],
|
356
356
|
"Reconfigure cloud connector": [
|
357
|
-
""
|
357
|
+
"重新配置云连接器"
|
358
358
|
],
|
359
359
|
"Red Hat Cloud Inventory": [
|
360
360
|
"红帽云清单"
|
@@ -396,7 +396,7 @@
|
|
396
396
|
"Satellite 服务器有 %{hits_count} 个红帽提供的建议"
|
397
397
|
],
|
398
398
|
"Scoped search string for host removal": [
|
399
|
-
""
|
399
|
+
"用于删除主机的有范围的搜索字符串"
|
400
400
|
],
|
401
401
|
"Select recommendations from all pages": [
|
402
402
|
"在所有页面中选择建议"
|
@@ -414,7 +414,7 @@
|
|
414
414
|
"显示高级设置"
|
415
415
|
],
|
416
416
|
"Show if system is configured to use local iop-advisor-engine.": [
|
417
|
-
""
|
417
|
+
"显示系统是否被配置为使用本地 iop-advisor-engine。"
|
418
418
|
],
|
419
419
|
"Start inventory synchronization": [
|
420
420
|
"启动清单同步"
|
@@ -438,16 +438,16 @@
|
|
438
438
|
"自动同步建议"
|
439
439
|
],
|
440
440
|
"The Foreman inventory upload plugin automatically uploads Foreman host inventory data to the Inventory service of Insights, where it can also be used by the Subscriptions service for subscription reporting. If you use the Subscriptions service, enabling inventory uploads is required.": [
|
441
|
-
""
|
441
|
+
"Foreman 清单上传插件会自动将 Foreman 主机清单数据上传到 Insights 的 Inventory 服务,订阅服务使用这些信息来提供订阅报告。如果使用订阅服务,则需要启用清单上传。"
|
442
442
|
],
|
443
443
|
"The Red Hat Hybrid Cloud Console provides a set of cloud services, including Red Hat Insights and Subscriptions, that provide predictive analysis, remediation of issues, and unified subscription reporting for this Foreman instance.": [
|
444
|
-
""
|
444
|
+
"Red Hat Hybrid Cloud Console 提供了一组云服务,包括 Red Hat Insights 和订阅,提供预测分析、修复问题以及针对此 Foreman 实例的统一订阅报告。"
|
445
445
|
],
|
446
446
|
"The report file %{filename} doesn't exist": [
|
447
447
|
"报告文件 %{filename} 不存在"
|
448
448
|
],
|
449
449
|
"The scheduled process is disabled because this Foreman is configured with the use_local_advisor_engine option.": [
|
450
|
-
""
|
450
|
+
"调度的进程被禁用,因为此 Foreman 配置了 use_local_advisor_engine 选项。"
|
451
451
|
],
|
452
452
|
"The server returned the following error: %s": [
|
453
453
|
"服务器返回以下错误:%s"
|
@@ -456,16 +456,16 @@
|
|
456
456
|
"任务失败,错误为:"
|
457
457
|
],
|
458
458
|
"There are no recommendations for your hosts": [
|
459
|
-
""
|
459
|
+
"没有适用于您的主机的建议"
|
460
460
|
],
|
461
461
|
"This action will also enable automatic reports upload": [
|
462
462
|
"此操作还会启用自动报告上传"
|
463
463
|
],
|
464
464
|
"To enable this reporting for all Foreman organizations, set {uploadButtonName} to on. The data will be reported automatically once per day.": [
|
465
|
-
""
|
465
|
+
"要为所有 Foreman 机构启用此报告,请将 {uploadButtonName} 设置为 on。数据将每天自动报告一次。"
|
466
466
|
],
|
467
467
|
"To manually upload the data for a specific organization, select an organization and click {restartButtonName}.": [
|
468
|
-
""
|
468
|
+
"要手动上传特定机构的数据,请选择机构并点 {restartButtonName}。"
|
469
469
|
],
|
470
470
|
"Total risk": [
|
471
471
|
"总风险"
|
@@ -474,13 +474,13 @@
|
|
474
474
|
"总风险"
|
475
475
|
],
|
476
476
|
"Upload hits from iop-advisor-engine": [
|
477
|
-
""
|
477
|
+
"从 iop-advisor-engine 上传 hits"
|
478
478
|
],
|
479
479
|
"Upload hits information": [
|
480
|
-
""
|
480
|
+
"上传 hits 信息"
|
481
481
|
],
|
482
482
|
"Upload rules related to the hits": [
|
483
|
-
""
|
483
|
+
"上传与 hits 相关的 rule"
|
484
484
|
],
|
485
485
|
"Uploading": [
|
486
486
|
"上载中"
|
@@ -498,85 +498,85 @@
|
|
498
498
|
"等待和 %s"
|
499
499
|
],
|
500
500
|
"Whether the resolution requires reboot": [
|
501
|
-
""
|
501
|
+
"resolution 是否需要重启"
|
502
502
|
],
|
503
503
|
"category name": [
|
504
|
-
""
|
504
|
+
"类别名称"
|
505
505
|
],
|
506
506
|
"generic": [
|
507
|
-
""
|
507
|
+
"通用"
|
508
508
|
],
|
509
509
|
"hosts page": [
|
510
510
|
"主机页"
|
511
511
|
],
|
512
512
|
"impact name": [
|
513
|
-
""
|
513
|
+
"影响名称"
|
514
514
|
],
|
515
515
|
"iop payload including resolutions, rules, hits": [
|
516
|
-
""
|
516
|
+
"IOP 有效负载,包括 resolutions, rules, hits"
|
517
517
|
],
|
518
518
|
"items": [
|
519
519
|
"项"
|
520
520
|
],
|
521
521
|
"likelihood number": [
|
522
|
-
""
|
522
|
+
"可能性号"
|
523
523
|
],
|
524
524
|
"more info": [
|
525
|
-
""
|
525
|
+
"更多信息"
|
526
526
|
],
|
527
527
|
"page": [
|
528
|
-
"
|
528
|
+
"页"
|
529
529
|
],
|
530
530
|
"per page": [
|
531
531
|
"每页"
|
532
532
|
],
|
533
533
|
"publish date (YYYY-MM-DD)": [
|
534
|
-
""
|
534
|
+
"发布日期 (YYYY-MM-DD)"
|
535
535
|
],
|
536
536
|
"rating": [
|
537
|
-
""
|
537
|
+
"评级"
|
538
538
|
],
|
539
539
|
"reason": [
|
540
|
-
""
|
540
|
+
"原因"
|
541
541
|
],
|
542
542
|
"reboot required": [
|
543
|
-
""
|
543
|
+
"需要重启"
|
544
544
|
],
|
545
545
|
"resolution description": [
|
546
|
-
""
|
546
|
+
"resolution 描述"
|
547
547
|
],
|
548
548
|
"resolution risk": [
|
549
|
-
""
|
549
|
+
"resolution 风险"
|
550
550
|
],
|
551
551
|
"result url": [
|
552
|
-
""
|
552
|
+
"结果 url"
|
553
553
|
],
|
554
554
|
"rule description": [
|
555
|
-
""
|
555
|
+
"rule 描述"
|
556
556
|
],
|
557
557
|
"rule id": [
|
558
|
-
""
|
558
|
+
"rule id"
|
559
559
|
],
|
560
560
|
"rule title": [
|
561
|
-
""
|
561
|
+
"rule 标题"
|
562
562
|
],
|
563
563
|
"solution url": [
|
564
|
-
""
|
564
|
+
"solution url"
|
565
565
|
],
|
566
566
|
"summary": [
|
567
|
-
""
|
567
|
+
"摘要"
|
568
568
|
],
|
569
569
|
"total risk": [
|
570
|
-
""
|
570
|
+
"总风险"
|
571
571
|
],
|
572
572
|
"type": [
|
573
|
-
""
|
573
|
+
"类型"
|
574
574
|
],
|
575
575
|
"upload hits details json": [
|
576
|
-
""
|
576
|
+
"上传 hits 详情 json"
|
577
577
|
],
|
578
578
|
"upload resolutions related to the hits": [
|
579
|
-
""
|
579
|
+
"上传与 hits 相关的 resolutions"
|
580
580
|
],
|
581
581
|
"view the job in progress": [
|
582
582
|
"查看正在进行中的任务"
|
@@ -26,6 +26,8 @@ module InsightsCloud::Api
|
|
26
26
|
return render json: { error: e }, status: :gateway_timeout
|
27
27
|
end
|
28
28
|
|
29
|
+
return render json: { message: @cloud_response.to_s }, status: :gateway_timeout if @cloud_response.is_a?(RestClient::Exceptions::OpenTimeout)
|
30
|
+
|
29
31
|
if @cloud_response.code == 401
|
30
32
|
return render json: {
|
31
33
|
:message => 'Authentication to the Insights Service failed.',
|
@@ -18,7 +18,7 @@ module ForemanRhCloud
|
|
18
18
|
|
19
19
|
execute_cloud_request(request_opts)
|
20
20
|
rescue RestClient::ExceptionWithResponse => error_response
|
21
|
-
error_response.response
|
21
|
+
error_response.response.presence || error_response.exception
|
22
22
|
end
|
23
23
|
|
24
24
|
def prepare_request_opts(original_request, forward_payload, forward_params, certs)
|
@@ -40,7 +40,7 @@ module ForemanRhCloud
|
|
40
40
|
apipie_documented_controllers ["#{ForemanRhCloud::Engine.root}/app/controllers/api/v2/**/*.rb"]
|
41
41
|
|
42
42
|
settings do
|
43
|
-
category(:rh_cloud, N_('
|
43
|
+
category(:rh_cloud, N_('Insights')) do
|
44
44
|
setting('allow_auto_inventory_upload', type: :boolean, description: N_('Enable automatic upload of your host inventory to the Red Hat cloud'), default: true, full_name: N_('Automatic inventory upload'))
|
45
45
|
setting('allow_auto_insights_sync', type: :boolean, description: N_('Enable automatic synchronization of Insights recommendations from the Red Hat cloud'), default: true, full_name: N_('Synchronize recommendations Automatically'))
|
46
46
|
setting('allow_auto_insights_mismatch_delete', type: :boolean, description: N_('Enable automatic deletion of mismatched host records from the Red Hat cloud'), default: false, full_name: N_('Automatic mismatch deletion'))
|
@@ -9,10 +9,11 @@ module InsightsCloud
|
|
9
9
|
|
10
10
|
def plan(organizations)
|
11
11
|
organizations = organizations.select do |organization|
|
12
|
-
|
12
|
+
checker = ::Katello::UpstreamConnectionChecker.new(organization)
|
13
|
+
if cert_auth_available?(organization) && !organization.manifest_expired? && checker.can_connect?
|
13
14
|
true
|
14
15
|
else
|
15
|
-
logger.
|
16
|
+
logger.info("A manifest is not available for org: #{organization.name}, or it has expired, or been deleted. skipping insights sync")
|
16
17
|
false
|
17
18
|
end
|
18
19
|
end
|
@@ -20,19 +21,23 @@ module InsightsCloud
|
|
20
21
|
sequence do
|
21
22
|
# This can be turned off when we enable automatic status syncs
|
22
23
|
# This step will query cloud inventory to retrieve inventory uuids for each host
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
valid_organizations = organizations.reject(&:manifest_expired?)
|
25
|
+
if valid_organizations.any?
|
26
|
+
plan_hosts_sync(organizations)
|
27
|
+
plan_self(organization_ids: organizations.map(&:id))
|
28
|
+
concurrence do
|
29
|
+
plan_rules_sync(organizations)
|
30
|
+
plan_notifications
|
31
|
+
end
|
28
32
|
end
|
29
33
|
end
|
30
34
|
end
|
31
35
|
|
32
36
|
def try_execute
|
33
37
|
organizations.each do |organization|
|
34
|
-
|
35
|
-
|
38
|
+
checker = ::Katello::UpstreamConnectionChecker.new(organization)
|
39
|
+
if !cert_auth_available?(organization) && organization.manifest_expired && !checker.can_connect?
|
40
|
+
logger.info("A manifest is not available for org: #{organization.name}, or it has expired, or been deleted. skipping insights sync")
|
36
41
|
next
|
37
42
|
end
|
38
43
|
|