chilianyi
先按照文档卸载:https://kubesphere.io/zh/docs/v3.4/pluggable-components/uninstall-pluggable-components/#%E5%8D%B8%E8%BD%BD-kubesphere-devops
再执行命令;
pod也重启了
再按照文档重装:https://kubesphere.io/zh/docs/v3.4/pluggable-components/devops/#%E5%9C%A8%E5%AE%89%E8%A3%85%E5%90%8E%E5%90%AF%E7%94%A8-devops
然后结果还是和上面问题的内容一样:
PLAY RECAP *********************************************************************
localhost : ok=30 changed=18 unreachable=0 failed=0 skipped=17 rescued=0 ignored=0
Start installing monitoring
Start installing multicluster
Start installing openpitrix
Start installing network
Start installing devops
Start installing events
Waiting for all tasks to be completed …
task network status is successful (⅙)
task openpitrix status is successful (2/6)
task multicluster status is successful (3/6)
task events status is successful (4/6)
task devops status is failed (⅚)
task monitoring status is successful (6/6)
Collecting installation results …
Task 'devops' failed:
******************************************************************************************************************************************************
{
"counter": 146,
"created": "2023-09-23T06:17:15.089587",
"end_line": 175,
"event": "runner_on_failed",
"event_data": {
"duration": 1.787483,
"end": "2023-09-23T06:17:15.089482",
"event_loop": null,
"host": "localhost",
"ignore_errors": null,
"play": "localhost",
"play_pattern": "localhost",
"play_uuid": "cadf39de-a05e-3964-1a4d-000000000005",
"playbook": "/kubesphere/playbooks/devops.yaml",
"playbook_uuid": "3b527603-0a82-406e-a34b-e61f368034f6",
"remote_addr": "127.0.0.1",
"res": {
"changed": true,
"msg": "All items completed",
"results": [
{
"_ansible_item_label": "kubesphere-devops-worker",
"_ansible_no_log": false,
"ansible_loop_var": "item",
"changed": true,
"cmd": "/usr/local/bin/kubectl label --overwrite namespaces kubesphere-devops-worker kubesphere.io/workspace=system-workspace\n",
"delta": "0:00:00.193820",
"end": "2023-09-23 06:17:14.284541",
"failed": true,
"invocation": {
"module_args": {
"_raw_params": "/usr/local/bin/kubectl label --overwrite namespaces kubesphere-devops-worker kubesphere.io/workspace=system-workspace\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
}
},
"item": "kubesphere-devops-worker",
"msg": "non-zero return code",
"rc": 1,
"start": "2023-09-23 06:17:14.090721",
"stderr": "Error from server (NotFound): namespaces \"kubesphere-devops-worker\" not found",
"stderr_lines": [
"Error from server (NotFound): namespaces \"kubesphere-devops-worker\" not found"
],
"stdout": "",
"stdout_lines": []
},
{
"_ansible_item_label": "argocd",
"_ansible_no_log": false,
"ansible_loop_var": "item",
"changed": true,
"cmd": "/usr/local/bin/kubectl label --overwrite namespaces argocd kubesphere.io/workspace=system-workspace\n",
"delta": "0:00:00.200808",
"end": "2023-09-23 06:17:15.001559",
"failed": false,
"invocation": {
"module_args": {
"_raw_params": "/usr/local/bin/kubectl label --overwrite namespaces argocd kubesphere.io/workspace=system-workspace\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
}
},
"item": "argocd",
"rc": 0,
"start": "2023-09-23 06:17:14.800751",
"stderr": "",
"stderr_lines": [],
"stdout": "namespace/argocd not labeled",
"stdout_lines": [
"namespace/argocd not labeled"
]
}
]
},
"resolved_action": "shell",
"role": "ks-devops",
"start": "2023-09-23T06:17:13.301999",
"task": "ks-devops | Labelling devops namespaces as system workspace",
"task_action": "shell",
"task_args": "",
"task_path": "/kubesphere/installer/roles/ks-devops/tasks/main.yaml:232",
"task_uuid": "cadf39de-a05e-3964-1a4d-000000000043",
"uuid": "b0e4d4ee-d60c-41f6-a76e-31dee73ea001"
},
"parent_uuid": "cadf39de-a05e-3964-1a4d-000000000043",
"pid": 10228,
"runner_ident": "devops",
"start_line": 175,
"stdout": "",
"uuid": "b0e4d4ee-d60c-41f6-a76e-31dee73ea001"
}
******************************************************************************************************************************************************
当前状态: