Closed dosaboy closed 1 year ago
I ran this against a rabbitmq-server
unit and got:
hotsos:
version: 347
repo-info: fd5b98c
system:
hostname: juju-69e359-test-15
os: ubuntu focal
num-cpus: 1
load: 0.28, 0.56, 0.39
virtualisation: kvm
rootfs: /dev/vda1 20145724 2958988 17170352 15% /
unattended-upgrades: ENABLED
rabbitmq:
services:
- beam.smp (1)
- epmd (1)
- rabbitmq-server (1)
resources:
vhosts:
- /
- openstack
vhost-queue-distributions:
openstack:
rabbit@juju-69e359-test-15: 70 (100.00%)
connections-per-host:
rabbit@juju-69e359-test-15: 41
client-connections:
neutron:
neutron-openvswitch-agent: 14
neutron-dhcp-agent: 8
neutron-metadata-agent: 4
neutron-metering-agent: 3
neutron-l3-agent: 2
nova:
nova-api-metadata: 8
nova-compute: 2
cluster-partition-handling: ignore
dpkg:
- rabbitmq-server 3.8.2-0ubuntu1.3
potential-issues:
- desc: rabbit@juju-69e359-test-15 holds more than 2/3 of queues for 1/2 vhost(s)
origin: rabbitmq.services
type: RabbitMQWarning
- desc: Cluster partition handling is currently set to ignore. This is potentially
dangerous and a setting of pause_minority is recommended.
origin: rabbitmq.services
type: RabbitMQWarning
juju:
version: 2.9.12
machine: '15'
charms:
- rabbitmq-server-440
units:
local:
- rabbitmq-server-0
kernel:
version: 5.4.0-88-generic
boot: ro console=tty1 console=ttyS0
cpu:
smt: disabled
memory-checks: no issues found
It identified queues and vhosts. Is there something missing?
aha yes, it seems that the issue is specific to running on bionic (focal works for me too).
I can run
sudo /snap/hotsos/current/hotsos.sh --rabbitmq
and get the expected result. This seems to be a snap confinement problem. The snapd
versions are identical though, snapd-2.51.1+18.04
vs. snapd-2.51.1+20.04ubuntu2
.
we do not currently support running the snap on bionic since it has py36 which is not compatible and breaks a core20 snap in classic mode
For some reason when running hotsos as a snap against a host (i.e. not a sosreport) the rabbitmq plugin fails to run rabbitmqctl report (not clear if it is failing or just not running at all) which results in no output from e.g. [1]
[1] https://github.com/canonical/hotsos/blob/6a0d650a8d76b5a5f85f4ddc8c0a9f8939e1de7a/plugins/rabbitmq/pyparts/services.py#L28