Skip to content

Instantly share code, notes, and snippets.

@wei-lee
Last active July 11, 2018 15:48
Show Gist options
  • Save wei-lee/7f0c6e6ef5b8b0b1e8bb8bb73f22b607 to your computer and use it in GitHub Desktop.
Save wei-lee/7f0c6e6ef5b8b0b1e8bb8bb73f22b607 to your computer and use it in GitHub Desktop.
UPS error
[WARNING]: provided hosts list is empty, only localhost is available. Note
that the implicit localhost does not match 'all'
PLAY [unifiedpush-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-unifiedpush-apb : Create OAuth Proxy Serviceaccount yaml] ******
changed: [localhost]
TASK [provision-unifiedpush-apb : Create OAuth Proxy Serviceaccount] ***********
changed: [localhost]
TASK [provision-unifiedpush-apb : Delete OAuth proxy Template File] ************
changed: [localhost]
TASK [provision-unifiedpush-apb : Give default user admin permissions] *********
changed: [localhost]
TASK [provision-unifiedpush-apb : include_tasks] *******************************
included: /opt/ansible/roles/provision-unifiedpush-apb/tasks/provision-database.yml for localhost
TASK [provision-unifiedpush-apb : generate password] ***************************
changed: [localhost]
TASK [provision-unifiedpush-apb : k8s_v1_secret] *******************************
changed: [localhost]
TASK [provision-unifiedpush-apb : k8s_v1_service] ******************************
changed: [localhost]
TASK [provision-unifiedpush-apb : k8s_v1_persistent_volume_claim] **************
changed: [localhost]
TASK [provision-unifiedpush-apb : openshift_v1_deployment_config] **************
changed: [localhost]
TASK [provision-unifiedpush-apb : Wait for all Postgres containers to become ready] ***
FAILED - RETRYING: Wait for all Postgres containers to become ready (30 retries left).
FAILED - RETRYING: Wait for all Postgres containers to become ready (29 retries left).
FAILED - RETRYING: Wait for all Postgres containers to become ready (28 retries left).
FAILED - RETRYING: Wait for all Postgres containers to become ready (27 retries left).
FAILED - RETRYING: Wait for all Postgres containers to become ready (26 retries left).
FAILED - RETRYING: Wait for all Postgres containers to become ready (25 retries left).
FAILED - RETRYING: Wait for all Postgres containers to become ready (24 retries left).
FAILED - RETRYING: Wait for all Postgres containers to become ready (23 retries left).
changed: [localhost]
TASK [provision-unifiedpush-apb : include_tasks] *******************************
included: /opt/ansible/roles/provision-unifiedpush-apb/tasks/provision-ups.yml for localhost
TASK [provision-unifiedpush-apb : UPS deployment] ******************************
changed: [localhost]
TASK [provision-unifiedpush-apb : create UPS service] **************************
changed: [localhost]
TASK [provision-unifiedpush-apb : create UPS Proxy] ****************************
changed: [localhost]
TASK [provision-unifiedpush-apb : create ups https route] **********************
changed: [localhost]
TASK [provision-unifiedpush-apb : Wait for all UPS containers to become ready] ***
FAILED - RETRYING: Wait for all UPS containers to become ready (30 retries left).
FAILED - RETRYING: Wait for all UPS containers to become ready (29 retries left).
FAILED - RETRYING: Wait for all UPS containers to become ready (28 retries left).
FAILED - RETRYING: Wait for all UPS containers to become ready (27 retries left).
FAILED - RETRYING: Wait for all UPS containers to become ready (26 retries left).
FAILED - RETRYING: Wait for all UPS containers to become ready (25 retries left).
FAILED - RETRYING: Wait for all UPS containers to become ready (24 retries left).
changed: [localhost]
TASK [provision-unifiedpush-apb : Create mobile-ci PushApplication on service host 172.30.80.197] ***
FAILED - RETRYING: Create mobile-ci PushApplication on service host 172.30.80.197 (5 retries left).
FAILED - RETRYING: Create mobile-ci PushApplication on service host 172.30.80.197 (4 retries left).
FAILED - RETRYING: Create mobile-ci PushApplication on service host 172.30.80.197 (3 retries left).
FAILED - RETRYING: Create mobile-ci PushApplication on service host 172.30.80.197 (2 retries left).
FAILED - RETRYING: Create mobile-ci PushApplication on service host 172.30.80.197 (1 retries left).
fatal: [localhost]: FAILED! => {"attempts": 5, "changed": false, "content": "", "msg": "Status code was -1 and not [201]: Request failed: <urlopen error [Errno 113] No route to host>", "redirected": false, "status": -1, "url": "http://172.30.80.197/rest/applications "}
PLAY RECAP *********************************************************************
localhost : ok=17 changed=15 unreachable=0 failed=1
2018/07/11 15:45:23 Entering watch loop
2018/07/11 15:45:33 Error creating push client: secrets "unified-push-server" not found
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1318e88]
goroutine 19 [running]:
github.com/aerogear/ups-config-operator/pkg/configOperator.(*UpsClientImpl).getApplicationId(0xc4201cc750, 0x201dc40, 0xc4201cc750)
/go/src/github.com/aerogear/ups-config-operator/pkg/configOperator/upsClient.go:232 +0x8
github.com/aerogear/ups-config-operator/pkg/configOperator.ConfigOperator.compareUPSVariantsWithClientConfigs(0x2005580, 0xc4201d0cd0, 0x200da00, 0xc42000e5c0, 0x201cd40, 0xc4201d0ce0)
/go/src/github.com/aerogear/ups-config-operator/pkg/configOperator/configOperator.go:115 +0x79
github.com/aerogear/ups-config-operator/pkg/configOperator.ConfigOperator.startPollingUPS(0x2005580, 0xc4201d0cd0, 0x200da00, 0xc42000e5c0, 0x201cd40, 0xc4201d0ce0)
/go/src/github.com/aerogear/ups-config-operator/pkg/configOperator/configOperator.go:50 +0x67
created by github.com/aerogear/ups-config-operator/pkg/configOperator.ConfigOperator.StartService
/go/src/github.com/aerogear/ups-config-operator/pkg/configOperator/configOperator.go:41 +0xa0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment