Skip to content
This repository was archived by the owner on Nov 18, 2020. It is now read-only.
This repository was archived by the owner on Nov 18, 2020. It is now read-only.

Table column headers are missing from result #264

Closed

Description

@luos

Hi,

In previous versions (3.6.x) there was a header on top of each table, for the commands found in rabbitmqctl report, for example:

Connections:
pid	name	port	peer_port	host	peer_host	ssl	peer_cert_subject	peer_cert_issuer	peer_cert_validity	auth_mechanism	ssl_protocol	ssl_key_exchange	ssl_cipher	ssl_hash	protocol	user	vhost	timeout	frame_max	channel_max	client_properties	connected_at	recv_oct	recv_cnt	send_oct	send_cnt	send_pend	state	channels
<[email protected]>	172.31.30.29:55610 -> 172.31.11.110:5672	5672	55610	172.31.11.110	172.31.30.29	false				PLAIN					{0,9,1}	user	/	60	131072	0	[]	1537886725142	154731689	4950691	3347336556	7353344	0	running	3

Now this seems to be missing:

Listing connections ...
<[email protected]>	172.28.89.149:49739 -> 172.28.89.145:5672	5672	172.28.89.145	49739	172.28.89.149	false								running	0	{0,9,1}	PLAIN	user	/	60	131072	0	[]	115142720	346870	2070437	172437	0	1536343886590

Not sure if it's deliberate, but it was easier to copy it into a sheet and analyse it.

Maybe it was deliberate the headers could be added back for only the "report" command?

Activity

  1. lukebakken commented on Oct 17, 2018

    @lukebakken
    Contributor

    Thanks for reporting this. I don't think this change was deliberate - @hairyhum ?

  2. hairyhum commented on Oct 17, 2018

    @hairyhum
    Contributor

    I've somehow totally missed that. It can be reintroduced (maybe optionaly)

  3. added this to the 3.7.9 milestone on Oct 17, 2018
  4. lukebakken commented on Oct 18, 2018

    @lukebakken
    Contributor

    [161326468]

  5. self-assigned this
    on Oct 19, 2018
  6. added a commit that references this issue on Oct 22, 2018
    ac02f09
  7. michaelklishin commented on Oct 24, 2018

    @michaelklishin
    Contributor

    Note that the list_* commands in 3.7.x support CSV output via --formatter=csv. It does include a header row and should be the easiest option to import in many cases. report output doesn't necessarily fit into tabular format but it's the above commands that are reused under the hood by report in 3.7.x.

  8. luos commented on Oct 25, 2018

    @luos
    Author

    Hi,

    Thank you for the fix and for mentioning those flags, I did not know about them.

    Lajos

  9. michaelklishin commented on Nov 21, 2018

    @michaelklishin
    Contributor

    To clarify: the lack of table headers was a bug introduced in the 3.7 cycle. We left a couple of suggestions in voxpupuli/puppet-rabbitmq#740 for those who relied on this bug.

  10. paulrbr-fl commented on Dec 20, 2018

    @paulrbr-fl

    To clarify: the lack of table headers was a bug introduced in the 3.7 cycle. We left a couple of suggestions in voxpupuli/puppet-rabbitmq#740 for those who relied on this bug.

    Hi @michaelklishin are you sure it was a bug in 3.7? I think it was already the behavior in 3.6:

    > docker exec -ti rabbit-3.6.12 rabbitmqctl -q status | grep RabbitMQ
         [{rabbit,"RabbitMQ","3.6.12"},
    
    > docker exec -ti rabbit-3.6.12 rabbitmqctl -q list_user_permissions guest
    /       .*      .*      .*
    
  11. michaelklishin commented on Dec 20, 2018

    @michaelklishin
    Contributor

    @paulrbr-fl you are not comparing apples to apples since you passing -q. Anyhow, in 3.7.10 there will be -q, --no-table-headers and -s which combines the two. Case closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions