Output to action 'cluster-status' is not user friendly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack RabbitMQ Server Charm |
Fix Released
|
Wishlist
|
Anna Savchenko |
Bug Description
The output to action 'cluster-status' is not user friendly.
$ juju run-action --wait rabbitmq-
unit-rabbitmq-
UnitId: rabbitmq-server/0
id: "26"
results:
output: "Cluster status of node rabbit@
name: <email address hidden>
Nodes\
RabbitMQ 3.8.2 on Erlang 22.2.7\
Partition
interface: [::], port: 25672, protocol: clustering, purpose: inter-node and
CLI tool communication\
port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0\n\n\e[1mFeature
flags\
state: enabled\nFlag: virtual_
status: completed
timing:
completed: 2021-09-10 02:11:25 +0000 UTC
enqueued: 2021-09-10 02:11:22 +0000 UTC
started: 2021-09-10 02:11:23 +0000 UTC
Changed in charm-rabbitmq-server: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
tags: | added: good-first-bug |
Changed in charm-rabbitmq-server: | |
assignee: | nobody → Anna Savchenko (annsavchenko) |
Changed in charm-rabbitmq-server: | |
status: | In Progress → Fix Committed |
milestone: | none → 22.04 |
Changed in charm-rabbitmq-server: | |
status: | Fix Committed → Fix Released |
"rabbitmqctl cluster_status" uses escape codes to color/highlight the output and it doesn't have a way to suppress this.
There is a new command, which if I'm not mistaken, was added in rabbit 3.7 that supports json format ouput.
sudo rabbitmq- diagnostics cluster_status --formatter json