我在内网中设置多集群,更改CRD的multicluster为host后,ks-installer日志显示错误,日志内容如下:
{
"counter": 38,
"created": "2021-07-05T09:24:25.826738",
"end_line": 38,
"event": "runner_on_failed",
"event_data": {
"duration": 1808.990908,
"end": "2021-07-05T09:24:25.826551",
"event_loop": null,
"host": "localhost",
"ignore_errors": null,
"play": "localhost",
"play_pattern": "localhost",
"play_uuid": "5a6e4fc0-aadd-cdeb-8b7a-000000000005",
"playbook": "/kubesphere/playbooks/multicluster.yaml",
"playbook_uuid": "0e679c33-efd7-461f-82d9-8eed7e6937c8",
"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:30:08.026387",
"end": "2021-07-05 17:24:25.749110",
"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-07-05 16:54:17.722723",
"stderr": "Error: timed out waiting for the condition",
"stderr_lines": [
"Error: timed out waiting for the condition"
],
"stdout": "Release \"kubefed\" does not exist. Installing it now.",
"stdout_lines": [
"Release \"kubefed\" does not exist. Installing it now."
]
},
"role": "ks-multicluster",
"start": "2021-07-05T08:54:16.835643",
"task": "Kubefed | Initing kube-federation-system",
"task_action": "command",
"task_args": "",
"task_path": "/kubesphere/installer/roles/ks-multicluster/tasks/main.yml:31",
"task_uuid": "5a6e4fc0-aadd-cdeb-8b7a-00000000001c",
"uuid": "e189ec83-2251-4d4e-82a4-bed45e24f89d"
},
"parent_uuid": "5a6e4fc0-aadd-cdeb-8b7a-00000000001c",
"pid": 18787,
"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:30:08.026387\", \"end\": \"2021-07-05 17:24:25.749110\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2021-07-05 16:54:17.722723\", \"stderr\": \"Error: timed out waiting for the condition\", \"stderr_lines\": [\"Error: timed out waiting for the condition\"], \"stdout\": \"Release \\\"kubefed\\\" does not exist. Installing it now.\", \"stdout_lines\": [\"Release \\\"kubefed\\\" does not exist. Installing it now.\"]}",
"uuid": "e189ec83-2251-4d4e-82a4-bed45e24f89d"
}
再次登录kubesphere控制台,一直显示等待集群加入,所有功能不可用。
想请问下这是怎么回事?