Message ID | 20230824081110.2851830-1-samantha.jalabert@syslinbit.com |
---|---|
State | Accepted, archived |
Commit | 95088b447f563c5e1d9630e6acb32787b5ebed9c |
Headers | show |
Series | Fix disk space monitoring on cephfs | expand |
On Thu, Aug 24, 2023 at 10:11 AM Samantha Jalabert < samantha.jalabert@syslinbit.com> wrote: > Error occured while running bitbake on cephfs: > > WARNING: The free inode of path is running low (-0.001K left) > ERROR: Immediately halt since the disk space monitor action is "HALT"! > > This was our small Ceph issue I've mentioned during the call on Tuesday. Kind regards, Marta
On Thu, 2023-08-24 at 11:42 +0200, Marta Rybczynska wrote: > On Thu, Aug 24, 2023 at 10:11 AM Samantha Jalabert <samantha.jalabert@syslinbit.com> wrote: > > Error occured while running bitbake on cephfs: > > > > WARNING: The free inode of path is running low (-0.001K left) > > ERROR: Immediately halt since the disk space monitor action is "HALT"! > > This was our small Ceph issue I've mentioned during the call on Tuesday. We stumbled across this as well. Would this qualify for backporting? It cherry- picks cleanly to mickledore, kirkstone and dunfell. Regards, Jan
On Fri, 2023-10-13 at 10:22 +0200, Jan Luebbe wrote: > On Thu, 2023-08-24 at 11:42 +0200, Marta Rybczynska wrote: > > On Thu, Aug 24, 2023 at 10:11 AM Samantha Jalabert <samantha.jalabert@syslinbit.com> wrote: > > > Error occured while running bitbake on cephfs: > > > > > > WARNING: The free inode of path is running low (-0.001K left) > > > ERROR: Immediately halt since the disk space monitor action is "HALT"! > > > > This was our small Ceph issue I've mentioned during the call on Tuesday. > > We stumbled across this as well. Would this qualify for backporting? It cherry- > picks cleanly to mickledore, kirkstone and dunfell. I'd say yes. I've copied Steve. Cheers, Richard
diff --git a/lib/bb/monitordisk.py b/lib/bb/monitordisk.py index a1b91000..f9282103 100644 --- a/lib/bb/monitordisk.py +++ b/lib/bb/monitordisk.py @@ -234,9 +234,10 @@ class diskMonitor: freeInode = st.f_favail if minInode and freeInode < minInode: - # Some filesystems use dynamic inodes so can't run out - # (e.g. btrfs). This is reported by the inode count being 0. - if st.f_files == 0: + # Some filesystems use dynamic inodes so can't run out. + # This is reported by the inode count being 0 (btrfs) or the free + # inode count being -1 (cephfs). + if st.f_files == 0 or st.f_favail == -1: self.devDict[k][2] = None continue # Always show warning, the self.checked would always be False if the action is WARN
Error occured while running bitbake on cephfs: WARNING: The free inode of path is running low (-0.001K left) ERROR: Immediately halt since the disk space monitor action is "HALT"! Signed-off-by: Samantha Jalabert <samantha.jalabert@syslinbit.com> --- lib/bb/monitordisk.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)