按照文档上卸载可插拔组件 (kubesphere.io)卸载日志组建后无法再次安装,有没有大佬也遇到过相同问题的,教下怎么解决,万分感谢!

TASK [ks-core/ks-core : KubeSphere | Upgrade CRDs] *****************************

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/alerting.kubesphere.io_clusterrulegroups.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/alerting.kubesphere.io_globalrulegroups.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/alerting.kubesphere.io_rulegroups.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/app_v1beta1_application.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmapplications.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmapplicationversions.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmcategories.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmreleases.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmrepos.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/cluster.kubesphere.io_clusters.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/gateway.kubesphere.io_gateways.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/gateway.kubesphere.io_nginxes.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_federatedrolebindings.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_federatedroles.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_federatedusers.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_globalrolebindings.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_globalroles.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_groupbindings.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_groups.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_loginrecords.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_rolebases.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_users.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_workspacerolebindings.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_workspaceroles.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_ipamblocks.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_ipamhandles.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_ippools.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_namespacenetworkpolicies.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/quota.kubesphere.io_resourcequotas.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/servicemesh.kubesphere.io_servicepolicies.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/servicemesh.kubesphere.io_strategies.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/storage.kubesphere.io_storageclasseraccessor.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/tenant.kubesphere.io_workspaces.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/tenant.kubesphere.io_workspacetemplates.yaml)

TASK [ks-core/ks-core : KubeSphere | Creating ks-core] *************************

changed: [localhost]

TASK [ks-core/ks-core : KubeSphere | Creating manifests] ***********************

ok: [localhost] => (item={'path': 'ks-core', 'file': 'ks-upgrade.yaml'})

TASK [ks-core/ks-core : Kubesphere | Checking Users Manger and Workspaces Manger] ***

changed: [localhost]

TASK [ks-core/ks-core : Kubesphere | Checking migration job] *******************

skipping: [localhost]

TASK [ks-core/ks-core : KubeSphere | Creating migration job] *******************

skipping: [localhost]

TASK [ks-core/ks-core : KubeSphere | Importing ks-core status] *****************

changed: [localhost]

TASK [ks-core/ks-core : KubeSphere | Checking RoleTemplate Alerting Management] ***

changed: [localhost]

TASK [ks-core/ks-core : KubeSphere | Deleteing RoleTemplate Alerting Management] ***

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Checking core components (1)] *************

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Checking core components (2)] *************

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Checking core components (3)] *************

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Checking core components (4)] *************

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Updating ks-core status] ******************

skipping: [localhost]

TASK [ks-core/prepare : set_fact] **********************************************

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Creating KubeSphere directory] ************

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Getting installation init files] **********

skipping: [localhost] => (item=ks-init)

TASK [ks-core/prepare : KubeSphere | Initing KubeSphere] ***********************

skipping: [localhost] => (item=role-templates.yaml)

TASK [ks-core/prepare : KubeSphere | Generating kubeconfig-admin] **************

skipping: [localhost]

PLAY RECAP *********************************************************************

localhost : ok=25 changed=14 unreachable=0 failed=0 skipped=22 rescued=0 ignored=0

Start installing monitoring

Start installing multicluster

Start installing openpitrix

Start installing network

Start installing logging

**************************************************

Waiting for all tasks to be completed ...

task network status is successful (1/5)

task multicluster status is successful (2/5)

task openpitrix status is successful (3/5)

task logging status is failed (4/5)

task monitoring status is successful (5/5)

**************************************************

Collecting installation results ...

Task 'logging' failed:

******************************************************************************************************************************************************

