Failure to get free disk space breaks "rabbitmqctl status" command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rabbitmq-server (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Jorge Merlino | ||
Jammy |
Fix Released
|
Medium
|
Jorge Merlino | ||
Kinetic |
Fix Released
|
Medium
|
Jorge Merlino |
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:/
[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
Changed in rabbitmq-server (Ubuntu): | |
assignee: | nobody → Jorge Merlino (jorge-merlino) |
description: | updated |
description: | updated |
Changed in rabbitmq-server (Ubuntu Focal): | |
assignee: | nobody → Jorge Merlino (jorge-merlino) |
Changed in rabbitmq-server (Ubuntu Jammy): | |
assignee: | nobody → Jorge Merlino (jorge-merlino) |
description: | updated |
Changed in rabbitmq-server (Ubuntu Focal): | |
status: | New → In Progress |
Changed in rabbitmq-server (Ubuntu Jammy): | |
status: | New → In Progress |
tags: |
added: se-sru-sponsor-mfo removed: sts-sponsors ubuntu-sponsors |
Changed in rabbitmq-server (Ubuntu Focal): | |
status: | Incomplete → In Progress |
tags: |
added: se-sponsor-mfo removed: se-sru-sponsor-mfo |
Patch for jammy