rainbond icon indicating copy to clipboard operation
rainbond copied to clipboard

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

Open ElfenSterben opened this issue 2 years ago • 7 comments

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

ElfenSterben avatar Aug 11 '23 10:08 ElfenSterben

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

Issues-translate-bot avatar Aug 11 '23 10:08 Issues-translate-bot

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

yangkaa avatar Aug 18 '23 08:08 yangkaa

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


How was it installed and accessed?

Issues-translate-bot avatar Aug 18 '23 08:08 Issues-translate-bot

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

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

ElfenSterben avatar Aug 20 '23 16:08 ElfenSterben

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

Issues-translate-bot avatar Aug 20 '23 16:08 Issues-translate-bot

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

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

yangkaa avatar Aug 21 '23 02:08 yangkaa

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

Issues-translate-bot avatar Aug 21 '23 02:08 Issues-translate-bot