hongming
有 日志如下
Task ‘monitoring’ failed:
******************************************************************************************************************************************************
{
“counter”: 148,
“created”: “2024-04-15T10:58:29.101498”,
“end_line”: 141,
“event”: “runner_on_failed”,
“event_data”: {
"duration": 45.4324,
"end": "2024-04-15T10:58:29.101315",
"event_loop": null,
"host": "localhost",
"ignore_errors": null,
"play": "localhost",
"play_pattern": "localhost",
"play_uuid": "ae6a1384-2736-a126-03eb-000000000005",
"playbook": "/kubesphere/playbooks/monitoring.yaml",
"playbook_uuid": "3ba7af9f-0ab6-4497-83df-5bdf172b1337",
"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:00:02.925469",
"end": "2024-04-15 18:58:29.000366",
"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-15 18:58:26.074897",
"stderr": "Error: UPGRADE FAILED: rendered manifests contain a resource that already exists. Unable to continue with update: ConfigMap \\"zh-cn\\" in namespace \\"kubesphere-monitoring-system\\" 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 \\"notification-manager\\"; annotation validation error: missing key \\"meta.helm.sh/release-namespace\\": must be set to \\"kubesphere-monitoring-system\\"",
"stderr_lines": [
"Error: UPGRADE FAILED: rendered manifests contain a resource that already exists. Unable to continue with update: ConfigMap \\"zh-cn\\" in namespace \\"kubesphere-monitoring-system\\" 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 \\"notification-manager\\"; annotation validation error: missing key \\"meta.helm.sh/release-namespace\\": must be set to \\"kubesphere-monitoring-system\\""
],
"stdout": "",
"stdout_lines": []
},
"resolved_action": "command",
"role": "ks-monitor",
"start": "2024-04-15T10:57:43.668915",
"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": "ae6a1384-2736-a126-03eb-00000000005a",
"uuid": "2a0d8bb1-8c4d-4f91-b21e-b9fae6182926"
},
“parent_uuid”: “ae6a1384-2736-a126-03eb-00000000005a”,
“pid”: 3205,
“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:00:02.925469\”, \“end\”: \“2024-04-15 18:58:29.000366\”, \“msg\”: \“non-zero return code\”, \“rc\”: 1, \“start\”: \“2024-04-15 18:58:26.074897\”, \“stderr\”: \"Error: UPGRADE FAILED: rendered manifests contain a resource that already exists. Unable to continue with update: ConfigMap \\\“zh-cn\\\” in namespace \\\“kubesphere-monitoring-system\\\” 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 \\\“notification-manager\\\”; annotation validation error: missing key \\\“meta.helm.sh/release-namespace\\\”: must be set to \\\“kubesphere-monitoring-system\\\”\",\“stderr_lines\”: [\"Error: UPGRADE FAILED: rendered manifests contain a resource that already exists. Unable to continue with update: ConfigMap \\\“zh-cn\\\” in namespace \\\“kubesphere-monitoring-system\\\” 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 \\\“notification-manager\\\”; annotation validation error: missing key \\\“meta.helm.sh/release-namespace\\\”: must be set to \\\“kubesphere-monitoring-system\\\”\"], \“stdout\”: \“\”, \“stdout_lines\”: []}",
“uuid”: “2a0d8bb1-8c4d-4f91-b21e-b9fae6182926”