Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

接入自建集群时 后台日志报错 #1738

Closed
Tracked by #1805
ElfenSterben opened this issue Aug 11, 2023 · 9 comments
Closed
Tracked by #1805

接入自建集群时 后台日志报错 #1738

ElfenSterben opened this issue Aug 11, 2023 · 9 comments
Assignees
Labels
kind/bug BUG Feedback
Milestone

Comments

@ElfenSterben
Copy link

Describe the bug
接入自建集群时 后台日志报错
15:22 [ERROR] localhost [get] /app/ui/console/views/enterprise.py:602 'NoneType' object has no attribute 'region_id' File "/app/ui/console/views/enterprise.py", line 597, in get region_resource = region_services.conver_region_info(region, "yes") File "/app/ui/console/services/region_services.py", line 595, in conver_region_info region_resource = self.__init_region_resource_data(region, level) File "/app/ui/console/services/region_services.py", line 553, in __init_region_resource_data region_resource["region_id"] = region.region_id 'NoneType' object has no attribute 'region_id'

Screenshots
image

The relevant information:

  • Rainbond Version: v5.15.0-release-dc96b875e-2023-08-01-13-allinone
  • Browser [e.g. chrome, safari] (if it is the front-end bugs, please provide)
  • Kubernetes version: 1.27.4
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: When connecting to self-built cluster, the background log reports an error

@yangkaa
Copy link
Collaborator

yangkaa commented Aug 18, 2023

通过哪种方式安装并接入的?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


How was it installed and accessed?

@ElfenSterben
Copy link
Author

通过哪种方式安装并接入的?

通过 docker 启动 rainbond 的 allinone 镜像之后,选择 平台管理 > 集群 -> 添加集群 -> 接入自建集群,然后按照 接入自建集群 的指示操作完成安装之后,在 rainbond 的集群接入等待页面依旧提示错误,查看 rainbond 的日志发现如问题所示的错误

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


How was it installed and accessed?

After starting the allinone image of rainbond through docker, select Platform Management > Cluster -> Add Cluster -> Access Self-built Cluster, and then follow the instructions for accessing self-built cluster. After the installation is completed, the cluster access waiting page of rainbond still prompts Error, check the rainbond log and find the error shown in the question

@yangkaa
Copy link
Collaborator

yangkaa commented Aug 21, 2023

那这可能是一个bug,你现在应该可以通过以下方式绕过

  1. 安装 grctl 命令行工具 https://www.rainbond.com/docs/ops-guide/tools/grctl
  2. 在已经安装好 rainbond 集群端的集群中,执行 grctl config
  3. 复制输出的所有内容后回到控制台
  4. 平台管理 > 集群 -> 添加集群,此时右上角有三个横着的点,鼠标移动上去,选择接入已安装平台集群,如下图所示
image 5. 把第三步复制的内容,粘贴在配置里,上面的集群ID和集群名自定义即可。点击保存应该就可以对接成功

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Then this may be a bug, you should now be able to bypass the following ways

  1. Install the grctl command line tool https://www.rainbond.com/docs/ops-guide/tools/grctl
  2. In the cluster where the rainbow cluster has been installed, execute grctl config
  3. Copy all the content of the output and return to the console
  4. Platform Management > Cluster -> Add Cluster, at this time there are three horizontal dots in the upper right corner, move the mouse up and choose to access the installed platform cluster, as shown in the figure below
image 5. Paste the content copied in the third step into the configuration, and customize the above cluster ID and cluster name. Click Save and the connection should be successful

@yangkaa yangkaa added this to the 5.17.0 milestone Jan 4, 2024
@yangkaa yangkaa assigned DokiDoki1103 and unassigned yangkaa Jan 4, 2024
@yangkaa yangkaa moved this to Todo in Development Plan Jan 4, 2024
@yangkaa yangkaa moved this from Todo to Scheduled in Development Plan Jan 4, 2024
@DokiDoki1103 DokiDoki1103 mentioned this issue Jan 11, 2024
32 tasks
@zzzhangqi
Copy link
Collaborator

在5.17、6.0版本中已解决

@github-project-automation github-project-automation bot moved this from Scheduled to Test in Development Plan Nov 30, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Solved in versions 5.17 and 6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug BUG Feedback
Projects
Status: Test
Development

No branches or pull requests

5 participants