Git Product home page Git Product logo

es-apb's People

Contributors

dymurray avatar ruromero avatar tchughesiv avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

fabianvf

es-apb's Issues

ElasticSearch fails to deploy with swagger_type error

Attempting to deploy the ElasticSearch APB on OpenShift Origin 3.9 and running into the following error:

TASK [provision-es-apb : Create ImageStream] ***********************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to patch object: Evaluating spec_tags: unable to get swagger_type for from in __compare_obj_list() for item {'from': {'kind': 'DockerImage', 'name': 'registry.centos.org/rhsyseng/elasticsearch:6.2.1'}, 'name': '6.2.1'} in model tag_reference"}

I've validated that the broker_config ConfigMap is setup to have openshift with sandbox_role: admin and rolled out a new DeploymentConfig for ASB. (I know it works because I had an issue with unable to create a RoleBinding, but after the change that works fine. :))

Here are the logs for the ASB pod, and then the logs from the ES pod during deployment.

ASB logs starting the deployment

$ oc logs po/asb-2-bll7p
Using config file mounted to /etc/ansible-service-broker/config.yaml
============================================================
==           Starting Ansible Service Broker...           ==
============================================================
2018/04/30 15:17:00 Unable to get log.logfile from config
[2018-04-30T15:17:00.418Z] [NOTICE] - Initializing clients...
[2018-04-30T15:17:00.419Z] [INFO] - == ETCD CX ==
[2018-04-30T15:17:00.419Z] [INFO] - EtcdHost: asb-etcd.openshift-ansible-service-broker.svc
[2018-04-30T15:17:00.419Z] [INFO] - EtcdPort: 2379
[2018-04-30T15:17:00.419Z] [INFO] - Endpoints: [https://asb-etcd.openshift-ansible-service-broker.svc:2379]
[2018-04-30T15:17:00.434Z] [INFO] - Etcd Version [Server: 3.3.4, Cluster: 3.3.0]
[2018-04-30T15:17:00.441Z] [INFO] - OpenShift version: v3.9.0+d0f9aed-12
[2018-04-30T15:17:00.452Z] [INFO] - Kubernetes version: v1.9.1+a0ce1bc657
[2018-04-30T15:17:00.454Z] [INFO] - == REGISTRY CX == 
[2018-04-30T15:17:00.454Z] [INFO] - Name: dh
[2018-04-30T15:17:00.454Z] [INFO] - Type: dockerhub
[2018-04-30T15:17:00.454Z] [INFO] - Url: 
[2018-04-30T15:17:00.454Z] [INFO] - == REGISTRY CX == 
[2018-04-30T15:17:00.454Z] [INFO] - Name: localregistry
[2018-04-30T15:17:00.454Z] [INFO] - Type: local_openshift
[2018-04-30T15:17:00.454Z] [INFO] - Url: 
[2018-04-30T15:17:00.454Z] [INFO] - Initiating Recovery Process
[2018-04-30T15:17:00.454Z] [INFO] - Listening for provision messages
[2018-04-30T15:17:00.454Z] [INFO] - Listening for deprovision messages
[2018-04-30T15:17:00.454Z] [INFO] - Listening for update messages
[2018-04-30T15:17:00.454Z] [INFO] - Listening for binding messages
[2018-04-30T15:17:00.454Z] [INFO] - Listening for binding messages
[2018-04-30T15:17:00.456Z] [INFO] - Recovery complete
[2018-04-30T15:17:00.456Z] [NOTICE] - recover called
[2018-04-30T15:17:00.456Z] [INFO] - Broker configured to bootstrap on startup
[2018-04-30T15:17:00.456Z] [INFO] - Attempting bootstrap...
[2018-04-30T15:17:00.456Z] [INFO] - AnsibleBroker::Bootstrap
[2018-04-30T15:17:06.73Z] [INFO] - No runtime label found. Set runtime=1. Will use 'exec' to gather bind credentials
[2018-04-30T15:17:08.413Z] [INFO] - Didn't find encoded Spec label. Assuming image is not APB and skiping
[2018-04-30T15:17:12.647Z] [INFO] - Didn't find encoded Spec label. Assuming image is not APB and skiping
[2018-04-30T15:17:14.255Z] [INFO] - No runtime label found. Set runtime=1. Will use 'exec' to gather bind credentials
[2018-04-30T15:17:14.255Z] [INFO] - Validating specs...
[2018-04-30T15:17:14.255Z] [NOTICE] - All specs passed validation!
[2018-04-30T15:17:14.37Z] [INFO] - Validating specs...
[2018-04-30T15:17:14.37Z] [NOTICE] - All specs passed validation!
[2018-04-30T15:17:15.796Z] [NOTICE] - Broker successfully bootstrapped on startup
[2018-04-30T15:17:16.054Z] [NOTICE] - Listening on https://[::]:1338
[2018-04-30T15:17:16.054Z] [NOTICE] - Ansible Service Broker Starting
10.128.0.1 - - [30/Apr/2018:15:18:25 +0000] "GET /ansible-service-broker/v2/service_instances/152ef77e-2e6f-4665-a1aa-54af2a0bc414/last_operation?operation=85e01e16-e926-4913-b8fd-5622e113379c&plan_id=11d395a0f8377ed0f81fb6148720a6fd&service_id=aff6d7bb9c7f57c9ce8b742228e4caa3 HTTP/1.1" 200 124
[2018-04-30T15:18:25.612Z] [INFO] - ASYNC provisioning in progress
[2018-04-30T15:18:25.613Z] [NOTICE] - ============================================================
[2018-04-30T15:18:25.613Z] [NOTICE] -                        PROVISIONING                         
[2018-04-30T15:18:25.613Z] [NOTICE] - ============================================================
[2018-04-30T15:18:25.613Z] [NOTICE] - Spec.ID: aff6d7bb9c7f57c9ce8b742228e4caa3
[2018-04-30T15:18:25.613Z] [NOTICE] - Spec.Name: dh-es-apb
[2018-04-30T15:18:25.613Z] [NOTICE] - Spec.Image: docker.io/ansibleplaybookbundle/es-apb:latest
[2018-04-30T15:18:25.613Z] [NOTICE] - Spec.Description: APB to deploy cluster-ready Elasticsearch
[2018-04-30T15:18:25.613Z] [NOTICE] - ============================================================
[2018-04-30T15:18:25.613Z] [INFO] - Checking if namespace sa-telemetry exists.
10.128.0.1 - - [30/Apr/2018:15:18:25 +0000] "PUT /ansible-service-broker/v2/service_instances/ba3605bd-d908-44bf-b5d4-3f75a95688f6?accepts_incomplete=true HTTP/1.1" 202 58
[2018-04-30T15:18:25.654Z] [NOTICE] - Creating RoleBinding apb-3bc430cb-62d3-4f74-b2ed-67f71d9a94cd
[2018-04-30T15:18:25.747Z] [INFO] - Provision requested for instance ba3605bd-d908-44bf-b5d4-3f75a95688f6, but job is already in progress
10.128.0.1 - - [30/Apr/2018:15:18:25 +0000] "PUT /ansible-service-broker/v2/service_instances/ba3605bd-d908-44bf-b5d4-3f75a95688f6?accepts_incomplete=true HTTP/1.1" 202 58
10.128.0.1 - - [30/Apr/2018:15:18:25 +0000] "GET /ansible-service-broker/v2/service_instances/ba3605bd-d908-44bf-b5d4-3f75a95688f6/last_operation?operation=e243b354-0a9c-4212-afd0-f1c8be168da9&plan_id=11d395a0f8377ed0f81fb6148720a6fd&service_id=aff6d7bb9c7f57c9ce8b742228e4caa3 HTTP/1.1" 200 29
[2018-04-30T15:18:25.903Z] [NOTICE] - Creating RoleBinding apb-3bc430cb-62d3-4f74-b2ed-67f71d9a94cd
[2018-04-30T15:18:25.936Z] [INFO] - Successfully created apb sandbox: [ apb-3bc430cb-62d3-4f74-b2ed-67f71d9a94cd ], with admin permissions in namespace dh-es-apb-prov-qphnl
[2018-04-30T15:18:25.936Z] [INFO] - Running post create sandbox fuctions if defined.
[2018-04-30T15:18:25.936Z] [INFO] - Proxy configuration present. Applying to APB before execution:
[2018-04-30T15:18:25.936Z] [INFO] - HTTP_PROXY=""
[2018-04-30T15:18:25.936Z] [INFO] - HTTPS_PROXY=""
[2018-04-30T15:18:25.936Z] [INFO] - NO_PROXY=""
[2018-04-30T15:18:25.936Z] [NOTICE] - Creating pod "apb-3bc430cb-62d3-4f74-b2ed-67f71d9a94cd" in the dh-es-apb-prov-qphnl namespace
[2018-04-30T15:18:26.031Z] [INFO] - Watch pod [ apb-3bc430cb-62d3-4f74-b2ed-67f71d9a94cd ] tick 1
10.128.0.1 - - [30/Apr/2018:15:18:26 +0000] "GET /ansible-service-broker/v2/service_instances/ba3605bd-d908-44bf-b5d4-3f75a95688f6/last_operation?operation=e243b354-0a9c-4212-afd0-f1c8be168da9&plan_id=11d395a0f8377ed0f81fb6148720a6fd&service_id=aff6d7bb9c7f57c9ce8b742228e4caa3 HTTP/1.1" 200 29
10.128.0.1 - - [30/Apr/2018:15:18:30 +0000] "GET /ansible-service-broker/v2/service_instances/ba3605bd-d908-44bf-b5d4-3f75a95688f6/last_operation?operation=e243b354-0a9c-4212-afd0-f1c8be168da9&plan_id=11d395a0f8377ed0f81fb6148720a6fd&service_id=aff6d7bb9c7f57c9ce8b742228e4caa3 HTTP/1.1" 200 29
[2018-04-30T15:18:31.033Z] [INFO] - Watch pod [ apb-3bc430cb-62d3-4f74-b2ed-67f71d9a94cd ] tick 2
[2018-04-30T15:18:36.037Z] [INFO] - Watch pod [ apb-3bc430cb-62d3-4f74-b2ed-67f71d9a94cd ] tick 3
[2018-04-30T15:18:36.057Z] [ERROR] - Provision or Update action failed - Pod [ apb-3bc430cb-62d3-4f74-b2ed-67f71d9a94cd ] failed with exit code [2]
[2018-04-30T15:18:36.057Z] [INFO] - Destroying APB sandbox...
[2018-04-30T15:18:36.063Z] [NOTICE] - Successfully deleted rolebinding apb-3bc430cb-62d3-4f74-b2ed-67f71d9a94cd, namespace dh-es-apb-prov-qphnl
[2018-04-30T15:18:36.069Z] [NOTICE] - Successfully deleted rolebinding apb-3bc430cb-62d3-4f74-b2ed-67f71d9a94cd, namespace sa-telemetry
[2018-04-30T15:18:36.075Z] [ERROR] - broker::Provision error occurred. Pod [ apb-3bc430cb-62d3-4f74-b2ed-67f71d9a94cd ] failed with exit code [2]
10.128.0.1 - - [30/Apr/2018:15:18:38 +0000] "GET /ansible-service-broker/v2/service_instances/ba3605bd-d908-44bf-b5d4-3f75a95688f6/last_operation?operation=e243b354-0a9c-4212-afd0-f1c8be168da9&plan_id=11d395a0f8377ed0f81fb6148720a6fd&service_id=aff6d7bb9c7f57c9ce8b742228e4caa3 HTTP/1.1" 200 122

ES deployment failure logs from pod

$ oc project dh-es-apb-prov-qphnl
Now using project "dh-es-apb-prov-qphnl" on server "https://openshift-master.home.61will.space:8443".
[centos@openshift-master ~]$ oc logs apb-3bc430cb-62d3-4f74-b2ed-67f71d9a94cd

PLAY [es-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-es-apb : [SET UP] tmp folder] **********************************
changed: [localhost]

TASK [provision-es-apb : Process ImageStream from template] ********************
changed: [localhost]

TASK [provision-es-apb : Create ImageStream] ***********************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to patch object: Evaluating spec_tags: unable to get swagger_type for from in __compare_obj_list() for item {'from': {'kind': 'DockerImage', 'name': 'registry.centos.org/rhsyseng/elasticsearch:6.2.1'}, 'name': '6.2.1'} in model tag_reference"}

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=2    unreachable=0    failed=1   

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.