操作系统信息
Centos7.9
Kubernetes版本信息
Client Version: version.Info{Major:“1”, Minor:“19”, GitVersion:“v1.19.13”, GitCommit:“53c7b65d4531a749cd3a7004c5212d23daa044a9”, GitTreeState:“clean”, BuildDate:“2021-07-15T20:58:11Z”, GoVersion:“go1.15.14”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
19.03.15
KubeSphere版本信息
3.2.1
问题是什么
安装升级过程日志如下:
Waiting for all tasks to be completed …
task alerting status is successful (⅒)
task network status is successful (2/10)
task auditing status is successful (3/10)
task logging status is successful (4/10)
task events status is successful (5/10)
task multicluster status is successful (6/10)
task servicemesh status is successful (7/10)
task openpitrix status is successful (8/10)
task devops status is failed (9/10)
task monitoring status is successful (10/10)
**************************************************
Collecting installation results …
Task ‘devops’ failed:
******************************************************************************************************************************************************
{
“counter”: 224,
“created”: “2022-01-04T08:35:30.816192”,
“end_line”: 248,
“event”: “runner_on_failed”,
“event_data”: {
"duration": 86.378854,
"end": "2022-01-04T08:35:30.815203",
"event_loop": null,
"host": "localhost",
"ignore_errors": null,
"play": "localhost",
"play_pattern": "localhost",
"play_uuid": "b62e4962-d5dc-efce-cd52-000000000005",
"playbook": "/kubesphere/playbooks/devops.yaml",
"playbook_uuid": "41845b1d-e693-4f63-9c4c-a90f63146f80",
"remote_addr": "127.0.0.1",
"res": {
"_ansible_no_log": false,
"attempts": 3,
"changed": true,
"cmd": "# Delete Job migrate because 'helm upgrade' will try to update immutable fields of Job, which is not allowed. \\n/usr/local/bin/kubectl delete job -n kubesphere-devops-system migrate --ignore-not-found\\n\\n/usr/local/bin/helm upgrade --install devops /kubesphere/kubesphere/ks-devops/charts/ks-devops-0.1.9.tgz -n kubesphere-devops-system -f /kubesphere/kubesphere/ks-devops/ks-devops-values.yaml\\n",
"delta": "0:00:10.406014",
"end": "2022-01-04 16:35:30.532642",
"invocation": {
"module_args": {
"_raw_params": "# Delete Job migrate because 'helm upgrade' will try to update immutable fields of Job, which is not allowed. \\n/usr/local/bin/kubectl delete job -n kubesphere-devops-system migrate --ignore-not-found\\n\\n/usr/local/bin/helm upgrade --install devops /kubesphere/kubesphere/ks-devops/charts/ks-devops-0.1.9.tgz -n kubesphere-devops-system -f /kubesphere/kubesphere/ks-devops/ks-devops-values.yaml\\n",
"_uses_shell": true,
"argv": null,
"chdir": null,
"creates": null,
"executable": "/bin/bash",
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"msg": "non-zero return code",
"rc": 1,
"start": "2022-01-04 16:35:20.126628",
"stderr": "Error: rendered manifests contain a resource that already exists. Unable to continue with install: S2iBuilderTemplate \\"binary\\" in namespace \\"\\" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key \\"app.kubernetes.io/managed-by\\": must be set to \\"Helm\\"; annotation validation error: missing key \\"meta.helm.sh/release-name\\": must be set to \\"devops\\"; annotation validation error: missing key \\"meta.helm.sh/release-namespace\\": must be set to \\"kubesphere-devops-system\\"",
"stderr_lines": [
"Error: rendered manifests contain a resource that already exists. Unable to continue with install: S2iBuilderTemplate \\"binary\\" in namespace \\"\\" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key \\"app.kubernetes.io/managed-by\\": must be set to \\"Helm\\"; annotation validation error: missing key \\"meta.helm.sh/release-name\\": must be set to \\"devops\\"; annotation validation error: missing key \\"meta.helm.sh/release-namespace\\": must be set to \\"kubesphere-devops-system\\""
],
"stdout": "Release \\"devops\\" does not exist. Installing it now.",
"stdout_lines": [
"Release \\"devops\\" does not exist. Installing it now."
]
},
"role": "ks-devops",
"start": "2022-01-04T08:34:04.436349",
"task": "ks-devops | Upgrading or installing ks-devops",
"task_action": "command",
"task_args": "",
"task_path": "/kubesphere/installer/roles/ks-devops/tasks/main.yaml:162",
"task_uuid": "b62e4962-d5dc-efce-cd52-00000000003f",
"uuid": "f78cfcd8-5e42-4860-bc23-41f0b65f73f7"
},
“parent_uuid”: “b62e4962-d5dc-efce-cd52-00000000003f”,
“pid”: 3638,
“runner_ident”: “devops”,
“start_line”: 247,
“stdout”: "fatal: [localhost]: FAILED! => {\“attempts\”: 3, \“changed\”: true, \“cmd\”: \“# Delete Job migrate because ‘helm upgrade’ will try to update immutable fields of Job, which is not allowed. \\n/usr/local/bin/kubectl delete job -n kubesphere-devops-system migrate –ignore-not-found\\n\\n/usr/local/bin/helm upgrade –install devops /kubesphere/kubesphere/ks-devops/charts/ks-devops-0.1.9.tgz -n kubesphere-devops-system -f /kubesphere/kubesphere/ks-devops/ks-devops-values.yaml\\n\”, \“delta\”: \“0:00:10.406014\”, \“end\”: \“2022-01-04 16:35:30.532642\”, \“msg\”: \“non-zero return code\”, \“rc\”: 1, \“start\”: \“2022-01-04 16:35:20.126628\”, \“stderr\”: \"Error: rendered manifests contain a resource that already exists. Unable to continue with install: S2iBuilderTemplate \\\“binary\\\” in namespace \\\“\\\” exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key \\\“app.kubernetes.io/managed-by\\\”: must be set to \\\“Helm\\\”; annotation validation error: missing key \\\“meta.helm.sh/release-name\\\”: must be set to \\\“devops\\\”; annotation validation error: missing key \\\“meta.helm.sh/release-namespace\\\”: must be set to \\\“kubesphere-devops-system\\\”\", \“stderr_lines\”: [\"Error: rendered manifests contain a resource that already exists. Unable to continue with install: S2iBuilderTemplate \\\“binary\\\” in namespace \\\“\\\” exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key \\\“app.kubernetes.io/managed-by\\\”: must be set to \\\“Helm\\\”; annotation validation error: missing key \\\“meta.helm.sh/release-name\\\”: must be set to \\\“devops\\\”; annotation validation error: missing key \\\“meta.helm.sh/release-namespace\\\”: must be set to \\\“kubesphere-devops-system\\\”\"], \“stdout\”: \"Release \\\“devops\\\” does not exist. Installing it now.\", \“stdout_lines\”: [\"Release \\\“devops\\\” does not exist. Installing it now.\“]}”,
“uuid”: “f78cfcd8-5e42-4860-bc23-41f0b65f73f7”
}
******************************************************************************************************************************************************