You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Pavel Moravec (JIRA)" <ji...@apache.org> on 2012/07/16 12:55:33 UTC

[jira] [Created] (QPID-4139) qpid-stat -b does not show broker names anymore

Pavel Moravec created QPID-4139:
-----------------------------------

             Summary: qpid-stat -b does not show broker names anymore
                 Key: QPID-4139
                 URL: https://issues.apache.org/jira/browse/QPID-4139
             Project: Qpid
          Issue Type: Bug
          Components: Python Tools
    Affects Versions: 0.14
            Reporter: Pavel Moravec
            Priority: Trivial


qpid-stat -b does not show broker URL:

# qpid-stat -b
  Brokers
    broker  cluster       uptime  conn  sess  exch  queue
    =======================================================
    ?       <standalone>  5s         1     1     8     5
#

It is a regression since qpid 0.7 where the URL was shown.

A simple patch is to be proposed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Assigned] (QPID-4139) qpid-stat -b does not show broker names anymore

Posted by "Ted Ross (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Ross reassigned QPID-4139:
------------------------------

    Assignee: Ted Ross
    
> qpid-stat -b does not show broker names anymore
> -----------------------------------------------
>
>                 Key: QPID-4139
>                 URL: https://issues.apache.org/jira/browse/QPID-4139
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Tools
>    Affects Versions: 0.14
>            Reporter: Pavel Moravec
>            Assignee: Ted Ross
>            Priority: Trivial
>              Labels: patch
>         Attachments: qpid-stat_add-cluster.patch, qpid-stat_b-brokername.patch
>
>
> qpid-stat -b does not show broker URL:
> # qpid-stat -b
>   Brokers
>     broker  cluster       uptime  conn  sess  exch  queue
>     =======================================================
>     ?       <standalone>  5s         1     1     8     5
> #
> It is a regression since qpid 0.7 where the URL was shown.
> A simple patch is to be proposed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Updated] (QPID-4139) qpid-stat -b does not show broker names anymore

Posted by "Ernest Allen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ernest Allen updated QPID-4139:
-------------------------------

    Attachment: qpid-stat_add-cluster.patch

Add the cluster column to displayBroker 
                
> qpid-stat -b does not show broker names anymore
> -----------------------------------------------
>
>                 Key: QPID-4139
>                 URL: https://issues.apache.org/jira/browse/QPID-4139
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Tools
>    Affects Versions: 0.14
>            Reporter: Pavel Moravec
>            Priority: Trivial
>              Labels: patch
>         Attachments: qpid-stat_add-cluster.patch, qpid-stat_b-brokername.patch
>
>
> qpid-stat -b does not show broker URL:
> # qpid-stat -b
>   Brokers
>     broker  cluster       uptime  conn  sess  exch  queue
>     =======================================================
>     ?       <standalone>  5s         1     1     8     5
> #
> It is a regression since qpid 0.7 where the URL was shown.
> A simple patch is to be proposed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Updated] (QPID-4139) qpid-stat -b does not show broker names anymore

Posted by "Ernest Allen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ernest Allen updated QPID-4139:
-------------------------------

    Attachment:     (was: qpid-stat.patch)
    
> qpid-stat -b does not show broker names anymore
> -----------------------------------------------
>
>                 Key: QPID-4139
>                 URL: https://issues.apache.org/jira/browse/QPID-4139
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Tools
>    Affects Versions: 0.14
>            Reporter: Pavel Moravec
>            Priority: Trivial
>              Labels: patch
>         Attachments: qpid-stat_b-brokername.patch
>
>
> qpid-stat -b does not show broker URL:
> # qpid-stat -b
>   Brokers
>     broker  cluster       uptime  conn  sess  exch  queue
>     =======================================================
>     ?       <standalone>  5s         1     1     8     5
> #
> It is a regression since qpid 0.7 where the URL was shown.
> A simple patch is to be proposed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Updated] (QPID-4139) qpid-stat -b does not show broker names anymore

Posted by "Pavel Moravec (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Moravec updated QPID-4139:
--------------------------------

    Attachment: qpid-stat_b-brokername.patch

Simple patch proposal.

The root cause of the bug is that qmf/console.py package has method:

  def getUrl(self):
    """ """
    return BrokerURL(host=self.host, port=self.port)

that returns an instance of BrokerURL class. This value is taken qpid-stat as:

    def displayBroker(self, subs):
..
        heads.append(Header('broker'))
        rows = []
        for broker in self.brokers:
            if self.cluster:
                ctext = "%s(%s)" % (self.cluster.clusterName, self.cluster.status)
            else:
                ctext = "<standalone>"
            row = (broker.getName(), ctext, broker.getUptime(),
..

what is not properly formatted to output in qpid/disp.py where the if-statement in:

  def formatted(self, value):
    try:
      if value == None:
        return ''

raises exception AttributeError - 'NoneType' object has no attribute 'scheme'.

I am proposing a simple patch that converts the broker.getName() to string. It fixes the original problem though I don't know if it is not worth modifying "formatted(self, value)" method, rather.
                
> qpid-stat -b does not show broker names anymore
> -----------------------------------------------
>
>                 Key: QPID-4139
>                 URL: https://issues.apache.org/jira/browse/QPID-4139
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Tools
>    Affects Versions: 0.14
>            Reporter: Pavel Moravec
>            Priority: Trivial
>              Labels: patch
>         Attachments: qpid-stat_b-brokername.patch
>
>
> qpid-stat -b does not show broker URL:
> # qpid-stat -b
>   Brokers
>     broker  cluster       uptime  conn  sess  exch  queue
>     =======================================================
>     ?       <standalone>  5s         1     1     8     5
> #
> It is a regression since qpid 0.7 where the URL was shown.
> A simple patch is to be proposed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Resolved] (QPID-4139) qpid-stat -b does not show broker names anymore

