<div dir="ltr">Hi Carsten,<div><br></div><div>I don't think the build has gone through yet, but  i'll verify later today as I have been able to reproduce it. I'll give an update once I think it should work.</div><div><br></div><div>Ulf</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 8, 2017 at 3:14 PM, Lohmann Carsten (INST/ECS4) <span dir="ltr"><<a href="mailto:Carsten.Lohmann@bosch-si.com" target="_blank">Carsten.Lohmann@bosch-si.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ulf,<br>
<br>
thanks for the fast reply and fix. Unfortunately, with the new version there is still such an error:<br>
---<br>
2017-08-08 13:03:51 WARN  WatcherVerticle:92 - Exception doing resource update<br>
<span class="">java.lang.<wbr>IndexOutOfBoundsException: Index: 0, Size: 0<br>
        at java.util.ArrayList.<wbr>rangeCheck(ArrayList.java:653)<br>
        at java.util.ArrayList.get(<wbr>ArrayList.java:429)<br>
</span>        at enmasse.controller.standard.<wbr>StandardController.<wbr>ingressToEndpoint(<wbr>StandardController.java:192)<br>
<span class="">        at java.util.stream.<wbr>ReferencePipeline$3$1.accept(<wbr>ReferencePipeline.java:193)<br>
        at java.util.stream.<wbr>ReferencePipeline$2$1.accept(<wbr>ReferencePipeline.java:175)<br>
        at java.util.ArrayList$<wbr>ArrayListSpliterator.<wbr>forEachRemaining(ArrayList.<wbr>java:1374)<br>
        at java.util.stream.<wbr>AbstractPipeline.copyInto(<wbr>AbstractPipeline.java:481)<br>
        at java.util.stream.<wbr>AbstractPipeline.<wbr>wrapAndCopyInto(<wbr>AbstractPipeline.java:471)<br>
        at java.util.stream.ReduceOps$<wbr>ReduceOp.evaluateSequential(<wbr>ReduceOps.java:708)<br>
        at java.util.stream.<wbr>AbstractPipeline.evaluate(<wbr>AbstractPipeline.java:234)<br>
        at java.util.stream.<wbr>ReferencePipeline.collect(<wbr>ReferencePipeline.java:499)<br>
        at enmasse.controller.standard.<wbr>StandardController.<wbr>updateEndpoints(<wbr>StandardController.java:158)<br>
        at enmasse.controller.standard.<wbr>StandardController.<wbr>resourcesUpdated(<wbr>StandardController.java:93)<br>
        at enmasse.controller.common.<wbr>WatcherVerticle.run(<wbr>WatcherVerticle.java:89)<br>
        at java.lang.Thread.run(Thread.<wbr>java:748)<br>
---<br>
<br>
<br>
</span>Best regards<br>
<br>
 Carsten Lohmann<br>
