Skip to content
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

[Bug] Docker DeskTop K8s 不能运行 computer示例 #195

Open
1 task done
shangrilaxie opened this issue Nov 23, 2022 · 2 comments
Open
1 task done

[Bug] Docker DeskTop K8s 不能运行 computer示例 #195

shangrilaxie opened this issue Nov 23, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@shangrilaxie
Copy link

Bug Type (问题类型)

exception / error (运行异常)

Before submit

Environment (环境信息)

  • Server Version: v0.12.x
  • Computer Version: v0.x
  • Scheduler: K8s V1.24.2
  • Data Size: xx vertices, xx edges
    windows11 22H2 wsl2 docker desktop4.13.1 k8s 1.24.2

Expected & Actual behavior (期望与实际表现)

Install hugegraph-computer CRD
D:>kubectl apply -f https://raw.githubusercontent.com/hugegraph/hugegraph-computer/master/computer-k8s-operator/manifest/hugegraph-computer-crd.v1.yaml
customresourcedefinition.apiextensions.k8s.io/hugegraphcomputerjobs.hugegraph.baidu.com created

Show CRD
D:>kubectl get crd
NAME CREATED AT
hugegraphcomputerjobs.hugegraph.baidu.com 2022-11-23T02:02:03Z

Install hugegraph-computer-operator&etcd-server
D:>kubectl apply -f https://raw.githubusercontent.com/hugegraph/hugegraph-computer/master/computer-k8s-operator/manifest/hugegraph-computer-operator.yaml
namespace/hugegraph-computer-operator-system created
serviceaccount/hugegraph-computer-operator-controller-manager created
role.rbac.authorization.k8s.io/hugegraph-computer-operator-leader-election-role created
clusterrole.rbac.authorization.k8s.io/hugegraph-computer-operator-manager-role created
rolebinding.rbac.authorization.k8s.io/hugegraph-computer-operator-leader-election-rolebinding created
clusterrolebinding.rbac.authorization.k8s.io/hugegraph-computer-operator-manager-rolebinding created
service/hugegraph-computer-operator-etcd created
deployment.apps/hugegraph-computer-operator-controller-manager created
deployment.apps/hugegraph-computer-operator-etcd created

Wait for hugegraph-computer-operator&etcd-server deployment to complete

D:>kubectl get pod -n hugegraph-computer-operator-system
NAME READY STATUS RESTARTS AGE
hugegraph-computer-operator-controller-manager-5595d699df-srtjc 0/1 ImagePullBackOff 0 4m5s
hugegraph-computer-operator-etcd-896cbf85f-b77t7 0/1 Running 2 (17s ago) 4m5s

一致不能正常启动。
ReplcaSet显示:MinimumReplicasUnavailable
日志显示:
{"level":"warn","ts":"2022-11-23T02:43:28.808Z","caller":"netutil/netutil.go:121","msg":"failed to resolve URL Host","url":"http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380","host":"hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380","retry-interval":"1s","error":"lookup hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system on 10.96.0.10:53: no such host"}
{"level":"warn","ts":"2022-11-23T02:43:29.812Z","caller":"netutil/netutil.go:121","msg":"failed to resolve URL Host","url":"http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380","host":"hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380","retry-interval":"1s","error":"lookup hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system on 10.96.0.10:53: no such host"}
{"level":"warn","ts":"2022-11-23T02:43:30.816Z","caller":"netutil/netutil.go:121","msg":"failed to resolve URL Host","url":"http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380","host":"hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380","retry-interval":"1s","error":"lookup hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system on 10.96.0.10:53: no such host"}
{"level":"warn","ts":"2022-11-23T02:43:31.509Z","caller":"netutil/netutil.go:131","msg":"failed to resolve URL Host; returning","url":"http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380","host":"hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380","retry-interval":"1s","error":"lookup hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system on 10.96.0.10:53: no such host"}
{"level":"info","ts":"2022-11-23T02:43:31.511Z","caller":"embed/etcd.go:367","msg":"closing etcd server","name":"hugegraph-computer-operator-etcd-0","data-dir":"/var/etcd/data","advertise-peer-urls":["http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380"],"advertise-client-urls":["http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2379"]}
{"level":"info","ts":"2022-11-23T02:43:31.511Z","caller":"embed/etcd.go:369","msg":"closed etcd server","name":"hugegraph-computer-operator-etcd-0","data-dir":"/var/etcd/data","advertise-peer-urls":["http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380"],"advertise-client-urls":["http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2379"]}
{"level":"warn","ts":"2022-11-23T02:43:31.511Z","caller":"etcdmain/etcd.go:145","msg":"failed to start etcd","error":"failed to resolve http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380 to match --initial-cluster=hugegraph-computer-operator-etcd-0=http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380 (failed to resolve "http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380\" (lookup hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system on 10.96.0.10:53: no such host))"}
{"level":"fatal","ts":"2022-11-23T02:43:31.511Z","caller":"etcdmain/etcd.go:203","msg":"discovery failed","error":"failed to resolve http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380 to match --initial-cluster=hugegraph-computer-operator-etcd-0=http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380 (failed to resolve "http://hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system:2380\" (lookup hugegraph-computer-operator-etcd-0.hugegraph-computer-operator-etcd.hugegraph-computer-operator-system on 10.96.0.10:53: no such host))","stacktrace":"go.etcd.io/etcd/server/v3/etcdmain.startEtcdOrProxyV2\n\t/tmp/etcd-release-3.5.0/etcd/release/etcd/server/etcdmain/etcd.go:203\ngo.etcd.io/etcd/server/v3/etcdmain.Main\n\t/tmp/etcd-release-3.5.0/etcd/release/etcd/server/etcdmain/main.go:40\nmain.main\n\t/tmp/etcd-release-3.5.0/etcd/release/etcd/server/main.go:32\nruntime.main\n\t/home/remote/sbatsche/.gvm/gos/go1.16.3/src/runtime/proc.go:225"}

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

@shangrilaxie shangrilaxie added the bug Something isn't working label Nov 23, 2022
@coderzc
Copy link
Member

coderzc commented Nov 23, 2022

k8s version < v1.16 尝试使用 kubectl apply -f https://raw.githubusercontent.com/hugegraph/hugegraph-computer/master/computer-k8s-operator/manifest/hugegraph-computer-crd.v1beta1.yaml 创建 CRD

@coderzc
Copy link
Member

coderzc commented Nov 23, 2022

还有看下各个组件状态是什么样的 kubectl get pod -n hugegraph-computer-operator-system

看起来是 Etcd 没起来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants