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

[求助/Help]upgrade v3.11.8 => v3.11.9:Could not find the requested service kubelet: host" #21954

Closed
chenjacken opened this issue Jan 11, 2025 · 4 comments
Labels
question Further information is requested

Comments

@chenjacken
Copy link

chenjacken commented Jan 11, 2025

环境操作系统:Centos7.9
目前版本:

[root@master1 ocboot]# kubectl -n onecloud get onecloudclusters default -o=jsonpath='{.spec.version}'

v3.11.8

k8s版本及ocboot 版本为

[root@master1 ~]# kubectl version
Client Version: v1.28.5+k3s1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.5+k3s1

[root@master1 ocboot]# git checkout  master-v3.11.9-1
warning: refname 'master-v3.11.9-1' is ambiguous.
已经位于 'master-v3.11.9-1'

升级命名出现错误:

TASK [utils/k8s/kubelet/extra-args : Restart kubelet] **************************
.
.
.
skipping: [ser-c5-2]
skipping: [ser-c5-3]
fatal: [master1]: FAILED! => {"changed": false, "msg": "Could not find the requested service kubelet: host"}
skipping: [ser-c5-4]
skipping: [ser-c5-5]
.
.
.

PLAY RECAP *********************************************************************
master1                    : ok=29   changed=1    unreachable=0    failed=1    skipped=12   rescued=0    ignored=0
master2                    : ok=37   changed=2    unreachable=0    failed=0    skipped=20   rescued=0    ignored=0
...

kubectl get pods -n onecloud --watch无变动,没升级。请指教。

@chenjacken chenjacken added the question Further information is requested label Jan 11, 2025
@zexi
Copy link
Member

zexi commented Jan 13, 2025

@chenjacken
Copy link
Author

https://www.cloudpods.org/docs/operations/upgrading/ocboot-upgrade#%E4%B8%8B%E8%BD%BD-ocboot-%E5%B7%A5%E5%85%B7 用这个版本的 ocboot 升级试试

是使用这个版本的ocboot升级,再次操作,还是遇到一样的问题。

image image image

@zexi
Copy link
Member

zexi commented Jan 14, 2025

感觉是 master1 上面有 /etc/kubernets/kubelet.conf 文件,但实际又是部署的 k3s 导致的

@chenjacken
Copy link
Author

/etc/kubernets/kubelet.conf

确实是存在/etc/kubernets/kubelet.conf文件,我把修改为/etc/kubernets/kubelet.conf.bak然后再升级,就成功了。
@zexi 谢谢!!!

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

No branches or pull requests

2 participants