{

"counter": 51,

"created": "2024-09-11T15:05:57.457252",

"end_line": 49,

"event": "runner_on_failed",

"event_data": {

"duration": 6.197198,

"end": "2024-09-11T15:05:57.456769",

"event_loop": null,

"host": "localhost",

"ignore_errors": null,

"play": "localhost",

"play_pattern": "localhost",

"play_uuid": "e20450e7-d92d-36f8-8bd6-000000000005",

"playbook": "/kubesphere/playbooks/logging.yaml",

"playbook_uuid": "ada162f1-23ab-4a30-b7be-301a4f03d09c",

"remote_addr": "127.0.0.1",

"res": {

"_ansible_no_log": false,

"changed": true,

"cmd": "/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/fluentbit-operator\n",

"delta": "0:00:03.608110",

"end": "2024-09-11 23:05:57.265839",

"invocation": {

"module_args": {

"_raw_params": "/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/fluentbit-operator\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-09-11 23:05:53.657729",

"stderr": "unable to recognize \"/kubesphere/kubesphere/fluentbit-operator/custom-input-logging.yaml\": no matches for kind \"Input\" in version \"logging.kubesphere.io/v1alpha2\"\nunable to recognize \"/kubesphere/kubesphere/fluentbit-operator/custom-input-systemd.yaml\": no matches for kind \"Input\" in version \"logging.kubesphere.io/v1alpha2\"\nunable to recognize \"/kubesphere/kubesphere/fluentbit-operator/custom-output-elasticsearch-logging.yaml\": no matches for kind \"Output\" in version \"logging.kubesphere.io/v1alpha2\"\nunable to recognize \"/kubesphere/kubesphere/fluentbit-operator/input-systemd-kubelet.yaml\": no matches for kind \"Input\" in version \"logging.kubesphere.io/v1alpha2\"",

"stderr_lines": [

"unable to recognize \"/kubesphere/kubesphere/fluentbit-operator/custom-input-logging.yaml\": no matches for kind \"Input\" in version \"logging.kubesphere.io/v1alpha2\"",

"unable to recognize \"/kubesphere/kubesphere/fluentbit-operator/custom-input-systemd.yaml\": no matches for kind \"Input\" in version \"logging.kubesphere.io/v1alpha2\"",

"unable to recognize \"/kubesphere/kubesphere/fluentbit-operator/custom-output-elasticsearch-logging.yaml\": no matches for kind \"Output\" in version \"logging.kubesphere.io/v1alpha2\"",

"unable to recognize \"/kubesphere/kubesphere/fluentbit-operator/input-systemd-kubelet.yaml\": no matches for kind \"Input\" in version \"logging.kubesphere.io/v1alpha2\""

],

"stdout": "filter.logging.kubesphere.io/kubernetes created\nfilter.logging.kubesphere.io/systemd created",

"stdout_lines": [

"filter.logging.kubesphere.io/kubernetes created",

"filter.logging.kubesphere.io/systemd created"

]

},

"resolved_action": "command",

"role": "ks-logging",

"start": "2024-09-11T15:05:51.259571",

"task": "ks-logging | Apply fluent-bit operator custom resources",

"task_action": "command",

"task_args": "",

"task_path": "/kubesphere/installer/roles/ks-logging/tasks/main.yaml:61",

"task_uuid": "e20450e7-d92d-36f8-8bd6-00000000001f",

"uuid": "8229b6ba-71a7-47bc-91df-a63052934c20"

},

"parent_uuid": "e20450e7-d92d-36f8-8bd6-00000000001f",

"pid": 30159,

"runner_ident": "logging",

"start_line": 48,

"stdout": "fatal: [localhost]: FAILED! => {\"changed\": true, \"cmd\": \"/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/fluentbit-operator\\n\", \"delta\": \"0:00:03.608110\", \"end\": \"2024-09-11 23:05:57.265839\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2024-09-11 23:05:53.657729\", \"stderr\": \"unable to recognize \\\"/kubesphere/kubesphere/fluentbit-operator/custom-input-logging.yaml\\\": no matches for kind \\\"Input\\\" in version \\\"logging.kubesphere.io/v1alpha2\\\"\\nunable to recognize \\\"/kubesphere/kubesphere/fluentbit-operator/custom-input-systemd.yaml\\\": no matches for kind \\\"Input\\\" in version \\\"logging.kubesphere.io/v1alpha2\\\"\\nunable to recognize \\\"/kubesphere/kubesphere/fluentbit-operator/custom-output-elasticsearch-logging.yaml\\\": no matches for kind \\\"Output\\\" in version \\\"logging.kubesphere.io/v1alpha2\\\"\\nunable to recognize \\\"/kubesphere/kubesphere/fluentbit-operator/input-systemd-kubelet.yaml\\\": no matches for kind \\\"Input\\\" in version \\\"logging.kubesphere.io/v1alpha2\\\"\", \"stderr_lines\": [\"unable to recognize \\\"/kubesphere/kubesphere/fluentbit-operator/custom-input-logging.yaml\\\": no matches for kind \\\"Input\\\" in version \\\"logging.kubesphere.io/v1alpha2\\\"\", \"unable to recognize \\\"/kubesphere/kubesphere/fluentbit-operator/custom-input-systemd.yaml\\\": no matches for kind \\\"Input\\\" in version \\\"logging.kubesphere.io/v1alpha2\\\"\", \"unable to recognize \\\"/kubesphere/kubesphere/fluentbit-operator/custom-output-elasticsearch-logging.yaml\\\": no matches for kind \\\"Output\\\" in version \\\"logging.kubesphere.io/v1alpha2\\\"\", \"unable to recognize \\\"/kubesphere/kubesphere/fluentbit-operator/input-systemd-kubelet.yaml\\\": no matches for kind \\\"Input\\\" in version \\\"logging.kubesphere.io/v1alpha2\\\"\"], \"stdout\": \"filter.logging.kubesphere.io/kubernetes created\\nfilter.logging.kubesphere.io/systemd created\", \"stdout_lines\": [\"filter.logging.kubesphere.io/kubernetes created\", \"filter.logging.kubesphere.io/systemd created\"]}",

"uuid": "8229b6ba-71a7-47bc-91df-a63052934c20"

}

把cc里status里logging部分删了,试试

1 个月 后

@953077065 将 CRD ClusterConfiguration 配置文件中 ks-installer 的status的logging部分删了,不然不会重新安装

    NullFox 看fluentbit有报错,是不是把state里的fluentbit也删掉,然后重新安装?

    fluent你卸载了吗?文档上的卸载流程里有卸载方法,全卸载了重装吧