vernemq / vmq-operator

VerneMQ Operator creates/configures/manages VerneMQ clusters atop Kubernetes
Apache License 2.0
30 stars 20 forks source link

rebar3_cargo version Failed to fetch and copy dep #39

Open Jack-laoniu opened 1 year ago

Jack-laoniu commented 1 year ago

func makeBundlerConfig(instance *vernemqv1alpha1.VerneMQ) string { config := {plugins, [ {rebar3_cargo, {git, "https://github.com/benoitc/rebar3_cargo", {ref, "85353035"}}} ]}. {deps, [ for _, p := range instance.Spec.ExternalPlugins { config = config + fmt.Sprintf("{%s, {git, \"%s\", {%s, \"%s\"}}},\n", p.ApplicationName, p.RepoURL, p.VersionType, p.Version) } config = config + {vmq_k8s, {git, "https://github.com/vernemq/vmq-operator", {branch, "master"}}} ]}. return config }

Jack-laoniu commented 1 year ago

"https://github.com/vernemq/vmq-operator", {tag, "v2.0.0"} is true ,i know real version but how to use

arashkaffamanesh commented 1 year ago

I'm facing the same problem, is this operator functional?

k logs vernemq-k8s-deployment-6f689d8b6-cxdhf % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8029 100 8029 0 0 130k 0 --:--:-- --:--:-- --:--:-- 132k TERMS [{plugins,[{rebar3_cargo,{git,"https://github.com/benoitc/rebar3_cargo", {ref,"85353035"}}}]}, {deps,[{vmq_k8s,{git,"https://github.com/vernemq/vmq-operator", {branch,"master"}}}]}] ===> Fetching rebar3_cargo (from {git,"https://github.com/benoitc/rebar3_cargo", {ref,"85353035"}}) ===> Compiling rebar3_cargo ===> Verifying dependencies... ===> Fetching vmq_k8s (from {git,"https://github.com/vernemq/vmq-operator", {branch,"master"}}) ===> Failed to fetch and copy dep: {git,"https://github.com/vernemq/vmq-operator", {branch,"master"}

ioolkos commented 1 year ago

@arashkaffamanesh This repo needs more attention, contributions welcome. At which step exactly do you see this issue?

arashkaffamanesh commented 1 year ago

@ioolkos thanks for the prompt support!

This happens after deploying vernemq-vernemq.yaml under example (used the tagged version 1.0.0) running on k8s 1.25.

The operator itself is running fine, but the vernemq-k8s-deployment pod is getting CrashLoopBackOff:

❯ k get VerneMQ NAME AGE k8s 52m

❯ k get sts NAME READY AGE vernemq-k8s 0/2 58m

❯ k get pods NAME READY STATUS RESTARTS AGE new-vmq-operator2-controller-manager-5dfdd97875-sgzqm 2/2 Running 0 76m vernemq-k8s-0 0/1 CrashLoopBackOff 15 (85s ago) 53m vernemq-k8s-1 0/1 CrashLoopBackOff 15 (47s ago) 53m vernemq-k8s-deployment-6f689d8b6-cxdhf 0/1 CrashLoopBackOff 14 (5m6s ago) 53m

❯ k get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE new-vmq-operator2-controller-manager-metrics-service ClusterIP 10.43.238.26 8443/TCP 135m vernemq-k8s ClusterIP 10.43.230.215 1883/TCP,8883/TCP,8080/TCP,8888/TCP 135m vernemq-k8s-service ClusterIP None 53m vernemq-k8s-vmq-bundler-service ClusterIP 10.43.10.4 80/TCP 53m`

ioolkos commented 1 year ago

Failed to fetch and copy dep: {git,"https://github.com/vernemq/vmq-operator", {branch,"master"} So it cannot download that repo (vmq-operator) but it can download rebar3_plugin from Github. I don't see why right now.