#1523 builder: log insufficent disk space location
Merged 2 years ago by tkopecek. Opened 2 years ago by ktdreyer.

file modified
+1 -1
@@ -1144,7 +1144,7 @@ 

          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

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.

Commit 89cc90a fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago