[Ussuri][CentOS8][Scenario004][rabbitmq-server-3.8] do not work with rabbitmqctl status | grep -F "{rabbit,"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Damien Ciabrini |
Bug Description
Ussuri CentOS8 scenario004 fails[1] while checking rabbitmqctl status, as it looks for grep -F "{rabbit,".
rabbitmqctl status | grep -F "{rabbit,"' is used to check status for rabbitmq, but with rabbitmq 3.8 this do not work as rabbitmqctl status returns different format now[2].
the status check command is defined in puppet-tripleo:-
[puppet-tripleo]$ grep -nri "grep -F"
manifests/
manifests/
[2]
$ sudo podman exec -it rabbitmq-
Status of node rabbit@c8004 ...
Runtime
OS PID: 679
OS: Linux
Uptime (seconds): 97
RabbitMQ version: 3.8.2
Node name: rabbit@c8004
Erlang configuration: Erlang/OTP 22 [erts-10.5.6] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:64] [hipe]
Erlang processes: 420 used, 1048576 limit
Scheduler run queue: 1
Cluster heartbeat timeout (net_ticktime): 15
Plugins
Enabled plugin file: /etc/rabbitmq/
Enabled plugins:
* rabbitmq_management
* rabbitmq_
* rabbitmq_
* amqp_client
* cowboy
* cowlib
Data directory
Node data directory: /var/lib/
Config files
* /etc/rabbitmq/
Log file(s)
* /<email address hidden>
* /var/log/
Alarms
(none)
Memory
Calculation strategy: rss
Memory high watermark setting: 0.4 of available memory, computed to: 3.2768 gb
code: 0.0295 gb (29.72 %)
other_proc: 0.0281 gb (28.31 %)
other_system: 0.0133 gb (13.42 %)
allocated_unused: 0.0113 gb (11.38 %)
reserved_
other_ets: 0.003 gb (3.05 %)
atom: 0.0015 gb (1.53 %)
plugins: 0.0007 gb (0.7 %)
metrics: 0.0002 gb (0.21 %)
mgmt_db: 0.0002 gb (0.15 %)
binary: 0.0001 gb (0.15 %)
mnesia: 0.0001 gb (0.08 %)
quorum_ets: 0.0 gb (0.04 %)
msg_index: 0.0 gb (0.03 %)
connection_other: 0.0 gb (0.0 %)
connection_
connection_readers: 0.0 gb (0.0 %)
connection_writers: 0.0 gb (0.0 %)
queue_procs: 0.0 gb (0.0 %)
queue_slave_procs: 0.0 gb (0.0 %)
quorum_queue_procs: 0.0 gb (0.0 %)
File Descriptors
Total: 2, limit: 65439
Sockets: 0, limit: 58893
Free Disk Space
Low free disk space watermark: 0.05 gb
Free disk space: 69.5478 gb
Totals
Connection count: 0
Queue count: 0
Virtual host count: 1
Listeners
Interface: [::], port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication
Interface: 192.168.101.18, port: 5672, protocol: amqp, purpose: AMQP 0-9-1 and AMQP 1.0
Interface: [::], port: 15672, protocol: http, purpose: HTTP API
Also --formatter option is introduced in rabbitmqctl status, where "erlang" format can be used to get similar behavior
$ sudo podman exec -it rabbitmq-
{
"rabbitmqctl status |grep -Fi pid" should work though for both, me not sure what's the better way to check this to get it work for both old and new versions.
Changed in tripleo: | |
milestone: | none → ussuri-3 |
importance: | Undecided → High |
status: | New → Triaged |
Fix proposed to branch: master /review. opendev. org/710233
Review: https:/