landscape-sysinfo shows usage of /home instead of the root directory

Bug #1499104 reported by Danilcha
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Committed
Undecided
Juanmi Taboada
landscape-client (Ubuntu)
Fix Released
Wishlist
Dave Jones

Bug Description

I'm on a VDS, Ubuntu 14.04. I only have one real filesystem mounted, and it's mounted on '/'. However, the landscape-sysinfo (and the motd message) writes: Usage of /home: unknown.

Danilcha (danilcha)
description: updated
Revision history for this message
Danilcha (danilcha) wrote :

$ mount
/vz/private/10073 on / type simfs (rw,relatime,usrquota,grpquota)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,nosuid,noexec,relatime,mode=755)
none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/cgroup type tmpfs (rw,relatime,size=4k,mode=755)
none on /run type tmpfs (rw,nosuid,noexec,relatime,size=104860k,mode=755)
none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
none on /run/shm type tmpfs (rw,relatime)
none on /run/user type tmpfs (rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755)

$ landscape-sysinfo --version
14.12-0ubuntu0.14.04

Revision history for this message
Danilcha (danilcha) wrote :

Still the same on 16.03+bzr834-0ubuntu2.16.04.4

Revision history for this message
Dave Jones (waveform) wrote :

I suspect this is due to the unusual "simfs" file-system not being in landscape's whitelist of file-systems that are "safe" to probe. I'll take a look at it.

Dave Jones (waveform)
Changed in landscape-client (Ubuntu):
assignee: nobody → Dave Jones (waveform)
status: New → In Progress
Revision history for this message
Dave Jones (waveform) wrote :
Changed in landscape-client:
assignee: nobody → Dave Jones (waveform)
status: New → In Progress
Revision history for this message
Mathew Hodson (mhodson) wrote :
tags: added: patch-accepted-upstream
Changed in landscape-client:
status: In Progress → Fix Committed
Changed in landscape-client (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Krzysztof Kulesza (prezeskk) wrote :

The same error is when root filesystem is btrfs

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package landscape-client - 19.12-0ubuntu1

---------------
landscape-client (19.12-0ubuntu1) focal; urgency=medium

  * New upstream release 19.12:
    - Modernized packaging.
    - Added support for python-apt 1.9
    - Converted init script to systemd service.
    - Set default value if data_path is missing. (LP: #1728681)
    - Sysinfo: add support for multiple IPv6 addresses per interface.
      (LP: #829379)
    - Clear hash id database on package resync. (LP: #1616116)
    - Permit environments containing unicode chars for script execution.
      (LP: #1765518)
    - Set LANG in sysinfo wrapper. (LP: #1780071)
    - Avoid leaking memory through unused twisted logs. (LP: #1685885)
    - Handle unicode apt-sources-replace (LP: #1771443)
    - Add simfs to the whitelist of watched file-systems (LP: #1499104)
    - Return non-blank message when tasks already performed. (LP: #928933)
    - Overrid apt progress pulse(). (LP: #1758529)
    - Improvements on vm_info detection (LP: #1754073) (LP: #1799843)
      (LP: #1828217)
    - Remove the landscape url from motd output by removing LandscapeLink
      from the list of default landscape-sysinfo plugins. (LP: #1753936)

 -- Simon Poirier <email address hidden> Wed, 04 Dec 2019 14:12:24 +0000

Changed in landscape-client (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Nate Stuyvesant (nstuyvesant) wrote :

Running Ubuntu 21.10 with root on ZFS and still getting this problem.
  Usage of /home: unknown

Revision history for this message
Alyssa Rowan (akr) wrote :

Still happening in 19.12-0ubuntu13 on Ubuntu 22.04.1, installed from subiquity with a btrfs root. There is no separate /home mount on this install, but root is btrfs.

Revision history for this message
Alex Pardoe (digitalpardoe) wrote :

This is definitely still affecting me on 22.10 with a BTRFS root partition, it's also surprising to me that the memory plugin doesn't exclude swap if no swap is provisioned.

Revision history for this message
Juanmi Taboada (juanmitaboada) wrote :

I am taking over this bug and trying to address a solution.

Changed in landscape-client:
assignee: Dave Jones (waveform) → Juanmi Taboada (juanmitaboada)
Revision history for this message
Juanmi Taboada (juanmitaboada) wrote :

I have created a new virtual machine installing Ubuntu 22.10 and btrfs as a root filesystem. I see that the easy solution is to update the whitelist.

PR resolves this issue:
https://github.com/CanonicalLtd/landscape-client/pull/154

Test scenario:
$ mount | grep btrfs
/dev/sda3 on / type btrfs (rw,relatime,space_cache=v2,subvolid=256,subvol=/@)
/dev/sda3 on /home type btrfs (rw,relatime,space_cache=v2,subvolid=257,subvol=/@home)

Before adding btrfs to the whitelist:
$ ./scripts/landscape-sysinfo
  System load: 0.24 Processes: 246
  Usage of /home: unknown Users logged in: 1
  Memory usage: 6% IPv4 address for enp0s3: 192.168.2.191
  Swap usage: 0%

After adding btrfs to the whitelist:
$ ./scripts/landscape-sysinfo
  System load: 2.99 Processes: 258
  Usage of /home: 90.7% of 9.81GB Users logged in: 1
  Memory usage: 7% IPv4 address for enp0s3: 192.168.2.191
  Swap usage: 0%

  => / is using 90.7% of 9.81GB

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.