Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-421

[c] Localhost is not resolving correctly using qdstat

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 1.1.0-alpha
    • proton-c
    • Hide

      1. install qpid-dispatch
      2. go to the /etc/qpid-dispatch
      3. rewrite qdrouterd.conf with:

      router {
          mode: standalone
          id: Router.A
      }
      
      listener {
          host: 0.0.0.0
          port: amqp
          authenticatePeer: no
      }
      
      address {
          prefix: closest
          distribution: closest
      }
      
      address {
          prefix: multicast
          distribution: multicast
      }
      
      address {
          prefix: unicast
          distribution: closest
      }
      
      address {
          prefix: exclusive
          distribution: closest
      }
      
      address {
          prefix: broadcast
          distribution: multicast
      }
      
      log {
          module: DEFAULT
          enable: trace,debug+
          timestamp: yes
      }
      

      4. start qpid-dispatch network daemon -> qdrouterd

      Show
      1. install qpid-dispatch 2. go to the /etc/qpid-dispatch 3. rewrite qdrouterd.conf with: router { mode: standalone id: Router.A } listener { host: 0.0.0.0 port: amqp authenticatePeer: no } address { prefix: closest distribution: closest } address { prefix: multicast distribution: multicast } address { prefix: unicast distribution: closest } address { prefix: exclusive distribution: closest } address { prefix: broadcast distribution: multicast } log { module: DEFAULT enable: trace,debug+ timestamp: yes } 4. start qpid-dispatch network daemon -> qdrouterd

    Description

      Using dispatch router status tool is causing bad interpretation of "localhost".
      Exceptions suggests that it is qpid-proton-c issue.

      [root@dhcp-37-155-6 qpid-dispatch]# qdstat -l -b localhost:5555

      ConnectionException: Connection amqp://localhost:5555/$management disconnected: Condition('proton:io', 'recv: Connection refused')
      

      This works well:
      [root@dhcp-37-155-6 qpid-dispatch]# qdstat -l -b 127.0.0.1:5555

      Router Links
        type      dir  conn id  id  peer  class   addr                  phs  cap  undel  unsettled  deliveries  admin    oper
        =======================================================================================================================
        endpoint  in   1        6         mobile  $management           0    250  0      0          1           enabled  up
        endpoint  out  1        7         local   temp.33KJ6UkZL40nBbI       250  0      0          0           enabled  up
      
      

      Attachments

        Activity

          People

            jross@redhat.com Justin Ross
            mlesko1 Matej Lesko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: