接入自建集群时 后台日志报错
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
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
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
通过哪种方式安装并接入的?
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
How was it installed and accessed?
通过哪种方式安装并接入的?
通过 docker 启动 rainbond 的 allinone 镜像之后,选择 平台管理 > 集群 -> 添加集群 -> 接入自建集群,然后按照 接入自建集群 的指示操作完成安装之后,在 rainbond 的集群接入等待页面依旧提示错误,查看 rainbond 的日志发现如问题所示的错误
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
那这可能是一个bug,你现在应该可以通过以下方式绕过
- 安装 grctl 命令行工具 https://www.rainbond.com/docs/ops-guide/tools/grctl
- 在已经安装好 rainbond 集群端的集群中,执行 grctl config
- 复制输出的所有内容后回到控制台
- 平台管理 > 集群 -> 添加集群,此时右上角有三个横着的点,鼠标移动上去,选择接入已安装平台集群,如下图所示
- 把第三步复制的内容,粘贴在配置里,上面的集群ID和集群名自定义即可。点击保存应该就可以对接成功
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
- Install the grctl command line tool https://www.rainbond.com/docs/ops-guide/tools/grctl
- In the cluster where the rainbow cluster has been installed, execute grctl config
- Copy all the content of the output and return to the console
- 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
- 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