disk.py script fails to detect openvz rootfs

Bug #1069960 reported by Robert Pendell
8
This bug affects 1 person
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.12.04
  Candidate: 12.05-0ubuntu0.12.04
  Version table:
 *** 12.05-0ubuntu0.12.04 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
        100 /var/lib/dpkg/status
     12.04.3-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages

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/python2.7/dist-packages/landscape/sysinfo in order to work. There is more than one disk.py file in landscape-common.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: landscape-common 12.05-0ubuntu0.12.04 [modified: usr/share/pyshared/landscape/sysinfo/disk.py]
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-256color
 SHELL=/bin/bash
SourcePackage: landscape-client
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Robert Pendell (shinji257) wrote :
Revision history for this message
Robert Pendell (shinji257) wrote :

Changing to the root package as that is where the affected file is located at.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Can you please also attach the output of the sysinfo motd after login, as well as a copy of /proc/mounts? Thanks

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch file for disk.py to add simfs as a stable filesystem on OpenVZ containers." of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Robert Pendell (shinji257) wrote :
Revision history for this message
Robert Pendell (shinji257) wrote :
Revision history for this message
Robert Pendell (shinji257) wrote :

I've attached the files as you have requested.

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

Other bug subscribers

Remote bug watches

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