Cauchy
测试失败了:
status里面的已经删除
openpitrix的enabled: true
重启后的日志:
2021-03-29T18:57:23+08:00 INFO : shell-operator latest
2021-03-29T18:57:23+08:00 INFO : HTTP SERVER Listening on 0.0.0.0:9115
2021-03-29T18:57:23+08:00 INFO : Use temporary dir: /tmp/shell-operator
2021-03-29T18:57:23+08:00 INFO : Initialize hooks manager ...
2021-03-29T18:57:23+08:00 INFO : Search and load hooks ...
2021-03-29T18:57:23+08:00 INFO : Load hook config from '/hooks/kubesphere/installRunner.py'
2021-03-29T18:57:23+08:00 INFO : Load hook config from '/hooks/kubesphere/schedule.sh'
2021-03-29T18:57:23+08:00 INFO : Initializing schedule manager ...
2021-03-29T18:57:23+08:00 INFO : KUBE Init Kubernetes client
2021-03-29T18:57:23+08:00 INFO : KUBE-INIT Kubernetes client is configured successfully
2021-03-29T18:57:23+08:00 INFO : MAIN: run main loop
2021-03-29T18:57:23+08:00 INFO : MAIN: add onStartup tasks
2021-03-29T18:57:23+08:00 INFO : QUEUE add all HookRun@OnStartup
2021-03-29T18:57:23+08:00 INFO : Running schedule manager ...
2021-03-29T18:57:23+08:00 INFO : MSTOR Create new metric shell_operator_live_ticks
2021-03-29T18:57:23+08:00 INFO : MSTOR Create new metric shell_operator_tasks_queue_length
2021-03-29T18:57:23+08:00 INFO : GVR for kind 'ClusterConfiguration' is installer.kubesphere.io/v1alpha1, Resource=clusterconfigurations
2021-03-29T18:57:23+08:00 INFO : EVENT Kube event '6e4ce5d2-b195-45cf-a378-71c6fc6fae11'
2021-03-29T18:57:23+08:00 INFO : QUEUE add TASK_HOOK_RUN@KUBE_EVENTS kubesphere/installRunner.py
2021-03-29T18:57:26+08:00 INFO : TASK_RUN HookRun@KUBE_EVENTS kubesphere/installRunner.py
2021-03-29T18:57:26+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] **************
changed: [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=9 changed=5 unreachable=0 failed=0 skipped=5 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] *******
ok: [localhost]
TASK [metrics-server : Metrics-Server | deleting old metrics-server] ***********
skipping: [localhost]
TASK [metrics-server : Metrics-Server | deleting old metrics-server files] *****
[DEPRECATION WARNING]: evaluating {'changed': False, 'stat': {'exists': False},
'failed': False} as a bare variable, this behaviour will go away and you might
need to add |bool to the expression in the future. Also see
CONDITIONAL_BARE_VARS configuration toggle.. This feature will be removed in
version 2.12. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ok: [localhost] => (item=metrics-server)
TASK [metrics-server : Metrics-Server | Getting metrics-server installation files] ***
changed: [localhost]
TASK [metrics-server : Metrics-Server | Creating manifests] ********************
changed: [localhost] => (item={'name': 'values', 'file': 'values.yaml', 'type': 'config'})
TASK [metrics-server : Metrics-Server | Check Metrics-Server] ******************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/helm list metrics-server -n kube-system\n", "delta": "0:00:00.052856", "end": "2021-03-29 18:57:47.695565", "msg": "non-zero return code", "rc": 1, "start": "2021-03-29 18:57:47.642709", "stderr": "Error: \"helm list\" accepts no arguments\n\nUsage: helm list [flags]", "stderr_lines": ["Error: \"helm list\" accepts no arguments", "", "Usage: helm list [flags]"], "stdout": "", "stdout_lines": []}
...ignoring
TASK [metrics-server : Metrics-Server | Installing metrics-server] *************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/helm upgrade --install metrics-server /kubesphere/kubesphere/metrics-server --namespace kube-system\n", "delta": "0:00:00.503892", "end": "2021-03-29 18:57:48.467342", "msg": "non-zero return code", "rc": 1, "start": "2021-03-29 18:57:47.963450", "stderr": "Error: rendered manifests contain a resource that already exists. Unable to continue with install: ServiceAccount \"metrics-server\" in namespace \"kube-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 \"metrics-server\"; 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: ServiceAccount \"metrics-server\" in namespace \"kube-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 \"metrics-server\"; annotation validation error: missing key \"meta.helm.sh/release-namespace\": must be set to \"kube-system\""], "stdout": "Release \"metrics-server\" does not exist. Installing it now.", "stdout_lines": ["Release \"metrics-server\" does not exist. Installing it now."]}
...ignoring
TASK [metrics-server : Metrics-Server | Installing metrics-server retry] *******
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/helm del metrics-server -n kube-system && sleep 5 && /usr/local/bin/helm upgrade --install metrics-server /kubesphere/kubesphere/metrics-server --namespace kube-system\n", "delta": "0:00:00.068141", "end": "2021-03-29 18:57:48.871931", "msg": "non-zero return code", "rc": 1, "start": "2021-03-29 18:57:48.803790", "stderr": "Error: uninstall: Release not loaded: metrics-server: release: not found", "stderr_lines": ["Error: uninstall: Release not loaded: metrics-server: release: not found"], "stdout": "", "stdout_lines": []}
PLAY RECAP *********************************************************************
localhost : ok=7 changed=4 unreachable=0 failed=1 skipped=4 rescued=0 ignored=2
最后问个问题,怎么重启 ks-installer ?