From 95fcac7ca590b8c9badacc9e747491dc59b551da Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Sep 26 2019 15:42:09 +0000 Subject: builder: log insufficent disk space location When creating a builder with the default settings and a small root partition "/", kojid will fail to come up because /var/lib/mock is on the root partition. Prior to this change, kojid would log a messages to the systemd journal about the insufficent disk space, but it did not make it obvious which directory should have more disk space. Add the buildroot location to this log message, so the administrator can more easily understand what to change. --- diff --git a/koji/daemon.py b/koji/daemon.py index 9061490..57e87d7 100644 --- a/koji/daemon.py +++ b/koji/daemon.py @@ -1145,7 +1145,7 @@ class TaskManager(object): availableMB = available // 1024 // 1024 self.logger.debug("disk space available in '%s': %i MB", br_path, availableMB) if availableMB < self.options.minspace: - self.status = "Insufficient disk space: %i MB, %i MB required" % (availableMB, self.options.minspace) + self.status = "Insufficient disk space at %s: %i MB, %i MB required" % (br_path, availableMB, self.options.minspace) self.logger.warn(self.status) return False return True