disk.py script fails to detect openvz rootfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
landscape-client (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
shinji@gateone:~$ lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
shinji@gateone:~$ apt-cache policy landscape-common
landscape-common:
Installed: 12.05-0ubuntu0.
Candidate: 12.05-0ubuntu0.
Version table:
*** 12.05-0ubuntu0.
500 http://
100 /var/lib/
12.
500 http://
3) What you expected to happen
During login landscape-common should report the usage and total capacity of the rootfs.
4) What happened instead
It attempts to instead report the usage and free space of /home which is shown as unknown. (there is no /home mount)
5) Detailed information + patch
The OS is installed as an OpenVZ container. OpenVZ represents their filesystem as simfs rather than anything that is expected. /proc/mounts shows the rootfs as simfs. Adding simfs as a stable filesystem in disk.py resolves the issue.
This patch needs to be run in /usr/lib/
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: landscape-common 12.05-0ubuntu0.
Uname: Linux 2.6.32-pony6-3 i686
ApportVersion: 2.0.1-0ubuntu14
Architecture: i386
Date: Mon Oct 22 22:41:33 2012
ProcEnviron:
TERM=xterm-
SHELL=/bin/bash
SourcePackage: landscape-client
UpgradeStatus: No upgrade log present (probably fresh install)
Changing to the root package as that is where the affected file is located at.