Posted by "Ted Ross (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Ross resolved QPID-4139.
----------------------------

       Resolution: Fixed
    Fix Version/s: 0.19
    
> qpid-stat -b does not show broker names anymore
> -----------------------------------------------
>
>                 Key: QPID-4139
>                 URL: https://issues.apache.org/jira/browse/QPID-4139
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Tools
>    Affects Versions: 0.14
>            Reporter: Pavel Moravec
>            Assignee: Ted Ross
>            Priority: Trivial
>              Labels: patch
>             Fix For: 0.19
>
>         Attachments: qpid-stat_add-cluster.patch, qpid-stat_b-brokername.patch
>
>
> qpid-stat -b does not show broker URL:
> # qpid-stat -b
>   Brokers
>     broker  cluster       uptime  conn  sess  exch  queue
>     =======================================================
>     ?       <standalone>  5s         1     1     8     5
> #
> It is a regression since qpid 0.7 where the URL was shown.
> A simple patch is to be proposed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Comment Edited] (QPID-4139) qpid-stat -b does not show broker names anymore

Posted by "Ernest Allen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474342#comment-13474342 ] 

Ernest Allen edited comment on QPID-4139 at 10/11/12 5:28 PM:
--------------------------------------------------------------

Adds cluster column to browser info table

Patch proposal attached

Here is the output for a clustered broker
>[eallen@redhat ~]$ qpid-stat -g -b mrg26.lab.bos.redhat.com:5803
>Broker Summary:
>  uptime   cluster                connections  sessions  exchanges  queues
>  ==========================================================================
>  53m 20s  cluster_name<ACTIVE>   1            1         9          1

If the broker is not clustered, the output looks like:
>[eallen@redhat ~]$ qpid-stat -g -b grid0.lab.bos.redhat.com
>Broker Summary:
>  uptime          cluster       connections  sessions  exchanges  queues
>  ========================================================================
>  47d 0h 38m 58s  <standalone>  112          112       8          268
                
      was (Author: eallen):
    Add the cluster column to displayBroker 
                  
> qpid-stat -b does not show broker names anymore
> -----------------------------------------------
>
>                 Key: QPID-4139
>                 URL: https://issues.apache.org/jira/browse/QPID-4139
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Tools
>    Affects Versions: 0.14
>            Reporter: Pavel Moravec
>            Priority: Trivial
>              Labels: patch
>         Attachments: qpid-stat_add-cluster.patch, qpid-stat_b-brokername.patch
>
>
> qpid-stat -b does not show broker URL:
> # qpid-stat -b
>   Brokers
>     broker  cluster       uptime  conn  sess  exch  queue
>     =======================================================
>     ?       <standalone>  5s         1     1     8     5
> #
> It is a regression since qpid 0.7 where the URL was shown.
> A simple patch is to be proposed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Updated] (QPID-4139) qpid-stat -b does not show broker names anymore

Posted by "Ernest Allen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ernest Allen updated QPID-4139:
-------------------------------

    Comment: was deleted

(was: Added the cluster column to displayBroker)
    
> qpid-stat -b does not show broker names anymore
> -----------------------------------------------
>
>                 Key: QPID-4139
>                 URL: https://issues.apache.org/jira/browse/QPID-4139
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Tools
>    Affects Versions: 0.14
>            Reporter: Pavel Moravec
>            Priority: Trivial
>              Labels: patch
>         Attachments: qpid-stat_add-cluster.patch, qpid-stat_b-brokername.patch
>
>
> qpid-stat -b does not show broker URL:
> # qpid-stat -b
>   Brokers
>     broker  cluster       uptime  conn  sess  exch  queue
>     =======================================================
>     ?       <standalone>  5s         1     1     8     5
> #
> It is a regression since qpid 0.7 where the URL was shown.
> A simple patch is to be proposed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Updated] (QPID-4139) qpid-stat -b does not show broker names anymore

Posted by "Ernest Allen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ernest Allen updated QPID-4139:
-------------------------------

    Attachment: qpid-stat.patch

Added the cluster column to displayBroker
                
> qpid-stat -b does not show broker names anymore
> -----------------------------------------------
>
>                 Key: QPID-4139
>                 URL: https://issues.apache.org/jira/browse/QPID-4139
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Tools
>    Affects Versions: 0.14
>            Reporter: Pavel Moravec
>            Priority: Trivial
>              Labels: patch
>         Attachments: qpid-stat_b-brokername.patch, qpid-stat.patch
>
>
> qpid-stat -b does not show broker URL:
> # qpid-stat -b
>   Brokers
>     broker  cluster       uptime  conn  sess  exch  queue
>     =======================================================
>     ?       <standalone>  5s         1     1     8     5
> #
> It is a regression since qpid 0.7 where the URL was shown.
> A simple patch is to be proposed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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