You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Danek (JIRA)" <ji...@apache.org> on 2016/05/25 18:36:12 UTC

[jira] [Closed] (DISPATCH-339) The change from 'routerId' to 'id' and 'addr' to 'host' configuration option is not backwards compatible

     [ https://issues.apache.org/jira/browse/DISPATCH-339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jiri Danek closed DISPATCH-339.
-------------------------------

Config files {ra.conf} and {rb.conf} are now working as intended. Thanks.

> The change from 'routerId' to 'id' and 'addr' to 'host' configuration option is not backwards compatible
> --------------------------------------------------------------------------------------------------------
>
>                 Key: DISPATCH-339
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-339
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Router Node
>    Affects Versions: 0.6.0
>            Reporter: Jiri Danek
>            Assignee: Ganesh Murthy
>             Fix For: 0.6.0
>
>         Attachments: ra.conf, ra_.conf, ra_local.conf, rb.conf, rb_.conf, rb_local.conf
>
>
> I started qdrouterd with the following configuration
> {noformat}
> router {
>     mode: interior
>     routerId: r.a
> }
> listener {
>     addr: 0.0.0.0
>     port: amqp
>     authenticatePeer: no
> }
> {noformat}
> Running qdstat then prints that Router id is None.
> {code:title=qdstat -g|borderStyle=solid}
> Router Statistics
>   attr           value
>   =========================
>   Mode           interior
>   Area           0
>   Router Id      None
>   Address Count  0
>   Link Count     0
>   Node Count     0
> {code}
> Other commands, for example
> {code:title=qdstat -n|borderStyle=solid}
> Routers in the Network
>   router-id  next-hop  link
>   ===========================
>   r.a        (self)
> {code}
> work correctly in this respect.
> If I update my config and use {{id}} instead of {{routerId}}, then qdstat prints correct information.
> I'd expect that the config that worked before the routerId/id change would continue working.
> If I use {{addr}} in my connectors, then my router does not connect to other routers. I had to update the config to using {{host}} and only then it worked for me.
> {noformat}
> router {
>     mode: interior
>     id: r.a
> }
> listener {
>     addr: 0.0.0.0
>     port: amqp
>     authenticatePeer: no
> }
> connector {
>     name: to.r.b
>     addr: {{ rb_ip }}
>     port: 50001
>     role: inter-router
> }
> {noformat}
> {noformat}
> router {
>     mode: interior
>     id: r.b
> }
> listener {
>     addr: 0.0.0.0
>     port: amqp
>     authenticatePeer: no
> }
> listener {
>     role: inter-router
>     addr: 0.0.0.0
>     port: 50001
>     authenticatePeer: no
> }
> {noformat}
> {code:title=qdstat -n|borderStyle=solid}
> Routers in the Network
>   router-id  next-hop  link
>   ===========================
>   r.a        (self)
> {code}
> After I change addr to host and restart both routers,
> {code:title=qdstat -n|borderStyle=solid}
> Routers in the Network
>   router-id  next-hop  link
>   ===========================
>   r.a        (self)    -
>   r.b        -         1
> {code}
> NOTE: I noticed that if I use routerId or addr, no deprecation warning is shown in qdrouterd output with the default log level. As far as I can remember, there are deprecation warnings for some features like fixedAddress, I think.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org