TASK [kubesphere-defaults : Configure defaults] ********************************
ok: [localhost] => {
"msg": "Check roles/kubesphere-defaults/defaults/main.yml"
}
TASK [ks-core/prepare : KubeSphere | Create KubeSphere dir] ********************
ok: [localhost]
TASK [ks-core/prepare : KubeSphere | Getting installation init files] **********
changed: [localhost] => (item=workspace.yaml)
changed: [localhost] => (item=ks-init)
TASK [ks-core/prepare : KubeSphere | Init KubeSphere system] *******************
changed: [localhost]
TASK [ks-core/prepare : KubeSphere | Creating KubeSphere Secret] ***************
changed: [localhost]
TASK [ks-core/prepare : KubeSphere | Creating KubeSphere Secret] ***************
ok: [localhost]
TASK [ks-core/prepare : KubeSphere | Enable Token Script] **********************
changed: [localhost]
TASK [ks-core/prepare : KubeSphere | Getting KS Token] *************************
changed: [localhost]
TASK [ks-core/prepare : KubeSphere | Setting ks_token] *************************
ok: [localhost]
TASK [ks-core/prepare : KubeSphere | Creating manifests] ***********************
changed: [localhost] => (item={u'type': u'init', u'name': u'ks-account-init', u'file': u'ks-account-init.yaml'})
changed: [localhost] => (item={u'type': u'init', u'name': u'ks-apigateway-init', u'file': u'ks-apigateway-init.yaml'})
changed: [localhost] => (item={u'type': u'values', u'name': u'custom-values-istio-init', u'file': u'custom-values-istio-init.yaml'})
changed: [localhost] => (item={u'type': u'cm', u'name': u'kubesphere-config', u'file': u'kubesphere-config.yaml'})
TASK [ks-core/prepare : KubeSphere | Init KubeSphere] **************************
changed: [localhost] => (item=ks-account-init.yaml)
changed: [localhost] => (item=ks-apigateway-init.yaml)
changed: [localhost] => (item=kubesphere-config.yaml)
TASK [ks-core/prepare : KubeSphere | Getting controls-system file] *************
changed: [localhost] => (item={u'name': u'kubesphere-controls-system', u'file': u'kubesphere-controls-system.yaml'})
TASK [ks-core/prepare : KubeSphere | Installing controls-system] ***************
changed: [localhost]
TASK [ks-core/prepare : KubeSphere | Create KubeSphere workspace] **************
changed: [localhost]
TASK [ks-core/prepare : KubeSphere | Create KubeSphere vpa] ********************
skipping: [localhost]
TASK [ks-core/prepare : KubeSphere | Generate kubeconfig-admin] ****************
changed: [localhost]
TASK [ks-core/prepare : ks-upgrade | disable ks-apiserver] *********************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/kubectl -n kubesphere-system scale deployment ks-apiserver --replicas=0", "delta": "0:00:00.536919", "end": "2019-11-13 11:27:30.691231", "msg": "non-zero return code", "rc": 1, "start": "2019-11-13 11:27:30.154312", "stderr": "Error from server (NotFound): deployments.extensions \"ks-apiserver\" not found", "stderr_lines": ["Error from server (NotFound): deployments.extensions \"ks-apiserver\" not found"], "stdout": "", "stdout_lines": []}
...ignoring
TASK [ks-core/prepare : ks-upgrade | disable ks-apigateway] ********************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/kubectl -n kubesphere-system scale deployment ks-apigateway --replicas=0", "delta": "0:00:00.316480", "end": "2019-11-13 11:27:31.169551", "msg": "non-zero return code", "rc": 1, "start": "2019-11-13 11:27:30.853071", "stderr": "Error from server (NotFound): deployments.extensions \"ks-apigateway\" not found", "stderr_lines": ["Error from server (NotFound): deployments.extensions \"ks-apigateway\" not found"], "stdout": "", "stdout_lines": []}
...ignoring
TASK [ks-core/prepare : ks-upgrade | disable ks-account] ***********************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/kubectl -n kubesphere-system scale deployment ks-account --replicas=0", "delta": "0:00:00.873222", "end": "2019-11-13 11:27:32.200749", "msg": "non-zero return code", "rc": 1, "start": "2019-11-13 11:27:31.327527", "stderr": "Error from server (NotFound): deployments.extensions \"ks-account\" not found", "stderr_lines": ["Error from server (NotFound): deployments.extensions \"ks-account\" not found"], "stdout": "", "stdout_lines": []}
...ignoring
TASK [ks-core/prepare : ks-upgrade | disable ks-console] ***********************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/kubectl -n kubesphere-system scale deployment ks-console --replicas=0", "delta": "0:00:00.136551", "end": "2019-11-13 11:27:32.497369", "msg": "non-zero return code", "rc": 1, "start": "2019-11-13 11:27:32.360818", "stderr": "Error from server (NotFound): deployments.extensions \"ks-console\" not found", "stderr_lines": ["Error from server (NotFound): deployments.extensions \"ks-console\" not found"], "stdout": "", "stdout_lines": []}
...ignoring
TASK [ks-core/prepare : ks-upgrade | disable ks-controller-manager] ************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/kubectl -n kubesphere-system scale deployment ks-controller-manager --replicas=0", "delta": "0:00:00.323929", "end": "2019-11-13 11:27:32.980435", "msg": "non-zero return code", "rc": 1, "start": "2019-11-13 11:27:32.656506", "stderr": "Error from server (NotFound): deployments.extensions \"ks-controller-manager\" not found", "stderr_lines": ["Error from server (NotFound): deployments.extensions \"ks-controller-manager\" not found"], "stdout": "", "stdout_lines": []}
...ignoring
TASK [ks-core/ks-core : KubeSphere | Getting kubernetes version] ***************
changed: [localhost]
TASK [ks-core/ks-core : KubeSphere | Setting kubernetes version] ***************
ok: [localhost]
TASK [ks-core/ks-core : KubeSphere | Getting kubernetes master num] ************
changed: [localhost]
TASK [ks-core/ks-core : KubeSphere | Setting master num] ***********************
ok: [localhost]
TASK [ks-core/ks-core : ks-console | Checking ks-console svc] ******************
changed: [localhost]
TASK [ks-core/ks-core : ks-console | Getting ks-console svc port] **************
skipping: [localhost]
TASK [ks-core/ks-core : ks-console | Setting console_port] *********************
skipping: [localhost]
TASK [ks-core/ks-core : KubeSphere | Getting Ingress installation files] *******
changed: [localhost] => (item=ingress)
changed: [localhost] => (item=ks-account)
changed: [localhost] => (item=ks-apigateway)
changed: [localhost] => (item=ks-apiserver)
changed: [localhost] => (item=ks-console)
changed: [localhost] => (item=ks-controller-manager)
TASK [ks-core/ks-core : KubeSphere | Creating manifests] ***********************
changed: [localhost] => (item={u'path': u'ingress', u'type': u'config', u'file': u'ingress-controller.yaml'})
changed: [localhost] => (item={u'path': u'ks-account', u'type': u'deployment', u'file': u'ks-account.yml'})
changed: [localhost] => (item={u'path': u'ks-apigateway', u'type': u'deploy', u'file': u'ks-apigateway.yaml'})
changed: [localhost] => (item={u'path': u'ks-apiserver', u'type': u'deploy', u'file': u'ks-apiserver.yml'})
changed: [localhost] => (item={u'path': u'ks-controller-manager', u'type': u'deploy', u'file': u'ks-controller-manager.yaml'})
changed: [localhost] => (item={u'path': u'ks-console', u'type': u'config', u'file': u'ks-console-config.yml'})
changed: [localhost] => (item={u'path': u'ks-console', u'type': u'deploy', u'file': u'ks-console-deployment.yml'})
changed: [localhost] => (item={u'path': u'ks-console', u'type': u'svc', u'file': u'ks-console-svc.yml'})
changed: [localhost] => (item={u'path': u'ks-console', u'type': u'deploy', u'file': u'ks-docs-deployment.yaml'})
changed: [localhost] => (item={u'path': u'ks-console', u'type': u'config', u'file': u'sample-bookinfo-configmap.yaml'})
TASK [ks-core/ks-core : KubeSphere | Creating Ingress-controller configmap] ****
changed: [localhost]
TASK [ks-core/ks-core : KubeSphere | Check ks-account version] *****************
changed: [localhost]
TASK [ks-core/ks-core : KubeSphere | Update kubectl image] *********************
skipping: [localhost]
TASK [ks-core/ks-core : KubeSphere | Creating ks-core] *************************
changed: [localhost] => (item={u'path': u'ks-apigateway', u'file': u'ks-apigateway.yaml'})
changed: [localhost] => (item={u'path': u'ks-apiserver', u'file': u'ks-apiserver.yml'})
changed: [localhost] => (item={u'path': u'ks-account', u'file': u'ks-account.yml'})
changed: [localhost] => (item={u'path': u'ks-controller-manager', u'file': u'ks-controller-manager.yaml'})
changed: [localhost] => (item={u'path': u'ks-console', u'file': u'ks-console-config.yml'})
changed: [localhost] => (item={u'path': u'ks-console', u'file': u'sample-bookinfo-configmap.yaml'})
changed: [localhost] => (item={u'path': u'ks-console', u'file': u'ks-console-deployment.yml'})
changed: [localhost] => (item={u'path': u'ks-console', u'file': u'ks-console-svc.yml'})
PLAY RECAP *********************************************************************
localhost : ok=30 changed=24 unreachable=0 failed=0 skipped=7 rescued=0 ignored=5
Start installing monitoring
Start installing devops
Start installing openpitrix
**************************************************
task monitoring status is successful
total: 3 completed:1
**************************************************
task monitoring status is successful
total: 3 completed:1
**************************************************
task monitoring status is successful
total: 3 completed:1
**************************************************
task monitoring status is successful
total: 3 completed:1
**************************************************
task monitoring status is successful
total: 3 completed:1
**************************************************
task monitoring status is successful
total: 3 completed:1
**************************************************
task monitoring status is successful
total: 3 completed:1
**************************************************