<span class=""><br>
(INST/ECS4)<br>
Bosch Software Innovations GmbH | Schöneberger Ufer 89-91 | 10785 Berlin | GERMANY | <a href="http://www.bosch-si.com" rel="noreferrer" target="_blank">www.bosch-si.com</a><br>
</span><span class="">Tel. <a href="tel:%2B49%2030%20726112-130" value="+4930726112130">+49 30 726112-130</a> | Fax <a href="tel:%2B49%2030%20726112-100" value="+4930726112100">+49 30 726112-100</a> | <a href="mailto:carsten.lohmann@bosch-si.com">carsten.lohmann@bosch-si.com</a><br>
<br>
</span><span class="">Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B<br>
Aufsichtsratsvorsitzender: Dr.-Ing. Thorsten Lücke; Geschäftsführung: Dr.-Ing. Rainer Kallenbach, Michael Hahn<br>
<br>
<br>
<br>
</span>-----Ursprüngliche Nachricht-----<br>
Von: Ulf Lilleengen [mailto:<a href="mailto:lulf@redhat.com">lulf@redhat.com</a>]<br>
Gesendet: Dienstag, 8. August 2017 11:32<br>
An: Lohmann Carsten (INST/ECS4) <<a href="mailto:Carsten.Lohmann@bosch-si.com">Carsten.Lohmann@bosch-si.com</a>><wbr>; <a href="mailto:enmasse@redhat.com">enmasse@redhat.com</a><br>
Betreff: Re: [EnMasse] EnMasse 0.12.0: Addresses not getting ready<br>
<div class="HOEnZb"><div class="h5"><br>
Hi Carsten,<br>
<br>
Thanks for the detailed bug report. After looking at the code, I see that the exception is what is preventing the status to get updated.<br>
<br>
I'll try to reproduce this as the tls entry should have been added afaict from looking at the code. I will apply a fix, and tag a 0.12.1.<br>
Sorry for the inconvenience!<br>
<br>
Best regards,<br>
<br>
Ulf<br>
<br>
On 08. aug. 2017 10:20, Lohmann Carsten (INST/ECS4) wrote:<br>
> Hi,<br>
><br>
> we've done an upgrade to EnMasse 0.12.0 and are now having the issue,<br>
> that addresses registered via the address controller REST interface<br>
> are not getting ready ("isReady" stays false).<br>
><br>
> Test was done on a local minikube cluster, using the<br>
> kubernetes/enmasse.yaml deployment file.<br>
><br>
> When looking at the log of the address-controller, there is this<br>
> exception (occurring repeatedly):<br>
><br>
> ---<br>
><br>
> 2017-08-07 14:53:32 WARN  WatcherVerticle:92 - Exception doing<br>
> resource update<br>
><br>
> java.lang.<wbr>IndexOutOfBoundsException: Index: 0, Size: 0<br>
><br>
>              at java.util.ArrayList.<wbr>rangeCheck(ArrayList.java:653)<br>
><br>
>              at java.util.ArrayList.get(<wbr>ArrayList.java:429)<br>
><br>
>              at<br>
> enmasse.controller.standard.<wbr>StandardController.<wbr>ingressToEndpoint(Stand<br>
> ardController.java:191)<br>
><br>
>              at<br>
> java.util.stream.<wbr>ReferencePipeline$3$1.accept(<wbr>ReferencePipeline.java:1<br>
> 93)<br>
><br>
>              at<br>
> java.util.stream.<wbr>ReferencePipeline$2$1.accept(<wbr>ReferencePipeline.java:1<br>
> 75)<br>
><br>
>              at<br>
> java.util.ArrayList$<wbr>ArrayListSpliterator.<wbr>forEachRemaining(ArrayList.ja<br>
> va:1374)<br>
><br>
>              at<br>
> java.util.stream.<wbr>AbstractPipeline.copyInto(<wbr>AbstractPipeline.java:481)<br>
><br>
>              at<br>
> java.util.stream.<wbr>AbstractPipeline.<wbr>wrapAndCopyInto(<wbr>AbstractPipeline.jav<br>
> a:471)<br>
><br>
>              at<br>
> java.util.stream.ReduceOps$<wbr>ReduceOp.evaluateSequential(<wbr>ReduceOps.java:<br>
> 708)<br>
><br>
>              at<br>
> java.util.stream.<wbr>AbstractPipeline.evaluate(<wbr>AbstractPipeline.java:234)<br>
><br>
>              at<br>
> java.util.stream.<wbr>ReferencePipeline.collect(<wbr>ReferencePipeline.java:499)<br>
><br>
>              at<br>
> enmasse.controller.standard.<wbr>StandardController.<wbr>updateEndpoints(Standar<br>
> dController.java:158)<br>
><br>
>              at<br>
> enmasse.controller.standard.<wbr>StandardController.<wbr>resourcesUpdated(Standa<br>
> rdController.java:93)<br>
><br>
>              at<br>
> enmasse.controller.common.<wbr>WatcherVerticle.run(<wbr>WatcherVerticle.java:89)<br>
><br>
>              at java.lang.Thread.run(Thread.<wbr>java:748)<br>
><br>
> ---<br>
><br>
> Looking at StandardController.<wbr>ingressToEndpoint(), line 191 is:<br>
><br>
> builder.setHost(ingress.<wbr>getSpec().getTls().get(0).<wbr>getHosts().get(0));<br>
><br>
> I guess the ingress here is the "messaging" ingress (it has a<br>
> "io.enmasse.certSecret" annotation set).<br>
><br>
> It looks like this:<br>
><br>
> ---<br>
><br>
> {<br>
><br>
>      "apiVersion": "extensions/v1beta1",<br>
><br>
>      "kind": "Ingress",<br>
><br>
>      "metadata": {<br>
><br>
>          "annotations": {<br>
><br>
>              "addressSpace": "default",<br>
><br>
>              "io.enmasse.certSecret": "external-certs-messaging"<br>
><br>
>          },<br>
><br>
>          "creationTimestamp": "2017-08-07T14:53:31Z",<br>
><br>
>          "generation": 1,<br>
><br>
>          "name": "messaging",<br>
><br>
>          "namespace": "hono",<br>
><br>
>          "resourceVersion": "509798",<br>
><br>
>          "selfLink":<br>
> "/apis/extensions/v1beta1/<wbr>namespaces/hono/ingresses/<wbr>messaging",<br>
><br>
> "uid": "2de5c2fb-7b80-11e7-adee-<wbr>080027c98449"<br>
><br>
> },<br>
><br>
>      "spec": {<br>
><br>
>          "backend": {<br>
><br>
>              "serviceName": "messaging",<br>
><br>
>              "servicePort": "amqps"<br>
><br>
>          }<br>
><br>
>      },<br>
><br>
>      "status": {<br>
><br>
>          "loadBalancer": {}<br>
><br>
>      }<br>
><br>
> }<br>
><br>
> ---<br>
><br>
> So, no "tls" below "spec".<br>
><br>
> Here is some more log output:<br>
><br>
> ragent:<br>
><br>
> ----<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info Router connected from<br>
> Router.qdrouterd-1128330706-<wbr>25p37<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info EXTRACT, results: ,<br>
> attributes:<br>
> name,identity,type,prefix,<wbr>distribution,waypoint,<wbr>ingressPhase,egressPha<br>
> se<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info retrieved addresses for<br>
> Router.qdrouterd-1128330706-<wbr>25p37: {}<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info retrieved link routes for<br>
> Router.qdrouterd-1128330706-<wbr>25p37: raw-><br>
> [{"name":"override.lwt_in","<wbr>identity":"1","type":"org.<wbr>apache.qpid.disp<br>
> atch.router.config.linkRoute",<wbr>"prefix":"$lwt","distribution"<wbr>:"linkBala<br>
> nced","connection":null,"<wbr>containerId":"lwt-service","<wbr>dir":"in","operSt<br>
> atus":"active"},{"name":"<wbr>override.lwt_out","identity":"<wbr>2","type":"org.<br>
> apache.qpid.dispatch.router.<wbr>config.linkRoute","prefix":"$<wbr>lwt","distrib<br>
> ution":"linkBalanced","<wbr>connection":null,"containerId"<wbr>:"lwt-service","d<br>
</div></div><div class="HOEnZb"><div class="h5">> ir":"out","operStatus":"<wbr>active"},{"name":"override.<wbr>locate","identity":<br>
> "3","type":"org.apache.qpid.<wbr>dispatch.router.config.<wbr>linkRoute","prefix"<br>
> :"locate","distribution":"<wbr>linkBalanced","connection":"<wbr>subscription-ser<br>
> vice","containerId":null,"dir"<wbr>:"out","operStatus":"active"}]<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info retrieved link routes for<br>
> Router.qdrouterd-1128330706-<wbr>25p37: {}<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info updating addresses for<br>
> Router.qdrouterd-1128330706-<wbr>25p37<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info defining address<br>
> telemetry/DEFAULT_TENANT on router Router.qdrouterd-1128330706-<wbr>25p37<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info defining in link route<br>
> event/DEFAULT_TENANT on router Router.qdrouterd-1128330706-<wbr>25p37<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info defining out link route<br>
> event/DEFAULT_TENANT on router Router.qdrouterd-1128330706-<wbr>25p37<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info addresses updated for<br>
> Router.qdrouterd-1128330706-<wbr>25p37<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info retrieved listeners for<br>
> Router.qdrouterd-1128330706-<wbr>25p37: <a href="http://172.17.0.10:55672" rel="noreferrer" target="_blank">172.17.0.10:55672</a><br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info<br>
> Router.qdrouterd-1128330706-<wbr>25p37 not ready for connectivity check:<br>
> false false<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info EXTRACT, results:<br>
><br>
> [..]<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info retrieved addresses for<br>
> Router.qdrouterd-1128330706-<wbr>25p37:<br>
><br>
> [..]<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info retrieved link routes for<br>
> Router.qdrouterd-1128330706-<wbr>25p37: raw-> [..]<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info retrieved link routes for<br>
> Router.qdrouterd-1128330706-<wbr>25p37:<br>
> {"event/DEFAULT_TENANT_in":{"<wbr>name":"event/<br>
><br>
> [..]<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info updating addresses for<br>
> Router.qdrouterd-1128330706-<wbr>25p37<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info<br>
> Router.qdrouterd-1128330706-<wbr>25p37 not ready for connectivity check:<br>
> true false<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info retrieved connectors for<br>
> Router.qdrouterd-1128330706-<wbr>25p37:<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info checking connectivity for<br>
> Router.qdrouterd-1128330706-<wbr>25p37<br>
><br>
> Mon, 07 Aug 2017 14:55:47 GMT ragent info checking connectors on<br>
> router Router.qdrouterd-1128330706-<wbr>25p37, missing=, stale=<br>
><br>
> ----<br>
><br>
> queue-scheduler:<br>
><br>
> ----<br>
><br>
> 2017-08-07 14:53:39 WARN  MacAddressUtil:136 - Failed to find a usable<br>
> hardware address from the network interfaces; using random bytes:<br>
> e0:37:7a:1d:7d:a2:98:48<br>
><br>
> 2017-08-07 14:53:40 INFO  QueueScheduler:95 - QueueScheduler is up and<br>
> running<br>
><br>
> 2017-08-07 14:53:40 ERROR ConfigServiceClient:65 - Error connecting to<br>
> configuration service<br>
><br>
> io.netty.channel.<wbr>AbstractChannel$<wbr>AnnotatedConnectException: Connection<br>
> refused: localhost/<a href="http://127.0.0.1:5672" rel="noreferrer" target="_blank">127.0.0.1:5672</a><br>
><br>
>              at sun.nio.ch.SocketChannelImpl.<wbr>checkConnect(Native<br>
> Method)<br>
><br>
>              at<br>
> sun.nio.ch.SocketChannelImpl.<wbr>finishConnect(<wbr>SocketChannelImpl.java:717)<br>
><br>
>              at<br>
> io.netty.channel.socket.nio.<wbr>NioSocketChannel.<wbr>doFinishConnect(NioSocket<br>
> Channel.java:347)<br>
><br>
>              at<br>
> io.netty.channel.nio.<wbr>AbstractNioChannel$<wbr>AbstractNioUnsafe.finishConnec<br>
> t(AbstractNioChannel.java:340)<br>
><br>
>              at<br>
> io.netty.channel.nio.<wbr>NioEventLoop.<wbr>processSelectedKey(<wbr>NioEventLoop.java<br>
> :630)<br>
><br>
>              at<br>
> io.netty.channel.nio.<wbr>NioEventLoop.<wbr>processSelectedKeysOptimized(<wbr>NioEven<br>
> tLoop.java:565)<br>
><br>
>              at<br>
> io.netty.channel.nio.<wbr>NioEventLoop.<wbr>processSelectedKeys(<wbr>NioEventLoop.jav<br>
> a:479)<br>
><br>
>              at<br>
> io.netty.channel.nio.<wbr>NioEventLoop.run(NioEventLoop.<wbr>java:441)<br>
><br>
>              at<br>
> io.netty.util.concurrent.<wbr>SingleThreadEventExecutor$5.<wbr>run(SingleThreadE<br>
> ventExecutor.java:858)<br>
><br>
>              at java.lang.Thread.run(Thread.<wbr>java:748)<br>
><br>
> 2017-08-07 14:53:50 INFO  ConfigServiceClient:45 - Connected to the<br>
> configuration service<br>
><br>
> ----<br>
><br>
> Any idea on what the reason could be or how to investigate further?<br>
><br>
> Best regards<br>
><br>
> *Carsten Lohmann<br>
> *<br>
> (INST/ECS4)<br>
> Bosch Software Innovations GmbH | Schöneberger Ufer 89-91 | 10785<br>
> Berlin<br>
> | GERMANY| <a href="http://www.bosch-si.com" rel="noreferrer" target="_blank">www.bosch-si.com</a> <<a href="http://www.bosch-si.com" rel="noreferrer" target="_blank">http://www.bosch-si.com</a>><br>
> Tel. <a href="tel:%2B49%2030%20726112-130" value="+4930726112130">+49 30 726112-130</a> | Fax <a href="tel:%2B49%2030%20726112-100" value="+4930726112100">+49 30 726112-100</a> |<br>
> <a href="mailto:carsten.lohmann@bosch-si.com">carsten.lohmann@bosch-si.com</a> <mailto:<a href="mailto:carsten.lohmann@bosch-si.com">carsten.lohmann@bosch-<wbr>si.com</a>><br>
><br>
> Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411<br>
> B<br>
> Aufsichtsratsvorsitzender: Dr.-Ing. Thorsten Lücke; Geschäftsführung:<br>
> Dr.-Ing. Rainer Kallenbach, Michael Hahn<br>
><br>
><br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> enmasse mailing list<br>
> <a href="mailto:enmasse@redhat.com">enmasse@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/enmasse" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/enmasse</a><br>
><br>
<br>
--<br>
Ulf<br>
<br>
______________________________<wbr>_________________<br>
enmasse mailing list<br>
<a href="mailto:enmasse@redhat.com">enmasse@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/enmasse" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/enmasse</a><br>
</div></div></blockquote></div><br></div>