Closed david-martin closed 6 years ago
This happens if I already provisioned the unifiedpush-apb to my namespace first. Looks like a conflict.
| + [[ provision --extra-vars {"GRAFANA_STORAGE_SIZE":10,"POSTGRES_STORAGE_SIZE":10,"POSTGRES_USER":"user","PROMETHEUS_STORAGE_SIZE":10,"_apb_plan_id":"default","_apb_service_class_id":"9623d53183cc78619f888ea8499c678e","_apb_service_instance_id":"5b7f9658-0aed-4532-97b5-9d1b697c4ee1","cluster":"openshift","namespace":"myproject"} == *\s\2\i\/\a\s\s\e\m\b\l\e* ]] -- | -- | + ACTION=provision | + shift | + playbooks=/opt/apb/actions | + CREDS=/var/tmp/bind-creds | + TEST_RESULT=/var/tmp/test-result | + whoami | + '[' -w /etc/passwd ']' | ++ id -u | + echo 'apb:x:1000120000:0:apb user:/opt/apb:/sbin/nologin' | + set +x | + [[ -e /opt/apb/actions/provision.yaml ]] | + [[ -e /opt/apb/actions/provision.yml ]] | + ANSIBLE_ROLES_PATH=/etc/ansible/roles:/opt/ansible/roles | + ansible-playbook /opt/apb/actions/provision.yml --extra-vars '{"GRAFANA_STORAGE_SIZE":10,"POSTGRES_STORAGE_SIZE":10,"POSTGRES_USER":"user","PROMETHEUS_STORAGE_SIZE":10,"_apb_plan_id":"default","_apb_service_class_id":"9623d53183cc78619f888ea8499c678e","_apb_service_instance_id":"5b7f9658-0aed-4532-97b5-9d1b697c4ee1","cluster":"openshift","namespace":"myproject"}' | [WARNING]: Could not match supplied host pattern, ignoring: all | [WARNING]: provided hosts list is empty, only localhost is available | | PLAY [metrics-apb playbook to provision the application] *********************** | | TASK [ansible.kubernetes-modules : Install latest openshift client] ************ | skipping: [localhost] | | TASK [ansibleplaybookbundle.asb-modules : debug] ******************************* | skipping: [localhost] | | TASK [provision-metrics-apb : Give default user view permissions] ************** | changed: [localhost] | | TASK [provision-metrics-apb : Create OAuth Proxy Serviceaccount yaml] ********** | changed: [localhost] | | TASK [provision-metrics-apb : Create OAuth Proxy Serviceaccount] *************** | fatal: [localhost]: FAILED! => {"changed": true, "cmd": "oc create -f /tmp/oauth-proxy-sa.yaml -n myproject", "delta": "0:00:00.255349", "end": "2018-04-17 14:20:39.954035", "msg": "non-zero return code", "rc": 1, "start": "2018-04-17 14:20:39.698686", "stderr": "Error from server (AlreadyExists): error when creating \"/tmp/oauth-proxy-sa.yaml\": serviceaccounts \"oauth-proxy\" already exists", "stderr_lines": ["Error from server (AlreadyExists): error when creating \"/tmp/oauth-proxy-sa.yaml\": serviceaccounts \"oauth-proxy\" already exists"], "stdout": "", "stdout_lines": []} | to retry, use: --limit @/opt/apb/actions/provision.retry | | PLAY RECAP ********************************************************************* | localhost : ok=2 changed=2 unreachable=0 failed=1 | | + EXIT_CODE=2 | + set +ex | + '[' -f /var/tmp/test-result ']' | + exit 2
This happens if I already provisioned the unifiedpush-apb to my namespace first. Looks like a conflict.