eip-work / kuboard-spray

使用图形化的界面离线安装、维护、升级高可用的 K8S 集群
https://kuboard-spray.cn
Apache License 2.0
1.67k stars 165 forks source link

v1.0.0-alpha 升级到 v1.1.0 后升级集群报错 #37

Closed a1403951401 closed 2 years ago

a1403951401 commented 2 years ago

从 v1.0.0-alpha(spray-v2.18.5-5_k8s-v1.23.1_v1.4-amd64) 升级到 v1.1.0(spray-v2.18.0a-8_k8s-v1.23.6_v1.13-amd64)

The task includes an option with an undefined variable. The error was: {'coredns': {'container': True, 'enabled': \"{{ dns_mode in ['coredns', 'coredns_dual'] }}\", 'groups': ['k8s_cluster'], 'repo': '{{ coredns_image_repo }}', 'sha256': '{{ coredns_digest_checksum|default(None) }}', 'tag': '{{ coredns_image_tag }}'}, 'kuboard': {'container': True, 'enabled': '{{ kuboard_enabled }}', 'file': False, 'groups': ['kube_control_plane'], 'repo': 'eipwork/kuboard', 'sha256': '', 'tag': '{{ kuboard_version }}', 'version': '{{ kuboard_version }}'}, 'netcheck_etcd': {'container': True, 'dest': '{{ local_release_dir }}/etcd-{{ netcheck_etcd_image_tag }}-linux-{{ image_arch }}.tar.gz', 'enabled': '{{ deploy_netchecker }}', 'file': False, 'groups': ['k8s_cluster'], 'mode': '0755', 'owner': 'root', 'repo': '{{ etcd_image_repo }}', 'sha256': '{{ etcd_digest_checksum|d(None) }}', 'tag': '{{ netcheck_etcd_image_tag }}', 'unarchive': False, 'version': '{{ netcheck_etcd_image_tag }}'}}: 'kuboard_enabled' is undefined

The error appears to be in '/data/resource/spray-v2.18.0a-8_k8s-v1.23.6_v1.13 -amd64/content/3rd/kubespray/roles/download/tasks/main.yml': line 38, column 7, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

block:

完整日志

execute.log

youzainn commented 2 years ago

似乎必须安装Kuboard可选组件才不报错

shaohq commented 2 years ago

此问题已在最新的资源包中解决

aigc-in-all commented 2 years ago

fatal: [worker2]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stat'\n\nThe error appears to be in '/data/resource/spray-v2.19.0a_k8s-v1.24.3_v2.2-amd64/content/3rd/kubespray/roles/container-engine/runc/tasks/main.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: runc | set is_ostree\n ^ here\n" } 最新资源包:spray-v2.19.0a_k8s-v1.24.3_v2.2-amd64

Lin-qu commented 2 years ago

spray-v2.19.0a_k8s-v1.24.3_v2.2-arm64 ARM版的也发现了这个问题哈

fzf404 commented 2 years ago

我刚刚想升级来着,也碰到了。

fzf404 commented 2 years ago

聪明的我,已经想到解决办法:进入 kuboard-spray 数据卷文件,修改 kuboardspray_resource_package 为最新资源包(确保资源包已加载进来),重新进入升级菜单即可。