报错信息如下:
Task ‘multicluster’ failed:
{
“counter”: 38,
“created”: “2021-05-06T17:40:31.753777”,
“end_line”: 38,
“event”: “runner_on_failed”,
“event_data”: {
“duration”: 301.996971,
“end”: “2021-05-06T17:40:31.753570”,
“event_loop”: null,
“host”: “localhost”,
“ignore_errors”: null,
“play”: “localhost”,
“play_pattern”: “localhost”,
“play_uuid”: “3efe6e61-3fa7-c639-4a33-000000000005”,
“playbook”: “/kubesphere/playbooks/multicluster.yaml”,
“playbook_uuid”: “1dc78ee1-f8ed-4c3a-bfac-6884b88b0cde”,
“remote_addr”: “127.0.0.1”,
“res”: {
“ansible_no_log”: false,
“changed”: true,
“cmd”: “/usr/local/bin/helm upgrade –install kubefed /kubesphere/kubesphere/kubefed/kubefed -f /kubesphere/kubesphere/kubefed/custom-values-kubefed.yaml –namespace kube-federation-system –wait –timeout 1800s\n”,
“delta”: “0:05:00.993539”,
“end”: “2021-05-07 01:40:31.731831”,
“invocation”: {
“module_args”: {
“raw_params”: “/usr/local/bin/helm upgrade –install kubefed /kubesphere/kubesphere/kubefed/kubefed -f /kubesphere/kubesphere/kubefed/custom-values-kubefed.yaml –namespace kube-federation-system –wait –timeout 1800s\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”: “2021-05-07 01:35:30.738292”,
“stderr”: “Error: UPGRADE FAILED: post-upgrade hooks failed: job failed: BackoffLimitExceeded”,
“stderr_lines”: [
“Error: UPGRADE FAILED: post-upgrade hooks failed: job failed: BackoffLimitExceeded”
],
“stdout”: "",
“stdout_lines”: []
},
“role”: “ks-multicluster”,
“start”: “2021-05-06T17:35:29.756599”,
“task”: “Kubefed | Initing kube-federation-system”,
“task_action”: “command”,
“task_args”: "",
“task_path”: “/kubesphere/installer/roles/ks-multicluster/tasks/main.yml:31”,
“task_uuid”: “3efe6e61-3fa7-c639-4a33-00000000001c”,
“uuid”: “3d2734b4-c0e4-4916-b21b-5ddcd5516110”
},
“parent_uuid”: “3efe6e61-3fa7-c639-4a33-00000000001c”,
“pid”: 12841,
“runner_ident”: “multicluster”,
“start_line”: 37,
“stdout”: "fatal: [localhost]: FAILED! => {\“changed\”: true, \“cmd\”: \“/usr/local/bin/helm upgrade –install kubefed /kubesphere/kubesphere/kubefed/kubefed -f /kubesphere/kubesphere/kubefed/custom-values-kubefed.yaml –namespace kube-federation-system –wait –timeout 1800s\n\”, \“delta\”: \“0:05:00.993539\”, \“end\”: \“2021-05-07 01:40:31.731831\”, \“msg\”: \“non-zero return code\”, \“rc\”: 1, \“start\”: \“2021-05-07 01:35:30.738292\”, \“stderr\”: \“Error: UPGRADE FAILED: post-upgrade hooks failed: job failed: BackoffLimitExceeded\”, \“stderr_lines\”: [\“Error: UPGRADE FAILED: post-upgrade hooks failed: job failed: BackoffLimitExceeded\”], \“stdout\”: \“\”, \“stdout_lines\”: []}",
“uuid”: “3d2734b4-c0e4-4916-b21b-5ddcd5516110”
}
看应用状态是failed:
helm list -A | grep kubefed
kubefed kube-federation-system 2 2021-05-07 01:35:33.154849286 +0800 CST failed kubefed-0.7.0
对应命名空间的Pod正常运行
