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

升级失败 #370

Closed
wgzxyouling opened this issue Nov 11, 2024 · 17 comments
Closed

升级失败 #370

wgzxyouling opened this issue Nov 11, 2024 · 17 comments
Assignees

Comments

@wgzxyouling
Copy link

systemctl stop k8e.service

下载k8e二进制覆盖就好

cp k8e /usr/local/bin/

然后启动k8e服务

systemctl start k8e.service #

11月 12 02:35:25 master-02 systemd[1]: Starting K8E - Kubernetes Easy Engine...
11月 12 02:35:25 master-02 k8e[228863]: time="2024-11-12T02:35:25+08:00" level=fatal msg="Failed to validate golang version: kubernetes golang build version not set - see 'golang: upstream version' in https://github.com/kubernetes/kubernetes/blob/v1.31.1-rc5/build/dependencies.yaml"
11月 12 02:35:25 master-02 systemd[1]: k8e.service: Main process exited, code=exited, status=1/FAILURE
11月 12 02:35:25 master-02 systemd[1]: k8e.service: Failed with result 'exit-code'.
11月 12 02:35:25 master-02 systemd[1]: Failed to start K8E - Kubernetes Easy Engine.

@xiaods
Copy link
Owner

xiaods commented Nov 18, 2024

Thank you for your testing and feedback. I found a machine to test it, but it still reports a golang version error. I think I need to take a closer look at the logic. Give me a few days.

@xiaods xiaods self-assigned this Nov 18, 2024
@wgzxyouling
Copy link
Author

新版本和原有版本 路径没有保持一致
/var/lib/rancher/k8e

@xiaods
Copy link
Owner

xiaods commented Nov 19, 2024

新版本和原有版本 路径没有保持一致 /var/lib/rancher/k8e

Thank you for the reminder, I will test it as soon as possible.
/var/lib/rancher/k8e should be => /var/lib/k8e

@xiaods
Copy link
Owner

xiaods commented Nov 20, 2024

update and build new release v1.31.2, current handle some issue:

Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService

k8e ctr plugin ls

containerd-plugin.log

I need to check what's wrong with this plugin mechanism.

@xiaods
Copy link
Owner

xiaods commented Nov 20, 2024

containerd.log
containerd.log

@xiaods
Copy link
Owner

xiaods commented Nov 20, 2024

testing Docker engine is work like a charm. but internel runc is not working.

[root@ip-172-31-33-117 containerd]# kubectl get po -A
NAMESPACE     NAME                                      READY   STATUS    RESTARTS   AGE
kube-system   cilium-4hqcp                              1/1     Running   0          81s
kube-system   cilium-operator-77c9777764-d9l7j          1/1     Running   0          3h27m
kube-system   coredns-5dd589bf46-fztjj                  1/1     Running   0          3h27m
kube-system   local-path-provisioner-5cf85fd84d-gwzv7   1/1     Running   0          3h27m
kube-system   metrics-server-6bc8c74767-6tmjc           1/1     Running   0          3h27m
[root@ip-172-31-33-117 containerd]# kubectl get no
NAME                                          STATUS   ROLES                       AGE    VERSION
ip-172-31-33-117.ap-east-1.compute.internal   Ready    control-plane,etcd,master   104s   v1.31.2-rc1+k8e1

@wgzxyouling
Copy link
Author

root@master-02 /v/l/k/agent [3]# k8e -v
k8e version v1.31.2-rc1+k8e1 (3d45b4f)
go version go1.22.8


● k8e.service - K8E - Kubernetes Easy Engine
Loaded: loaded (/etc/systemd/system/k8e.service; enabled; preset: disabled)
Active: activating (start) since Wed 2024-11-20 18:55:23 CST; 4min 28s ago
Invocation: 061d5832725148a3afb36560d87eb5e9
Docs: https://getk8e.com
Process: 1462 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status=0/SUCCESS)
Process: 1464 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)
Main PID: 1466 (k8e-server)
Tasks: 26
Memory: 88.1M (peak: 191.3M)
CPU: 7min 20.983s
CGroup: /system.slice/k8e.service
├─1466 "/usr/local/bin/k8e server"
└─1485 "containerd "

11月 20 18:59:42 master-02 k8e[1466]: time="2024-11-20T18:59:42+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
11月 20 18:59:43 master-02 k8e[1466]: time="2024-11-20T18:59:43+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
11月 20 18:59:44 master-02 k8e[1466]: time="2024-11-20T18:59:44+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
11月 20 18:59:45 master-02 k8e[1466]: time="2024-11-20T18:59:45+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
11月 20 18:59:46 master-02 k8e[1466]: time="2024-11-20T18:59:46+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
11月 20 18:59:47 master-02 k8e[1466]: time="2024-11-20T18:59:47+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
11月 20 18:59:48 master-02 k8e[1466]: time="2024-11-20T18:59:48+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
11月 20 18:59:49 master-02 k8e[1466]: time="2024-11-20T18:59:49+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
11月 20 18:59:50 master-02 k8e[1466]: time="2024-11-20T18:59:50+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
11月 20 18:59:51 master-02 k8e[1466]: time="2024-11-20T18:59:51+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService

@xiaods
Copy link
Owner

xiaods commented Nov 21, 2024

root@master-02 /v/l/k/agent [3]# k8e -v k8e version v1.31.2-rc1+k8e1 (3d45b4f) go version go1.22.8

● k8e.service - K8E - Kubernetes Easy Engine Loaded: loaded (/etc/systemd/system/k8e.service; enabled; preset: disabled) Active: activating (start) since Wed 2024-11-20 18:55:23 CST; 4min 28s ago Invocation: 061d5832725148a3afb36560d87eb5e9 Docs: https://getk8e.com Process: 1462 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status=0/SUCCESS) Process: 1464 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS) Main PID: 1466 (k8e-server) Tasks: 26 Memory: 88.1M (peak: 191.3M) CPU: 7min 20.983s CGroup: /system.slice/k8e.service ├─1466 "/usr/local/bin/k8e server" └─1485 "containerd "

