-
Notifications
You must be signed in to change notification settings - Fork 789
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
🐞 反馈问题:helm配置内网https镜像仓库安装rainbond后,页面提示数据中心操作故障 #2152
Comments
Title: 🐞 Feedback problem: After helm configures the intranet https mirror warehouse to install rainbond, the page prompts data center operation failure |
@KeKouShi domain 字段不需要携带 https http 等协议 |
@KeKouShi domain field does not need to carry protocols such as https http |
@zzzhangqi domain 字段不带https或http也是相同的报错 |
@zzzhangqi domain field does not contain https or http, and the same error is reported. |
@KeKouShi 你的镜像仓库协议是 http 还是 https,仓库类型是 harbor 还是 docker registry |
@KeKouShi Is your image repository protocol http or https, is the repository type harbor or docker registry |
@zzzhangqi 镜像仓库协议是https,类型是harbor,使用helm安装时,就是从此仓库拉取的镜像 |
@zzzhangqi The mirror repository protocol is https, the type is harbor. When installed using helm, it is the mirror pulled from this repository. |
@KeKouShi 未复现问题。 我搭建了 Docker Registry 并自签发了私有证书,用 K3s 搭建的单机测试环境。如下:
docker run -v /root/cert:/cert \
-e REGISTRY_HTTP_TLS_CERTIFICATE=/cert/cert.crt \
-e REGISTRY_HTTP_TLS_KEY=/cert/cert.key \
-p 5000:5000 \
-d registry:2.8
$ cat /etc/rancher/k3s/registries.yaml
configs:
"10.64.0.7:5000":
auth:
username: admin
password: admin1234
tls:
insecure_skip_verify: true
$ cat values.yaml
Cluster:
gatewayIngressIPs: 10.64.0.7
nodesForGateway:
- externalIP: 10.64.0.7
internalIP: 10.64.0.7
name: iv-ydq6bajda8k36d19ye26
nodesForChaos:
- name: iv-ydq6bajda8k36d19ye26
containerdRuntimePath: /var/run/k3s/containerd
imageHub:
enable: true
domain: 10.64.0.7:5000
namespace: rainbond
username: admin
password: admin
$ kubectl get pod -n rbd-system
NAME READY STATUS RESTARTS AGE
local-path-provisioner-5476dcfbb8-wj6w5 1/1 Running 0 9m44s
minio-0 1/1 Running 0 9m47s
rainbond-operator-9b5876fcb-djg84 1/1 Running 0 9m50s
rbd-api-5bb68877f4-pw22s 1/1 Running 0 9m29s
rbd-app-ui-587dd78fc4-2r66h 1/1 Running 0 8m42s
rbd-chaos-hk7fp 1/1 Running 0 9m24s
rbd-db-0 1/1 Running 0 9m46s
rbd-gateway-7877b5f969-c8926 2/2 Running 0 9m43s
rbd-monitor-0 1/1 Running 0 9m46s
rbd-mq-545d6748f5-v9zfq 1/1 Running 0 9m46s
rbd-worker-6bdd5f86-9wsqg 1/1 Running 0 9m41s |
@KeKouShi The problem was not reproduced. I built Docker Registry and issued a private certificate to a stand-alone test environment built with K3s. as follows:
docker run -v /root/cert:/cert \
-e REGISTRY_HTTP_TLS_CERTIFICATE=/cert/cert.crt \
-e REGISTRY_HTTP_TLS_KEY=/cert/cert.key \
-p 5000:5000 \
-d registry:2.8
$ cat /etc/rancher/k3s/registries.yaml
configs:
"10.64.0.7:5000":
auth:
username: admin
password: admin1234
tls:
insecure_skip_verify: true
$ cat values.yaml
Cluster:
gatewayIngressIPs: 10.64.0.7
nodesForGateway:
- externalIP: 10.64.0.7
internalIP: 10.64.0.7
name: iv-ydq6bajda8k36d19ye26
nodesForChaos:
- name: iv-ydq6bajda8k36d19ye26
containerdRuntimePath: /var/run/k3s/containerd
imageHub:
enable: true
domain: 10.64.0.7:5000
namespace: rainbond
username: admin
password: admin
$ kubectl get pod -n rbd-system
NAME READY STATUS RESTARTS AGE
local-path-provisioner-5476dcfbb8-wj6w5 1/1 Running 0 9m44s
minio-0 1/1 Running 0 9m47s
rainbond-operator-9b5876fcb-djg84 1/1 Running 0 9m50s
rbd-api-5bb68877f4-pw22s 1/1 Running 0 9m29s
rbd-app-ui-587dd78fc4-2r66h 1/1 Running 0 8m42s
rbd-chaos-hk7fp 1/1 Running 0 9m24s
rbd-db-0 1/1 Running 0 9m46s
rbd-gateway-7877b5f969-c8926 2/2 Running 0 9m43s
rbd-monitor-0 1/1 Running 0 9m46s
rbd-mq-545d6748f5-v9zfq 1/1 Running 0 9m46s
rbd-worker-6bdd5f86-9wsqg 1/1 Running 0 9m41s |
请先确认以下事项:
问题描述
数据中心操作故障 {'apitype': 'Not specified', 'url': 'https://rbd-api-api:8443/v2/tenants/default/image-repositories?namespace=default', 'method': 'GET', 'httpcode': 503, 'body': {'error': '部分服务不可用'}}
level=error msg="create hub client failed, try time is 10,registry url http:
该问题是否可以稳定重现?
可重现
重现步骤
rainbond镜像上传https镜像仓库
配置外部镜像仓库安装rainbond
截图
日志
level=error msg="create hub client failed, try time is 10,registry url http://idt.ccwork.com:8076: Get "http://*******/v2/": http: non-successful response (status=400 body="\r\n<title>400 The plain HTTP request was sent to HTTPS port</title>\r\n\r\n
400 Bad Request
\r\nThe plain HTTP request was sent to HTTPS port\r\nnginx\r\n\r\n\r\n")"
期望结果
可以正常添加组件
解决方案(可选)
No response
操作系统 && Rainbond 版本
openEuler 22.03 k3s v6.1.1-release
是否愿意提交 PR 解决该问题?
The text was updated successfully, but these errors were encountered: