New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASB returning zero bytes to Service Catalog (ResponseError: unexpected end of JSON input) #896
Comments
|
@fortinj66 Could you provide more of the broker logs? It isn't clear to me if this is on initial startup or after the broker has been running for sometime. Some more questions if you are able:
|
|
Hi David, I've attached the debug logs for the current pod...
I also uploaded the Service Controller log: |
|
Here is the results running from inside the container (Note the content length): |
|
I believe I have found the culprit... I tried adding the APBs individually and the process worked; data appeared when I queried the endpoint. I started adding groups of 10 APBs via the white_list parameter and added more after each success... This worked until I added the group containing mssql-apb. After this group was added the endpoint returned 0 bytes. When I removed mssql-apb via black_list it worked... I then tried just mssql-apb and the endpoint failed with zero bytes. My final working config for the registries looks like this: So there is something about mssql-apb that Ansible Service Broker doesn't like... |
|
@fortinj66 Thank you for all the details. I'm interested in finding the root cause (ie. how mssql-apb could be causing this). Out of curiosity, what broker image are you using? If you are using a broker image tagged v3.7 or release-1.0, you may want to be grabbing release-1.0 apbs. We talk about that in our Compatibility section of our README and I'm working on a blog post to document our broker image's compatibility with different k8s/openshift and apb image versions. Having said that, I'm curious if @jmrodri or @shawn-hurley have any thoughts on a particular APB causing the broker to return 0 bytes (I believe they would be curious the broker image/version also). |
|
IIRC the 3.7 broker has pretty poor behavior around not understanding a spec. I think the below config should fix the problem. What I think is happening is that your config is pulling the latest images and I don't know if it is a safe assumption that those images would work on 3.7. registry:
- type: dockerhub
name: dh
url:
org: ansibleplaybookbundle
tag: v3.7 #should be pulling the specific 3.7 version of specs.
black_list:
- ".*mssql-apb$"
white_list:
- ".*-apb$" /cc @dymurray @jmontleon |
|
The broker image is: @shawn-hurley I'll add the image tag and see what happens |
|
@shawn-hurley Interestingly enough that did fix the issue. It also reduced the number of APBs installed to 17 from 38... So i'm wondering if the ansible-playbook should be setting "tag:' to the ASB version instead of latest... |
Are you referring to openshift-ansible playbook? @fabianvf I think this is the line that should be changed: https://github.com/openshift/openshift-ansible/blob/release-3.7/roles/ansible_service_broker/vars/default_images.yml#L16, does that make sense? edit: adding line from openshift ansible |
|
Closing in favor of: openshift/openshift-ansible#8089 |
Bug:
What happened:
in Openshift Origin 3.7.1 ASB returns no data (0 bytes) to the Service catalog when the Service Catalog
tries to update
What you expected to happen:
Service catalog to be updated successfully
From Service Catalog
From ASB
I've has the same issue with two separate Openshift 3.7.1 clusters...
Service Catalog and ASB were deployed with the ansible-playbook
The text was updated successfully, but these errors were encountered: