

但是可以从kuboard中查看奥pod的日志如下:
2021-03-24T10:00:39+08:00 INFO : shell-operator latest
2021-03-24T10:00:39+08:00 INFO : Use temporary dir: /tmp/shell-operator
2021-03-24T10:00:39+08:00 INFO : Initialize hooks manager …
2021-03-24T10:00:39+08:00 INFO : Search and load hooks …
2021-03-24T10:00:39+08:00 INFO : HTTP SERVER Listening on 0.0.0.0:9115
2021-03-24T10:00:39+08:00 INFO : Load hook config from ‘/hooks/kubesphere/installRunner.py’
2021-03-24T10:00:41+08:00 INFO : Load hook config from ‘/hooks/kubesphere/schedule.sh’
2021-03-24T10:00:41+08:00 INFO : Initializing schedule manager …
2021-03-24T10:00:41+08:00 INFO : KUBE Init Kubernetes client
2021-03-24T10:00:41+08:00 INFO : KUBE-INIT Kubernetes client is configured successfully
2021-03-24T10:00:41+08:00 INFO : MAIN: run main loop
2021-03-24T10:00:41+08:00 INFO : MAIN: add onStartup tasks
2021-03-24T10:00:41+08:00 INFO : QUEUE add all HookRun@OnStartup
2021-03-24T10:00:41+08:00 INFO : Running schedule manager …
2021-03-24T10:00:41+08:00 INFO : MSTOR Create new metric shell_operator_live_ticks
2021-03-24T10:00:41+08:00 INFO : MSTOR Create new metric shell_operator_tasks_queue_length
2021-03-24T10:00:41+08:00 INFO : GVR for kind ‘ClusterConfiguration’ is installer.kubesphere.io/v1alpha1, Resource=clusterconfigurations
2021-03-24T10:00:41+08:00 INFO : EVENT Kube event ‘cf423d23-0514-4f86-bdc0-ee3411545c58’
2021-03-24T10:00:41+08:00 INFO : QUEUE add TASK_HOOK_RUN@KUBE_EVENTS kubesphere/installRunner.py
2021-03-24T10:00:44+08:00 INFO : TASK_RUN HookRun@KUBE_EVENTS kubesphere/installRunner.py
2021-03-24T10:00:44+08:00 INFO : Running hook ‘kubesphere/installRunner.py’ binding ‘KUBE_EVENTS’ …
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match ‘all’
PLAY [localhost] ***************************************************************
TASK [download : include_tasks] ************************************************
skipping: [localhost]
TASK [download : Download items] ***********************************************
skipping: [localhost]
TASK [download : Sync container] ***********************************************
skipping: [localhost]
TASK [kubesphere-defaults : Configure defaults] ********************************
ok: [localhost] => {
“msg”: “Check roles/kubesphere-defaults/defaults/main.yml”
}
TASK [preinstall : check k8s version] ******************************************
changed: [localhost]
TASK [preinstall : init k8s version] *******************************************
ok: [localhost]
TASK [preinstall : Stop if kubernetes version is nonsupport] *******************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}
TASK [preinstall : check storage class] ****************************************
changed: [localhost]
TASK [preinstall : Stop if StorageClass was not found] *************************
skipping: [localhost]
TASK [preinstall : check default storage class] ********************************
changed: [localhost]
TASK [preinstall : Stop if defaultStorageClass was not found] ******************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}
TASK [preinstall : Kubesphere | Checking kubesphere component] *****************
changed: [localhost]
TASK [preinstall : Kubesphere | Get kubesphere component version] **************
skipping: [localhost]
TASK [preinstall : Kubesphere | Get kubesphere component version] **************
skipping: [localhost] => (item=ks-openldap)
skipping: [localhost] => (item=ks-redis)
skipping: [localhost] => (item=ks-minio)
skipping: [localhost] => (item=ks-openpitrix)
skipping: [localhost] => (item=elasticsearch-logging)
skipping: [localhost] => (item=elasticsearch-logging-curator)
skipping: [localhost] => (item=istio)
skipping: [localhost] => (item=istio-init)
skipping: [localhost] => (item=jaeger-operator)
skipping: [localhost] => (item=ks-jenkins)
skipping: [localhost] => (item=ks-sonarqube)
skipping: [localhost] => (item=logging-fluentbit-operator)
skipping: [localhost] => (item=uc)
skipping: [localhost] => (item=metrics-server)
PLAY RECAP *********************************************************************
localhost : ok=8 changed=4 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match ‘all’
PLAY [localhost] ***************************************************************
TASK [download : include_tasks] ************************************************
skipping: [localhost]
TASK [download : Download items] ***********************************************
skipping: [localhost]
TASK [download : Sync container] ***********************************************
skipping: [localhost]
TASK [kubesphere-defaults : Configure defaults] ********************************
ok: [localhost] => {
“msg”: “Check roles/kubesphere-defaults/defaults/main.yml”
}
TASK [metrics-server : Metrics-Server | Checking old installation files] *******
skipping: [localhost]
TASK [metrics-server : Metrics-Server | deleting old metrics-server] ***********
skipping: [localhost]
TASK [metrics-server : Metrics-Server | deleting old metrics-server files] *****
skipping: [localhost] => (item=metrics-server)
TASK [metrics-server : Metrics-Server | Getting metrics-server installation files] ***
skipping: [localhost]
TASK [metrics-server : Metrics-Server | Creating manifests] ********************
skipping: [localhost] => (item={‘name’: ‘values’, ‘file’: ‘values.yaml’, ‘type’: ‘config’})
TASK [metrics-server : Metrics-Server | Check Metrics-Server] ******************
skipping: [localhost]
TASK [metrics-server : Metrics-Server | Installing metrics-server] *************
skipping: [localhost]
TASK [metrics-server : Metrics-Server | Installing metrics-server retry] *******
skipping: [localhost]
TASK [metrics-server : Metrics-Server | Waitting for v1beta1.metrics.k8s.io ready] ***
skipping: [localhost]
TASK [metrics-server : Metrics-Server | import metrics-server status] **********
skipping: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match ‘all’
PLAY [localhost] ***************************************************************
TASK [download : include_tasks] ************************************************
skipping: [localhost]
TASK [download : Download items] ***********************************************
skipping: [localhost]
TASK [download : Sync container] ***********************************************
skipping: [localhost]
TASK [kubesphere-defaults : Configure defaults] ********************************
ok: [localhost] => {
“msg”: “Check roles/kubesphere-defaults/defaults/main.yml”
}
TASK [common : Kubesphere | Check kube-node-lease namespace] *******************
changed: [localhost]
TASK [common : KubeSphere | Get system namespaces] *****************************
ok: [localhost]
TASK [common : set_fact] *******************************************************
ok: [localhost]
TASK [common : debug] **********************************************************
ok: [localhost] => {
“msg”: [
“kubesphere-system”,
“kubesphere-controls-system”,
“kubesphere-monitoring-system”,
“kube-node-lease”
]
}
TASK [common : KubeSphere | Create kubesphere namespace] ***********************
changed: [localhost] => (item=kubesphere-system)
changed: [localhost] => (item=kubesphere-controls-system)
changed: [localhost] => (item=kubesphere-monitoring-system)
changed: [localhost] => (item=kube-node-lease)
TASK [common : KubeSphere | Labeling system-workspace] *************************
changed: [localhost] => (item=default)
changed: [localhost] => (item=kube-public)
changed: [localhost] => (item=kube-system)
changed: [localhost] => (item=kubesphere-system)
changed: [localhost] => (item=kubesphere-controls-system)
changed: [localhost] => (item=kubesphere-monitoring-system)
changed: [localhost] => (item=kube-node-lease)
TASK [common : KubeSphere | Create ImagePullSecrets] ***************************
changed: [localhost] => (item=default)
changed: [localhost] => (item=kube-public)
changed: [localhost] => (item=kube-system)
changed: [localhost] => (item=kubesphere-system)
changed: [localhost] => (item=kubesphere-controls-system)
changed: [localhost] => (item=kubesphere-monitoring-system)
changed: [localhost] => (item=kube-node-lease)
TASK [common : Kubesphere | Label namespace for network policy] ****************
changed: [localhost]
TASK [common : KubeSphere | Getting kubernetes master num] *********************
changed: [localhost]
TASK [common : KubeSphere | Setting master num] ********************************
ok: [localhost]
TASK [common : Kubesphere | Getting common component installation files] *******
changed: [localhost] => (item=common)
changed: [localhost] => (item=ks-crds)
TASK [common : KubeSphere | Create KubeSphere crds] ****************************
changed: [localhost]
TASK [common : KubeSphere | Recreate KubeSphere crds] **************************
changed: [localhost]
TASK [common : KubeSphere | check k8s version] *********************************
changed: [localhost]
TASK [common : Kubesphere | Getting common component installation files] *******
changed: [localhost] => (item=snapshot-controller)
TASK [common : Kubesphere | Creating snapshot controller values] ***************
changed: [localhost] => (item={‘name’: ‘custom-values-snapshot-controller’, ‘file’: ‘custom-values-snapshot-controller.yaml’})
TASK [common : Kubesphere | Remove old snapshot crd] ***************************
changed: [localhost]
TASK [common : Kubesphere | Deploy snapshot controller] ************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/helm upgrade –install snapshot-controller /kubesphere/kubesphere/snapshot-controller -f /kubesphere/kubesphere/custom-values-snapshot-controller.yaml –namespace kube-system\n”, “delta”: “0:00:02.671127”, “end”: “2021-03-24 10:01:56.430865”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-03-24 10:01:53.759738”, “stderr”: "Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRole \“snapshot-controller-runner\” 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 \“snapshot-controller\”; annotation validation error: missing key \“meta.helm.sh/release-namespace\”: must be set to \“kube-system\”", “stderr_lines”: ["Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRole \“snapshot-controller-runner\” 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 \“snapshot-controller\”; annotation validation error: missing key \“meta.helm.sh/release-namespace\”: must be set to \“kube-system\”"], “stdout”: "Release \“snapshot-controller\” does not exist. Installing it now.", “stdout_lines”: ["Release \“snapshot-controller\” does not exist. Installing it now."]}
PLAY RECAP *********************************************************************
localhost : ok=18 changed=13 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0