dromara / CloudEon

CloudEon uses Kubernetes to install and deploy open-source big data components, enabling the containerized operation of an open-source big data platform. This allows you to reduce your focus on underlying resource management and maintenance.
https://www.cloudeon.top/
Apache License 2.0
429 stars 104 forks source link

在存在ipv6地址的情况下主机名疑似识别出错 #77

Closed plasmetoz closed 1 year ago

plasmetoz commented 1 year ago

Describe the bug 在存在ipv6地址的情况下识别为ipv6地址,导致服务部署阶段请求k8s接口发生异常

To Reproduce 在具备ipv6地址的k3s集群中部署CloudEon,并创建集群增加节点,部署zookeeper服务

Expected behavior 2023-06-17 21:45:06.445 [ForkJoinPool.commonPool-worker-1] INFO org.dromara.cloudeon.processor.TagHostLabelTask - command task:10 开始, 记录到数据库 2023-06-17 21:45:06.448 [ForkJoinPool.commonPool-worker-1] INFO org.dromara.cloudeon.processor.TagHostLabelTask - 给k8s节点 ::c60:a651::17d2 打上label :zookeeper-server-zookeeper1 2023-06-17 21:45:06.524 [ForkJoinPool.commonPool-worker-1] INFO org.dromara.cloudeon.processor.TagHostLabelTask - 10:发生异常,处理异常。。。Failure executing: GET at: https://10.172.128.180:6443/api/v1/nodes/****:****:c60:a651::17d2. Message: nodes "::c60:a651::17d2" not found. Received status: Status(apiVersion=v1, code=404, details=StatusDetails(causes=[], group=null, kind=nodes, name=::c60:a651::17d2, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=nodes "::c60:a651::17d2" not found, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=NotFound, status=Failure, additionalProperties={}).

Environment

Screenshots If applicable, add screenshots to help explain your problem. 截屏-20230619094452-1078x254 截屏-20230619094432-1972x1298 截屏-20230619095114-2544x501

Additional context Add any other context about the problem here.

Pandas886 commented 1 year ago

It appears that the host name recognition failed

plasmetoz commented 1 year ago

It appears that the host name recognition failed

Yes, the hostname was recognized correctly after I turned off IPv6 and restarted the entire K3s.