chore: add trouble shooting for system cluster status error#276
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds troubleshooting documentation for a system cluster status error that occurs in INFINI Console versions 1.29.0 and 1.29.1. The documentation is provided in both English and Chinese, and includes a screenshot and a solution using an Elasticsearch update query.
Changes:
- Added troubleshooting documentation for system cluster status display issue
- Added screenshot illustrating the problem
- Updated feature list in English documentation index
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| docs/static/img/troubleshooting/cluster_unavilabe.png | Screenshot showing the cluster unavailable error (note: filename has spelling error) |
| docs/content.zh/docs/troubleshooting/_index.md | Chinese troubleshooting documentation with solution script |
| docs/content.en/docs/troubleshooting/_index.md | English troubleshooting documentation with solution script |
| docs/content.en/docs/_index.md | Updated feature list with version support details |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| ### System cluster status shows as unavailable | ||
| as shown below: | ||
| {{% load-img "/img/troubleshooting/cluster_unavilabe.png" "System cluster status shows as unavailable" %}} |
There was a problem hiding this comment.
The image reference contains the same spelling error as the filename. "unavilabe" should be "unavailable". This must match the corrected filename.
| {{% load-img "/img/troubleshooting/cluster_unavilabe.png" "System cluster status shows as unavailable" %}} | |
| {{% load-img "/img/troubleshooting/cluster_unavailable.png" "System cluster status shows as unavailable" %}} |
|
|
||
| Upgrade the Elasticsearch cluster version of the INFINI Console storage data to v7.0+ | ||
|
|
||
| ### System cluster status shows as unavailable |
There was a problem hiding this comment.
Missing space after the heading. There should be a space between "as" and "shown" to maintain consistent formatting.
| ### System cluster status shows as unavailable | |
| ### System cluster status shows as unavailable |
| } | ||
| }, | ||
| "script": { | ||
| "source": "ctx._source.labels = ['health_status': params.status]", |
There was a problem hiding this comment.
The Painless script has incorrect syntax. The script is attempting to assign a list with a map-like syntax which is invalid. It should be a map assignment. The correct syntax should be: "ctx._source.labels = ['health_status': params.status]" should be changed to use proper map syntax like "ctx._source.labels = ['health_status': params.status]" or more correctly "ctx._source.labels.health_status = params.status" depending on the data structure.
| "source": "ctx._source.labels = ['health_status': params.status]", | |
| "source": "ctx._source.labels.health_status = params.status", |
| } | ||
| }, | ||
| "script": { | ||
| "source": "ctx._source.labels = ['health_status': params.status]", |
There was a problem hiding this comment.
The Painless script has incorrect syntax. The script is attempting to assign a list with a map-like syntax which is invalid. It should be a map assignment. The correct syntax should be: "ctx._source.labels = ['health_status': params.status]" should be changed to use proper map syntax like "ctx._source.labels = ['health_status': params.status]" or more correctly "ctx._source.labels.health_status = params.status" depending on the data structure.
| "source": "ctx._source.labels = ['health_status': params.status]", | |
| "source": "ctx._source.labels.health_status = params.status", |
| ### 系统集群状态显示为不可用 | ||
|
|
||
| 如下如所示: | ||
| {{% load-img "/img/troubleshooting/cluster_unavilabe.png" "系统集群状态显示为不可用" %}} |
There was a problem hiding this comment.
The image reference contains the same spelling error as the filename. "unavilabe" should be "unavailable". This must match the corrected filename.
| {{% load-img "/img/troubleshooting/cluster_unavilabe.png" "系统集群状态显示为不可用" %}} | |
| {{% load-img "/img/troubleshooting/cluster_unavailable.png" "系统集群状态显示为不可用" %}} |
What does this PR do
Rationale for this change
Standards checklist