创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
虚拟机,Centos7.9,8C/32G
Kubernetes版本信息
Client Version: version.Info{Major:“1”, Minor:“26”, GitVersion:“v1.26.0”, GitCommit:“b46a3f887ca979b1a5d14fd39cb1af43e7e5d12d”, GitTreeState:“clean”, BuildDate:“2022-12-08T19:58:30Z”, GoVersion:“go1.19.4”, Compiler:“gc”, Platform:“linux/amd64”}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:“1”, Minor:“26”, GitVersion:“v1.26.0”, GitCommit:“b46a3f887ca979b1a5d14fd39cb1af43e7e5d12d”, GitTreeState:“clean”, BuildDate:“2022-12-08T19:51:45Z”, GoVersion:“go1.19.4”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
Version: 0.1.0
RuntimeName: containerd
RuntimeVersion: 1.6.6
RuntimeApiVersion: v1
KubeSphere版本信息
V3.4.1 在已有K8s上离线安装.
问题是什么
Task 'monitoring' failed:
******************************************************************************************************************************************************
{
"counter": 148,
"created": "2024-04-11T09:06:56.722466",
"end_line": 141,
"event": "runner_on_failed",
"event_data": {
"duration": 949.41072,
"end": "2024-04-11T09:06:56.722320",
"event_loop": null,
"host": "localhost",
"ignore_errors": null,
"play": "localhost",
"play_pattern": "localhost",
"play_uuid": "2e4cc1f0-7ac0-57c9-a420-000000000005",
"playbook": "/kubesphere/playbooks/monitoring.yaml",
"playbook_uuid": "ba091dbe-2c2e-49e0-8dd2-ba349cf370a6",
"remote_addr": "127.0.0.1",
"res": {
"_ansible_no_log": false,
"attempts": 3,
"changed": true,
"cmd": "/usr/local/bin/helm upgrade --install notification-manager /kubesphere/kubesphere/notification-manager -f /kubesphere/kubesphere/notification-manager/custom-values-notification.yaml -n kubesphere-monitoring-system --force\n",
"delta": "0:05:04.403120",
"end": "2024-04-11 17:06:56.696665",
"invocation": {
"module_args": {
"_raw_params": "/usr/local/bin/helm upgrade --install notification-manager /kubesphere/kubesphere/notification-manager -f /kubesphere/kubesphere/notification-manager/custom-values-notification.yaml -n kubesphere-monitoring-system --force\n",
"_uses_shell": true,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"msg": "non-zero return code",
"rc": 1,
"start": "2024-04-11 17:01:52.293545",
"stderr": "Error: UPGRADE FAILED: post-upgrade hooks failed: timed out waiting for the condition",
"stderr_lines": [
"Error: UPGRADE FAILED: post-upgrade hooks failed: timed out waiting for the condition"
],
"stdout": "",
"stdout_lines": []
},
"resolved_action": "command",
"role": "ks-monitor",
"start": "2024-04-11T08:51:07.311600",
"task": "notification-manager | Deploying notification-manager",
"task_action": "command",
"task_args": "",
"task_path": "/kubesphere/installer/roles/ks-monitor/tasks/notification-manager.yaml:30",
"task_uuid": "2e4cc1f0-7ac0-57c9-a420-00000000005a",
"uuid": "cec2aedb-57f1-4e83-b72a-92954140ec90"
},
"parent_uuid": "2e4cc1f0-7ac0-57c9-a420-00000000005a",
"pid": 3494,
"runner_ident": "monitoring",
"start_line": 140,
"stdout": "fatal: [localhost]: FAILED! => {\"attempts\": 3, \"changed\": true, \"cmd\": \"/usr/local/bin/helm upgrade --install notification-manager /kubesphere/kubesphere/notification-manager -f /kubesphere/kubesphere/notification-manager/custom-values-notification.yaml -n kubesphere-monitoring-system --force\\n\", \"delta\": \"0:05:04.403120\", \"end\": \"2024-04-11 17:06:56.696665\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2024-04-11 17:01:52.293545\", \"stderr\": \"Error: UPGRADE FAILED: post-upgrade hooks failed: timed out waiting for the condition\", \"stderr_lines\": [\"Error: UPGRADE FAILED: post-upgrade hooks failed: timed out waiting for the condition\"], \"stdout\": \"\", \"stdout_lines\": []}",
"uuid": "cec2aedb-57f1-4e83-b72a-92954140ec90"
}