11月 20 18:59:42 master-02 k8e[1466]: time="2024-11-20T18:59:42+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService" 11月 20 18:59:43 master-02 k8e[1466]: time="2024-11-20T18:59:43+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService" 11月 20 18:59:44 master-02 k8e[1466]: time="2024-11-20T18:59:44+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService" 11月 20 18:59:45 master-02 k8e[1466]: time="2024-11-20T18:59:45+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService" 11月 20 18:59:46 master-02 k8e[1466]: time="2024-11-20T18:59:46+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService" 11月 20 18:59:47 master-02 k8e[1466]: time="2024-11-20T18:59:47+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService" 11月 20 18:59:48 master-02 k8e[1466]: time="2024-11-20T18:59:48+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService" 11月 20 18:59:49 master-02 k8e[1466]: time="2024-11-20T18:59:49+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService" 11月 20 18:59:50 master-02 k8e[1466]: time="2024-11-20T18:59:50+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService" 11月 20 18:59:51 master-02 k8e[1466]: time="2024-11-20T18:59:51+08:00" level=info msg="Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService

@wgzxyouling
You can use the Docker engine; adding the --docker parameter when starting k8e.service will allow it to run normally. I am still investigating and validating the native built-in containerd plugin, and it should be fixed in the next couple of days.

$ yum install docker-ce
$ systemctl start docker

# The `--docker` parameter switches the container runtime to Docker. Example usage is as follows:
$ curl -sfL https://getk8e.com/install.sh | K8E_TOKEN=ilovek8e K8E_URL=https://172.25.1.56:6443 INSTALL_K8E_EXEC="server --write-kubeconfig-mode=666 --docker" sh -s -

@xiaods
Copy link
Owner

xiaods commented Nov 21, 2024

@wgzxyouling I am get thing done. https://github.com/xiaods/k8e/releases/tag/v1.31.2-rc2%2Bk8e1

[root@ip-172-31-33-117 ~]# k8e -v

/$$        /$$$$$$           
| $$       /$$__  $$          
| $$   /$$| $$  \ $$  /$$$$$$ 
| $$  /$$/|  $$$$$$/ /$$__  $$
| $$$$$$/  >$$__  $$| $$$$$$$$
| $$_  $$ | $$  \ $$| $$_____/
| $$ \  $$|  $$$$$$/|  $$$$$$$
|__/  \__/ \______/  \_______/
                              
Get Kubernetes cluster the easy way.
k8e version v1.31.2-rc2+k8e1 (6a9fab4f)
go version go1.22.8

@wgzxyouling
Copy link
Author

--private-registry value (agent/runtime) Private registry configuration file (default: "/etc/rancher/k8e/registries.yaml")


rm -rf /etc/rancher/k8e/registries.yaml
cp registries.yaml /etc/rancher/k8e/
systemctl restart k8e.service
cp: 无法创建普通文件 '/etc/rancher/k8e/': 不是目录

@xiaods
Copy link
Owner

xiaods commented Nov 22, 2024

--private-registry value (agent/runtime) Private registry configuration file (default: "/etc/rancher/k8e/registries.yaml")

rm -rf /etc/rancher/k8e/registries.yaml cp registries.yaml /etc/rancher/k8e/ systemctl restart k8e.service cp: 无法创建普通文件 '/etc/rancher/k8e/': 不是目录

Oops. let me check

xiaods added a commit that referenced this issue Nov 22, 2024
fix issue: #370

Signed-off-by: Deshi Xiao <[email protected]>
@xiaods
Copy link
Owner

xiaods commented Nov 22, 2024

@wgzxyouling have a try k8e v1.31.2-rc4+k8e1

@wgzxyouling
Copy link
Author

wgzxyouling commented Nov 22, 2024

都ok
就是server 和 agent 的 --private-registry 能统一下路径不 升级变更脚本容易些
/etc/k8e
/etc/rancher/k8e
或者 agent 自动同步 server的

@xiaods
Copy link
Owner

xiaods commented Nov 22, 2024

都ok 就是server 和 agent 的 --private-registry 能统一下路径不 升级变更脚本容易些 /etc/k8e /etc/rancher/k8e 或者 agent 自动同步 server的

hi buddy, k8e will only have one config path: /etc/k8e , if you found another way, you can call it.

@xiaods
Copy link
Owner

xiaods commented Nov 22, 2024

close by resolved issues.

@xiaods xiaods closed this as completed Nov 22, 2024
@wgzxyouling
Copy link
Author

都ok 就是server 和 agent 的 --private-registry 能统一下路径不 升级变更脚本容易些 /etc/k8e /etc/rancher/k8e 或者 agent 自动同步 server的

hi buddy, k8e will only have one config path: /etc/k8e , if you found another way, you can call it.

那些路径问题 都是中间几个版本产生的
恢复正常了 原有脚本能正常更新
没有问题 恢复平静了

@xiaods
Copy link
Owner

xiaods commented Nov 22, 2024

都ok 就是server 和 agent 的 --private-registry 能统一下路径不 升级变更脚本容易些 /etc/k8e /etc/rancher/k8e 或者 agent 自动同步 server的

hi buddy, k8e will only have one config path: /etc/k8e , if you found another way, you can call it.

那些路径问题 都是中间几个版本产生的 恢复正常了 原有脚本能正常更新 没有问题 恢复平静了

Thank you for your patience in helping me test so many RC versions. Moving forward, I will consider making the trimming process smoother to enhance the user experience. @wgzxyouling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants