Describe the bug(Bug 描述)
-
os : centos 7.9 Linux
-
arch: amd64
-
gemix : v1.0.1 or master
-
problem description :
Fail to gemix cluster install ... cause that grafana:7.5.17 's download url is changed. throw exception: "Error: receiving status of 404 for url: https://dl.grafana.com/oss/release/grafana-enterprise-7.5.17.linux-amd64.tar.gz"
To Reproduce(Bug 复现步骤)
No response
Expected behavior(期望结果)
GEMIX_MIRRORS_REPO=gitee.com gemix cluster install gemini-test v1.2.0 ./topology.yaml --user root
Screenshots(屏幕截图)
No response
Logs(完整的错误日志)
# [root@vmw-b opengemini]# GEMIX_MIRRORS_REPO=gitee.com gemix cluster install gemini-test v1.2.0 ./topology.yaml --user root
Please confirm your topology:
Cluster name: gemini-test
Cluster version: v1.2.0
Role Host Ports OS/Arch Directories
---- ---- ----- ------- -----------
...
...
Do you want to continue? [y/N]: (default=N) y
+ Download openGemini components
+ Generate SSH keys ... Done
- Download openGemini:v1.2.0 (linux/amd64) ... Done
- Download grafana:v1.2.0 (linux/amd64) ... Done
- Download openGemini:v1.2.0 (linux/amd64) ⣽ Doing...
Error: receiving status of 404 for url: https://dl.grafana.com/oss/release/grafana-enterprise-7.5.17.linux-amd64.tar.gz
Verbose debug logs has been written to /root/.gemix/logs/gemix-cluster-debug-2024-12-19-15-35-31.log.
Additional context(其他的一些补充内容)
grafana old download url : https://dl.grafana.com/oss/release/grafana-enterprise-7.5.17.linux-amd64.tar.gz
grafana new download url : https://dl.grafana.com/enterprise/release/grafana-enterprise-7.5.17.linux-amd64.tar.gz
- you can see the grafana url, then you know it.
https://grafana.com/grafana/download/7.5.17?pg=get&plcmt=selfmanaged-box1-cta1
https://github.com/openGemini/gemix/blob/v1.0.1/pkg/cluster/operation/download.go
https://github.com/openGemini/gemix/blob/main/pkg/cluster/operation/download.go#L46
if component == spec.ComponentGrafana {
// FIXME: download from opengemini.org
if nodeOS == "darwin" {
arch = "amd64"
}
fileName = fmt.Sprintf("%s-enterprise-%s.%s-%s.tar.gz", component, ver.GrafanaVersion, nodeOS, arch)
componentUrl = strings.Join([]string{"https://dl.grafana.com/oss/release", fileName}, "/")
}
- other code (grafana version config of gemix)
package version
const (
GrafanaVersion = "7.5.17"
)
Describe the bug(Bug 描述)
os :
centos 7.9 Linuxarch: amd64
gemix :
v1.0.1ormasterproblem description :
To Reproduce(Bug 复现步骤)
No response
Expected behavior(期望结果)
GEMIX_MIRRORS_REPO=gitee.com gemix cluster install gemini-test v1.2.0 ./topology.yaml --user root
Screenshots(屏幕截图)
No response
Logs(完整的错误日志)
Additional context(其他的一些补充内容)