You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ernest Allen (JIRA)" <ji...@apache.org> on 2016/03/28 17:37:25 UTC

[jira] [Closed] (DISPATCH-243) Requesting information about a remote router returns info about the connected router

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

Ernest Allen closed DISPATCH-243.
---------------------------------
    Resolution: Not A Bug

This presents a catch-22 when making management requests. 

If I create the link without an address, I can then set the to: address in the message and the request is routed correctly. However, I can't know what the to: address is without first receiving it from a request.

The solution for me is to create two links. The first link will contain the /$management address of the router to which I'm connected. It will just get the address of all the routers in the network. The second link will not contain an address and will be used to send all subsequent management requests.


> Requesting information about a remote router returns info about the connected router
> ------------------------------------------------------------------------------------
>
>                 Key: DISPATCH-243
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-243
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Management Agent
>    Affects Versions: 0.6
>            Reporter: Ernest Allen
>         Attachments: jsmanage.html, jsmanage2.html
>
>
> When connected to Router A, and making a request for info about Router B, the info that is returned is for Router A.
> I'm using the proton javascript binding rhea.js and making a QUERY request. Here is Router B's log entry for the request.
> Thu Mar 24 03:40:06 2016 AGENT (debug) Agent request Message(address='amqp://0.0.0.0:5673/_topo/0/QDR.B/$management', properties={'operation': 'QUERY', 'entityType': 'router', 'type': 'org.amqp.management', 'name': 'self'}, body={'attributeNames': []}, reply_to='amqp:/_topo/0/QDR.A/temp.43z0E5iKdp4hMed', correlation_id='60') on link 0 (/home/eallen/workspace/qpid-dispatch/install/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py:736)
> Thu Mar 24 03:40:06 2016 AGENT (debug) Agent response:
>   Message(address='amqp:/_topo/0/QDR.A/temp.43z0E5iKdp4hMed', properties={'statusDescription': 'OK', 'statusCode': 200}, body={'results': [[4, 'router/QDR.A', 1, '0', 3, 0, 60, 0, 'QDR.A', 30, 'interior', 'org.apache.qpid.dispatch.router', 0, 60, 'router/QDR.A']], 'attributeNames': [u'raIntervalFlux', u'name', u'helloInterval', u'area', u'helloMaxAge', u'linkCount', u'remoteLsMaxAge', u'addrCount', u'routerId', u'raInterval', u'mode', u'type', u'nodeCount', u'mobileAddrMaxAge', u'identity']}, reply_to=None, correlation_id='60')
>   Responding to: 
>   Message(address='amqp://0.0.0.0:5673/_topo/0/QDR.B/$management', properties={'operation': 'QUERY', 'entityType': 'router', 'type': 'org.amqp.management', 'name': 'self'}, body={'attributeNames': []}, reply_to='amqp:/_topo/0/QDR.A/temp.43z0E5iKdp4hMed', correlation_id='60') (/home/eallen/workspace/qpid-dispatch/install/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py:715)



--
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