Jorge, could you please double-check the focal test? I couldn't get it
to pass here with the updated package, and I tried twice in a different
focal container:

ubuntu@f:~$ sudo apt install rabbitmq-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  rabbitmq-server
1 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.
Need to get 11.5 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://br.archive.ubuntu.com/ubuntu focal-proposed/main amd64 
rabbitmq-server all 3.8.2-0ubuntu1.4 [11.5 MB]
Fetched 11.5 MB in 1s (11.8 MB/s)          
(Reading database ... 39116 files and directories currently installed.)
Preparing to unpack .../rabbitmq-server_3.8.2-0ubuntu1.4_all.deb ...
Unpacking rabbitmq-server (3.8.2-0ubuntu1.4) over (3.8.2-0ubuntu1.3) ...
Setting up rabbitmq-server (3.8.2-0ubuntu1.4) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.19) ...

ubuntu@f:~$ sudo rabbitmqctl status | grep -i disk
Free Disk Space
Low free disk space watermark: 0.05 gb
Free disk space: 143.2679 gb

ubuntu@f:~$ DF=$(which df)
ubuntu@f:~$ SH=/tmp/df.sh
ubuntu@f:~$ 
ubuntu@f:~$ cat <<EOF >$SH
> #!/bin/sh
> sleep 5m
> EOF
ubuntu@f:~$ 
ubuntu@f:~$ sudo chmod +x $SH
ubuntu@f:~$ sudo mount --bind $SH $DF

ubuntu@f:~$ sudo rabbitmqctl status
Status of node rabbit@f ...
Error:
{{:unparseable, []}, {:gen_server, :call, [:rabbit_disk_monitor, 
:get_disk_free_limit, :infinity]}}
ubuntu@f:~$ 


Jammy and kinetic passed fine. Focal is the one with the different
patch...

** Tags removed: verification-done-focal
** Tags added: verification-needed-focal

-- 
You received this bug notification because you are a member of SE
("STS") Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1999816

Title:
  Failure to get free disk space breaks "rabbitmqctl status" command

Status in rabbitmq-server package in Ubuntu:
  Fix Released
Status in rabbitmq-server source package in Focal:
  Fix Committed
Status in rabbitmq-server source package in Jammy:
  Fix Committed
Status in rabbitmq-server source package in Kinetic:
  Fix Committed

Bug description:
  [Impact]

  When for some reason the df command fails to get the disk free space
  (for example timeout on a heavily loaded system) the result is a
  harcoded value of "unknown". As this is not a valid number this
  generates arithmetic errors when the "rabbitmqctl status" command is
  run and tries to divide that value to convert it to another unit.

  This has been fixed upstream here:
  https://github.com/rabbitmq/rabbitmq-server/pull/4897

  [Test Plan]

  The df command can be linked to another file that just waits for a few
  minutes to force a timeout for example: [detailed steps in comment
  #5].

  #!/bin/bash
  sleep 5m

  After the timeout occurs the "rabbitmqctl status" returns an error
  with the unpatched version. After the patch it shows all the
  information and displays unknown in the free space line.

  [Where problems could occur]

  The patch just changes the display of information, it should not break
  anything in the core operations of the package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/1999816/+subscriptions


-- 
Mailing list: https://launchpad.net/~sts-sponsors
Post to     : sts-sponsors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sts-sponsors
More help   : https://help.launchpad.net/ListHelp

Reply via email to