<div dir="ltr"><div>Artem,</div><div><br></div>Please let us know if you are still seeing 404's with apb development.<div><br></div><div>As to the async bind issues you noted:</div><div> - needing to use asb_encode_binding even if no data needs to be passed back</div><div>    Sounds like a bug, we can address if you would open an issue.</div><div><br></div><div> - issue with complex content in asb_encode_binding</div><div>    This may be more challenging to address, if you'd open an issue with an example we can investigate.<br><div><div><br></div><div>Thank you for sharing the issues you've hit.<br><div><div><br></div><div><br></div><div><br></div><div><div><div class="gmail_extra"><div class="gmail_quote">On Mon, Jul 9, 2018 at 4:38 PM, Jason Montleon <span dir="ltr"><<a href="mailto:jmontleo@redhat.com" target="_blank">jmontleo@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Artem,<br>
catasb should work. Essentially what you're getting here is an oc cluster up that installs the automation-service broker as well as a bunch of other components.<br>
<br>
Basically:<br>
oc cluster up --routing-suffix=<a href="http://172.17.0.1.nip.io" rel="noreferrer" target="_blank">172.17.0.1.ni<wbr>p.io</a> --public-hostname=172.17.0.1 --base-dir=/tmp/openshift.loca<wbr>l.clusterup --tag=latest --image=<a href="http://docker.io/openshift/origin-%5C$%7Bcomponent%7D" rel="noreferrer" target="_blank">docker.io/openshift/or<wbr>igin-\${component}</a>:\${version} --enable=service-catalog,templ<wbr>ate-service-broker,router,<wbr>registry,web-console,persisten<wbr>t-volumes,sample-templates,<wbr>rhel-imagestreams,automation-<wbr>service-broker<br>
<br>
I reproduced the 404 with apb push and I think I spotted the issue. It looks like a PR that was intended for just downstream slipped into an upstream build.<br>
<br>
If you do a dnf update you should be apb 1.3.1-1 and apb push should work.<span class=""><br>
<br>
On 07/09/2018 11:28 AM, Artem Goncharov wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi all,<br>
<br>
I have tried couple of times to ask in IRC, but due to the TZ difference there is only a small slot. I need help in getting a development setup.<br>
<br>
Using minishift is nice and "quick", but I need to remove GitHub provider from the ASB configMap to be able to execute 'apb push'. In addition I need to enable 'launch_apb_on_bind' and enable Async gating in kube-service-catalog. But even that I often get problems, stucked ServiceInstances (seems kind of race condition, since often are errors like: can't update service, since it was updated. Please apply changes to latest instance). Binding usually works fine, but deprovisioning fails nearly permanently with the same error. The only possibility for cleanup I found is to recreate minishift instance. It takes time and I need to reapply config changes.<br>
Since most of you say in IRC you are not using minishift I decided to switch to catasb, but it is not better. I also need to disable dockerhub repo to be able to push, enable Async bind. And then I have found, that list, push, relist, remove operations are receiving 404 from the broker. If you get the ASB route in UI and go there, among paths there is 'openshift-automation-service-<wbr>broker' (which is also a project name, route). What I see trying to do 'apb push' is that it correctly finds the domain of the ASB, but it requests /ansible-service-broker/V2/boo<wbr>tstrap or /aansible-service-broker/V2/ca<wbr>talog and gets 404. So I wonder, whether catasb should install ASB as 'ansible-service-broker' (instead of openshift-automation-service-b<wbr>roker), or APB cli should be able to resolve path it requests from ASB correctly. In addition to that catasb/oc cluster up seems to require much more resources and there are lots of failures in journalctl (there is more red, than green colour) and I am lost on where to start from and figure out the reason (sometimes work, but complains; sometimes feels stuck)<br>
<br>
So I would like to ask, what is the recommended way to setup developer workspace for developing APBs?<br>
<br></span>
Following posts from <a href="http://blog.openshift.org" rel="noreferrer" target="_blank">blog.openshift.org</a> <<a href="http://blog.openshift.org" rel="noreferrer" target="_blank">http://blog.openshift.org</a>> or other tutorials does not bring me really further.<span class=""><br>
<br>
<br>
And another things I noticed, in rare succeeded attempts:<br>
- if I use Async binding I NEED to have asb_encode_binding even if I have nothing to pass;<br>
- trying to pass complex content to asb_encode_binding seems to bring a total chaos to ASB. Log of the ASB is then filled with errors, provisioning fails and automatic deprovisioning starts, but also fails and retries ever. Doing base64encode to my Multiline yaml I consider passing to bind result still in line breaks being removed and content still plain text in UI, and still errors. Only removing those completely from asb_encode_bindings bring successful provisioning.<br>
<br>
To tell the truth I am becoming really frustrated with all those issues, but ASB looks really promising. I am not a newbie, but still can't manage it. Is it too early to start using it productively?<br>
<br>
<br>
Thanks a lot in advance,<br>
Artem<br>
<br>
<br></span>
______________________________<wbr>_________________<br>
Ansible-service-broker mailing list<br>
<a href="mailto:Ansible-service-broker@redhat.com" target="_blank">Ansible-service-broker@redhat.<wbr>com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/ansible-service-broker" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/ansible-service-<wbr>broker</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Jason Montleon     | email: <a href="mailto:jmontleo@redhat.com" target="_blank">jmontleo@redhat.com</a><br>
Software Engineer  | gpg key: 0x069E3022<br>
Red Hat, Inc.      | irc: jmontleo<br>
desk: 978-392-3930 | cell: 508-496-0663<br>
<br>
______________________________<wbr>_________________<br>
Ansible-service-broker mailing list<br>
<a href="mailto:Ansible-service-broker@redhat.com" target="_blank">Ansible-service-broker@redhat.<wbr>com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/ansible-service-broker" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/ansible-service-<wbr>broker</a><br>
</font></span></blockquote></div><br></div></div></div></div></div></div></div></div>