kurator-dev / kurator

Unified resource orchestration, unified scheduling, unified traffic management and unified telemetry for distributed cloud
https://kurator.dev
Apache License 2.0
242 stars 39 forks source link

gen-prom gen-prom-thanos script has a problem #688

Closed Gidi233 closed 1 month ago

Gidi233 commented 1 month ago

What happened:

hack/gen-prom.sh manifests/jsonnet/prometheus/prometheus.jsonnet manifests/profiles/prom/
begin to generate prom manifests
jsonnet: /home/runner/work/kurator/kurator/manifests/jsonnet/prometheus/prometheus.jsonnet
manifetsts: /home/runner/work/kurator/kurator/manifests/profiles/prom/
version: v0.10.0
~/work/kurator/kurator/out/prom ~/work/kurator/kurator
GET https://github.com/prometheus-operator/kube-prometheus/archive/42ea595d60265b803ad460a971a7186488f6be7e.tar.gz 200
GET https://github.com/prometheus-operator/prometheus-operator/archive/d8ba1c766a141cb35072ae2f2578ec8588c9efcd.tar.gz 200
GET https://github.com/prometheus/node_exporter/archive/a2321e7b940ddcff26873612bccdf7cd4c42b6b6.tar.gz 200
GET https://github.com/prometheus/alertmanager/archive/16fa045db47d68a09a102c7b80b8899c1f57c153.tar.gz 200
GET https://github.com/kubernetes-monitoring/kubernetes-mixin/archive/ab104c5c406b91078d676475c14ab18644f84f2d.tar.gz 200
GET https://github.com/kubernetes/kube-state-metrics/archive/e080c3ce73ad514254e38dccb37c93bec6b257ae.tar.gz 200
GET https://github.com/kubernetes/kube-state-metrics/archive/e080c3ce73ad514254e38dccb37c93bec6b257ae.tar.gz 200
GET https://github.com/prometheus/prometheus/archive/41f1a8125e664985dd30674e5bdf6b683eff5d32.tar.gz 200
GET https://github.com/thanos-io/thanos/archive/fb97c9a5ef51849ccb7960abbeb9581ad7f511b9.tar.gz 200
GET https://github.com/brancz/kubernetes-grafana/archive/199e363523104ff8b3a12483a4e3eca86372b078.tar.gz 200
GET https://github.com/etcd-io/etcd/archive/1d4372addcbcd7a2e00bd774bef6372394ed42d2.tar.gz 200
GET https://github.com/prometheus-operator/prometheus-operator/archive/d8ba1c766a141cb35072ae2f2578ec8588c9efcd.tar.gz 200
GET https://github.com/grafana/grafonnet-lib/archive/a1d61cce1da59c71409b99b5c7568511fec661ea.tar.gz 200
GET https://github.com/grafana/jsonnet-libs/archive/52be87fb93edc439b69b550acb893abb51a079c5.tar.gz 200
GET https://github.com/kubernetes-monitoring/kubernetes-mixin/archive/dec42129576a19dc175aea145adbbc0d2fabe074.tar.gz 200
panic: rename /home/runner/work/kurator/kurator/out/prom/vendor/.tmp/90ba8eccde6abd8a129[388](https://github.com/kurator-dev/kurator/actions/runs/10702688404/job/29671453914#step:4:389)430b660b50396598879/lib/promgrafonnet /home/runner/work/kurator/kurator/out/prom/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/promgrafonnet: no such file or directory

goroutine 1 [running]:
github.com/jsonnet-bundler/jsonnet-bundler/pkg.(*GitPackage).Install(0xc0005be268, {0x876658, 0xc000024180}, {0xc0002f2640, 0x43}, {0xc00001ac00, 0x31}, {0xc000[406](https://github.com/kurator-dev/kurator/actions/runs/10702688404/job/29671453914#step:4:407)fe0, 0x6})
    /home/runner/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/pkg/git.go:228 +0x1a4b
github.com/jsonnet-bundler/jsonnet-bundler/pkg.download({{0xc0002211d0, 0x0}, {0xc000406fe0, 0x6}, {0x0, 0x0}, 0x0, {0x0, 0x0}}, {0xc00001ac00, ...}, ...)
    /home/runner/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/pkg/packages.go:309 +0x3b1
github.com/jsonnet-bundler/jsonnet-bundler/pkg.ensure(0xc000475650?, {0xc00001ac00, 0x31}, {0xc0004756c0, 0x65}, 0x0?)
    /home/runner/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/pkg/packages.go:234 +0x61d
github.com/jsonnet-bundler/jsonnet-bundler/pkg.ensure(0xc00002a280?, {0xc00001ac00, 0x31}, {0xc00002a300, 0x78}, 0x0?)
    /home/runner/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/pkg/packages.go:265 +0xcea
github.com/jsonnet-bundler/jsonnet-bundler/pkg.ensure(0x30?, {0xc00001ac00, 0x31}, {0x0, 0x0}, 0x31?)
    /home/runner/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/pkg/packages.go:265 +0xcea
github.com/jsonnet-bundler/jsonnet-bundler/pkg.Ensure({0xc000017f80?, 0x0?}, {0xc00001ac00, 0x31}, 0x0?)
    /home/runner/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/pkg/packages.go:55 +0x54
main.installCommand({0xc000022184?, 0x7f374e?}, {0x7df82e, 0x6}, {0xc000058fe0, 0x1, 0xc000042601?}, 0x0, {0x0, 0x0})
    /home/runner/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/cmd/jb/install.go:85 +0x8bf
main.Main()
    /home/runner/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/cmd/jb/main.go:87 +0xd4a
main.main()
    /home/runner/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/cmd/jb/main.go:39 +0x19
make: *** [Makefile:133: gen-prom] Error 2
rm /home/runner/work/kurator/kurator/.gopath/src/kurator.dev/kurator
➜  kurator git:(dev1) ✗ make gen-prom-thanos
hack/gen-prom.sh manifests/jsonnet/prometheus/thanos.jsonnet manifests/profiles/prom-thanos/
begin to generate prom manifests
jsonnet: /home/lu/go/kurator/manifests/jsonnet/prometheus/thanos.jsonnet
manifetsts: /home/lu/go/kurator/manifests/profiles/prom-thanos/
version: v0.10.0
~/go/kurator/out/prom ~/go/kurator
GET https://github.com/prometheus-operator/kube-prometheus/archive/42ea595d60265b803ad460a971a7186488f6be7e.tar.gz 200
GET https://github.com/brancz/kubernetes-grafana/archive/199e363523104ff8b3a12483a4e3eca86372b078.tar.gz 200
GET https://github.com/etcd-io/etcd/archive/1d4372addcbcd7a2e00bd774bef6372394ed42d2.tar.gz 200
GET https://github.com/prometheus-operator/prometheus-operator/archive/d8ba1c766a141cb35072ae2f2578ec8588c9efcd.tar.gz 200
GET https://github.com/prometheus-operator/prometheus-operator/archive/d8ba1c766a141cb35072ae2f2578ec8588c9efcd.tar.gz 200
GET https://github.com/kubernetes/kube-state-metrics/archive/e080c3ce73ad514254e38dccb37c93bec6b257ae.tar.gz 200
GET https://github.com/kubernetes-monitoring/kubernetes-mixin/archive/ab104c5c406b91078d676475c14ab18644f84f2d.tar.gz 200
GET https://github.com/kubernetes/kube-state-metrics/archive/e080c3ce73ad514254e38dccb37c93bec6b257ae.tar.gz 200
GET https://github.com/prometheus/node_exporter/archive/a2321e7b940ddcff26873612bccdf7cd4c42b6b6.tar.gz 200
GET https://github.com/prometheus/prometheus/archive/41f1a8125e664985dd30674e5bdf6b683eff5d32.tar.gz 200
GET https://github.com/prometheus/alertmanager/archive/16fa045db47d68a09a102c7b80b8899c1f57c153.tar.gz 200
GET https://github.com/thanos-io/thanos/archive/fb97c9a5ef51849ccb7960abbeb9581ad7f511b9.tar.gz 200
GET https://github.com/grafana/grafonnet-lib/archive/a1d61cce1da59c71409b99b5c7568511fec661ea.tar.gz 200
GET https://github.com/grafana/jsonnet-libs/archive/52be87fb93edc439b69b550acb893abb51a079c5.tar.gz 200
GET https://github.com/kubernetes-monitoring/kubernetes-mixin/archive/dec42129576a19dc175aea145adbbc0d2fabe074.tar.gz 200
panic: rename /home/lu/go/kurator/out/prom/vendor/.tmp/90ba8eccde6abd8a129388430b660b503314514380/lib/promgrafonnet /home/lu/go/kurator/out/prom/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/promgrafonnet: no such file or directory

goroutine 1 [running]:
github.com/jsonnet-bundler/jsonnet-bundler/pkg.(*GitPackage).Install(0xc00028a080, {0x891e00, 0xb603e0}, {0xc000474190, 0x43}, {0xc0000206f0, 0x23}, {0xc0002a4ba0, 0x6})
        /home/lu/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/pkg/git.go:228 +0x19d0
github.com/jsonnet-bundler/jsonnet-bundler/pkg.download({{0xc00009ca50, 0x0}, {0xc0002a4ba0, 0x6}, {0x0, 0x0}, 0x0, {0x0, 0x0}}, {0xc0000206f0, ...}, ...)
        /home/lu/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/pkg/packages.go:309 +0x387
github.com/jsonnet-bundler/jsonnet-bundler/pkg.ensure(0xc000284d20, {0xc0000206f0, 0x23}, {0xc00001e960, 0x57}, 0xc00011a060)
        /home/lu/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/pkg/packages.go:234 +0x60c
github.com/jsonnet-bundler/jsonnet-bundler/pkg.ensure(0xc00038ef30, {0xc0000206f0, 0x23}, {0xc0000280e0, 0x6a}, 0xc00011a060)
        /home/lu/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/pkg/packages.go:265 +0xcea
github.com/jsonnet-bundler/jsonnet-bundler/pkg.ensure(0xc00011a000, {0xc0000206f0, 0x23}, {0x0, 0x0}, 0xc00011a060)
        /home/lu/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/pkg/packages.go:265 +0xcea
github.com/jsonnet-bundler/jsonnet-bundler/pkg.Ensure({0xc00011a000?, 0x0?}, {0xc0000206f0, 0x23}, 0x0?)
        /home/lu/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/pkg/packages.go:55 +0x48
main.installCommand({0xc00001c0a4?, 0x805579?}, {0x7f09a0, 0x6}, {0xc00002c420, 0x1, 0xc000066648?}, 0x0, {0x0, 0x0})
        /home/lu/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/cmd/jb/install.go:85 +0x8bb
main.Main()
        /home/lu/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/cmd/jb/main.go:87 +0xd85
main.main()
        /home/lu/go/pkg/mod/github.com/jsonnet-bundler/jsonnet-bundler@v0.5.1/cmd/jb/main.go:39 +0x13

Anything else we need to know?: It is not caused by recent changes to the Makefile