Can not mount cephfs in VM from cloud image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Stefan Bader | ||
Precise |
Fix Released
|
Medium
|
Stefan Bader | ||
Quantal |
Fix Released
|
Medium
|
Stefan Bader |
Bug Description
SRU Justification:
Impact: The ceph module is not loadable in a default virtual installation because it depends on the libceph module.
Fix: Add libceph.ko to the appropriate lists (packaging change only).
Testcase: Having the virtual flavour (or meta package) installed only (in Precise a separate flavour still, in Quantal this just does not include the extras package), modprobe for ceph will fail without that change.
---
Install cloud-image based VM. Install cephfs tools
# Install packages
apt-get update
apt-get dist-upgrade
reboot
apt-get install -y ceph-common ceph-fs-common
# Mount ceph filesystem
mount -t ceph 192.168.3.3:/ /mnt
FATAL: Error inserting ceph (/lib/modules/
mount.ceph: modprobe failed, exit status 1
mount error: ceph filesystem not supported by the system
# dmesg reports:
[ 251.494403] ceph: Unknown symbol ceph_con_keepalive (err 0)
[ 251.494443] ceph: Unknown symbol ceph_create_client (err 0)
[ 251.494456] ceph: Unknown symbol ceph_calc_
[ 251.494459] ceph: Unknown symbol ceph_osdc_
[ 251.494471] ceph: Unknown symbol ceph_con_open (err 0)
....
Release:
lsb_release -rd
Description: Ubuntu 12.10
Release: 12.10
But also present in 13.04
Related bugs:
* bug 1063784: Ceph module not installed
---
AlsaDevices:
total 0
crw-rw---T 1 root audio 116, 1 Apr 4 22:14 seq
crw-rw---T 1 root audio 116, 33 Apr 4 22:14 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
DistroRelease: Ubuntu 12.10
Ec2AMI: ami-00000005
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
IwConfig:
eth0 no wireless extensions.
lo no wireless extensions.
Lsusb:
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: Bochs Bochs
MarkForUpload: True
Package: linux (not installed)
PciMultimedia:
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB:
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware N/A
RfKill: Error: [Errno 2] No such file or directory
Tags: quantal ec2-images
Uname: Linux 3.5.0-26-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm audio cdrom dialout dip floppy netdev plugdev sudo video
dmi.bios.date: 01/01/2007
dmi.bios.vendor: Bochs
dmi.bios.version: Bochs
dmi.chassis.type: 1
dmi.chassis.vendor: Bochs
dmi.modalias: dmi:bvnBochs:
dmi.product.name: Bochs
dmi.sys.vendor: Bochs
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
Changed in linux (Ubuntu): | |
assignee: | nobody → Stefan Bader (stefan-bader-canonical) |
status: | Confirmed → In Progress |
Changed in linux (Ubuntu Precise): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Quantal): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Precise): | |
status: | New → Triaged |
Changed in linux (Ubuntu Quantal): | |
status: | New → Triaged |
Changed in linux (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Precise): | |
assignee: | nobody → Stefan Bader (stefan-bader-canonical) |
Changed in linux (Ubuntu Quantal): | |
assignee: | nobody → Stefan Bader (stefan-bader-canonical) |
status: | Triaged → In Progress |
description: | updated |
Changed in linux (Ubuntu Precise): | |
status: | Triaged → In Progress |
Changed in linux (Ubuntu Quantal): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Precise): | |
status: | In Progress → Fix Committed |
Root cause is the linux-image-virtual does not install the kernel module kernel/ net/ceph/ libceph. ko
find /lib/modules/ 3.5.0-26- generic -type f -name "*ceph*" returns
/lib/modules/ 3.5.0-26- generic/ kernel/ fs/ceph/ ceph.ko
Work around by
apt-get install linux-image- extra-virtual
find /lib/modules/ 3.5.0-26- generic -type f -name "*ceph*" returns
/lib/modules/ 3.5.0-26- generic/ kernel/ fs/ceph/ ceph.ko 3.5.0-26- generic/ kernel/ net/ceph/ libceph. ko
/lib/modules/