RolandMa1986 没见什么错,主要是现在kiali装不上了,我把istio-system命名空间删除,重新启用servicemesh,ks-installer报错:
Task 'servicemesh' failed:
******************************************************************************************************************************************************
{
"counter": 91,
"created": "2021-11-22T04:01:59.638819",
"end_line": 120,
"event": "runner_on_failed",
"event_data": {
"duration": 11.772982,
"end": "2021-11-22T04:01:59.637941",
"event_loop": null,
"host": "localhost",
"ignore_errors": null,
"play": "localhost",
"play_pattern": "localhost",
"play_uuid": "eab61834-9184-2477-3dfb-000000000005",
"playbook": "/kubesphere/playbooks/servicemesh.yaml",
"playbook_uuid": "42a59009-319b-46b2-8cde-8ce4949c32a5",
"remote_addr": "127.0.0.1",
"res": {
"_ansible_no_log": false,
"changed": true,
"cmd": "/usr/local/bin/helm upgrade --install kiali-operator /kubesphere/kubesphere/servicemesh/kiali/kiali-operator-1.38.1.tgz -f /kubesphere/kubesphere/servicemesh/kiali/custom-values-kiali.yaml --namespace istio-system\n",
"delta": "0:00:09.937754",
"end": "2021-11-22 12:01:59.557610",
"invocation": {
"module_args": {
"_raw_params": "/usr/local/bin/helm upgrade --install kiali-operator /kubesphere/kubesphere/servicemesh/kiali/kiali-operator-1.38.1.tgz -f /kubesphere/kubesphere/servicemesh/kiali/custom-values-kiali.yaml --namespace istio-system\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-11-22 12:01:49.619856",
"stderr": "Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRoleBinding \"kiali-operator\" in namespace \"\" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key \"meta.helm.sh/release-namespace\" must equal \"istio-system\": current value is \"kiali-operator\"",
"stderr_lines": [
"Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRoleBinding \"kiali-operator\" in namespace \"\" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key \"meta.helm.sh/release-namespace\" must equal \"istio-system\": current value is \"kiali-operator\""
],
"stdout": "Release \"kiali-operator\" does not exist. Installing it now.",
"stdout_lines": [
"Release \"kiali-operator\" does not exist. Installing it now."
]
},
"role": "ks-istio",
"start": "2021-11-22T04:01:47.864959",
"task": "servicemesh | Deploying kiali-operator",
"task_action": "command",
"task_args": "",
"task_path": "/kubesphere/installer/roles/ks-istio/tasks/kiali-install.yaml:14",
"task_uuid": "eab61834-9184-2477-3dfb-000000000031",
"uuid": "6280e4f4-85fb-4855-9131-c4b6d71f67e3"
},
"parent_uuid": "eab61834-9184-2477-3dfb-000000000031",
"pid": 4999,
"runner_ident": "servicemesh",
"start_line": 119,
"stdout": "fatal: [localhost]: FAILED! => {\"changed\": true, \"cmd\": \"/usr/local/bin/helm upgrade --install kiali-operator /kubesphere/kubesphere/servicemesh/kiali/kiali-operator-1.38.1.tgz -f /kubesphere/kubesphere/servicemesh/kiali/custom-values-kiali.yaml --namespace istio-system\\n\", \"delta\": \"0:00:09.937754\", \"end\": \"2021-11-22 12:01:59.557610\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2021-11-22 12:01:49.619856\", \"stderr\": \"Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRoleBinding \\\"kiali-operator\\\" in namespace \\\"\\\" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key \\\"meta.helm.sh/release-namespace\\\" must equal \\\"istio-system\\\": current value is \\\"kiali-operator\\\"\", \"stderr_lines\": [\"Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRoleBinding \\\"kiali-operator\\\" in namespace \\\"\\\" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key \\\"meta.helm.sh/release-namespace\\\" must equal \\\"istio-system\\\": current value is \\\"kiali-operator\\\"\"], \"stdout\": \"Release \\\"kiali-operator\\\" does not exist. Installing it now.\", \"stdout_lines\": [\"Release \\\"kiali-operator\\\" does not exist. Installing it now.\"]}",
"uuid": "6280e4f4-85fb-4855-9131-c4b6d71f67e3"
}