在安装addon可能会出现如下错误:
TASK [iam-apikey-secret : Waiting for iam apikey secret] ***********************
changed: [localhost]
TASK [addon : include_tasks] ***************************************************
skipping: [localhost] => (item={'key': u'istio', 'value': {u'path': u'/addon/ibm-istio-1.0.4.tgz', u'namespace': u'istio-system'}})
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
included: /installer/playbook/roles/addon/tasks/release.yaml for localhost
TASK [addon : Ensuring web-terminal resource directory exist] ******************
changed: [localhost]
TASK [addon : Getting resource file for web-terminal chart] ********************
ok: [localhost]
TASK [addon : Generating resource file for web-terminal chart] *****************
skipping: [localhost]
TASK [addon : Creating resources for web-terminal chart] ***********************
skipping: [localhost]
TASK [addon : Generating values.yaml for web-terminal chart] *******************
changed: [localhost]
TASK [addon : Installing web-terminal chart] ***********************************
changed: [localhost]
TASK [addon : Ensuring logging resource directory exist] ***********************
changed: [localhost]
TASK [addon : Getting resource file for logging chart] *************************
ok: [localhost]
TASK [addon : Generating resource file for logging chart] **********************
skipping: [localhost]
TASK [addon : Creating resources for logging chart] ****************************
skipping: [localhost]
TASK [addon : Generating values.yaml for logging chart] ************************
changed: [localhost]
TASK [addon : Installing logging chart] ****************************************
FAILED - RETRYING: Installing logging chart (5 retries left).
FAILED - RETRYING: Installing logging chart (4 retries left).
FAILED - RETRYING: Installing logging chart (3 retries left).
changed: [localhost]
TASK [addon : Ensuring heapster resource directory exist] **********************
changed: [localhost]
TASK [addon : Getting resource file for heapster chart] ************************
ok: [localhost]
TASK [addon : Generating resource file for heapster chart] *********************
skipping: [localhost]
TASK [addon : Creating resources for heapster chart] ***************************
skipping: [localhost]
TASK [addon : Generating values.yaml for heapster chart] ***********************
changed: [localhost]
TASK [addon : Installing heapster chart] ***************************************
changed: [localhost]
TASK [addon : Ensuring image-security-enforcement resource directory exist] ****
changed: [localhost]
TASK [addon : Getting resource file for image-security-enforcement chart] ******
ok: [localhost]
TASK [addon : Generating resource file for image-security-enforcement chart] ***
skipping: [localhost]
TASK [addon : Creating resources for image-security-enforcement chart] *********
skipping: [localhost]
TASK [addon : Generating values.yaml for image-security-enforcement chart] *****
changed: [localhost]
TASK [addon : Installing image-security-enforcement chart] *********************
changed: [localhost]
TASK [addon : Ensuring helm-repo resource directory exist] *********************
changed: [localhost]
TASK [addon : Getting resource file for helm-repo chart] ***********************
ok: [localhost]
TASK [addon : Generating resource file for helm-repo chart] ********************
skipping: [localhost]
TASK [addon : Creating resources for helm-repo chart] **************************
skipping: [localhost]
TASK [addon : Generating values.yaml for helm-repo chart] **********************
changed: [localhost]
TASK [addon : Installing helm-repo chart] **************************************
changed: [localhost]
TASK [addon : Ensuring catalog-ui resource directory exist] ********************
changed: [localhost]
TASK [addon : Getting resource file for catalog-ui chart] **********************
ok: [localhost]
TASK [addon : Generating resource file for catalog-ui chart] *******************
skipping: [localhost]
TASK [addon : Creating resources for catalog-ui chart] *************************
skipping: [localhost]
TASK [addon : Generating values.yaml for catalog-ui chart] *********************
changed: [localhost]
TASK [addon : Installing catalog-ui chart] *************************************
changed: [localhost]
TASK [addon : Ensuring helm-api resource directory exist] **********************
changed: [localhost]
TASK [addon : Getting resource file for helm-api chart] ************************
ok: [localhost]
TASK [addon : Generating resource file for helm-api chart] *********************
skipping: [localhost]
TASK [addon : Creating resources for helm-api chart] ***************************
skipping: [localhost]
TASK [addon : Generating values.yaml for helm-api chart] ***********************
changed: [localhost]
TASK [addon : Installing helm-api chart] ***************************************
FAILED - RETRYING: Installing helm-api chart (5 retries left).
FAILED - RETRYING: Installing helm-api chart (4 retries left).
FAILED - RETRYING: Installing helm-api chart (3 retries left).
FAILED - RETRYING: Installing helm-api chart (2 retries left).
FAILED - RETRYING: Installing helm-api chart (1 retries left).
fatal: [localhost]: FAILED! => changed=true
attempts: 5
cmd: |-
filename="/addon/helm-api-3.1.1.tgz"
if [[ -d "/addon/helm-api-3.1.1.tgz" ]]; then
filename=$(ls /addon/helm-api-3.1.1.tgz/*.tgz | tail -1)
fi
ret=0
if helm status --tls helm-api &>/dev/null && helm status --tls helm-api | grep -q 'STATUS: FAILED'; then
rev=$(helm list --tls helm-api | awk '{if($1 == "helm-api"){print $2;exit}}')
if [[ "$rev" == "1" ]]; then
helm delete --tls --purge --timeout=600 helm-api
ret=$?
sleep 5
fi
fi
if ! helm status --tls helm-api &>/dev/null; then
helm upgrade --tls --install --force --timeout=600 --namespace=kube-system -f .addon/helm-api/values.yaml helm-api $filename
ret=$?
fi
if [[ $ret -ne 0 ]]; then
tiller_pod=$(kubectl -n kube-system get pods -l app=helm,name=tiller -o jsonpath="{.items[0].metadata.name}")
kubectl -n kube-system logs $tiller_pod &> /installer/cluster/logs/$tiller_pod
echo "============================================================"
echo "Tiller log can be found under cluster/logs/$tiller_pod"
echo "============================================================"
fi
exit $ret
delta: '0:00:01.648766'
end: '2018-12-26 03:44:55.105363'
msg: non-zero return code
rc: 1
start: '2018-12-26 03:44:53.456597'
stderr: 'Error: secrets "rudder-secret" already exists'
stderr_lines:
stdout: |-
Release "helm-api" does not exist. Installing it now.
============================================================
Tiller log can be found under cluster/logs/tiller-deploy-5d8494fb8-m5ff2
============================================================
stdout_lines:
PLAY RECAP *********************************************************************
192.168.122.40 : ok=184 changed=122 unreachable=0 failed=0
localhost : ok=179 changed=107 unreachable=0 failed=1
Playbook run took 0 days, 1 hours, 54 minutes, 35 seconds
[root@vicp cluster]#