mountall causes automatic mounting of gluster shares to fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mountall (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
Ubuntu Server 12.04.1 LTS (GNU/Linux 3.2.0-29-virtual x86_64)
glusterfs 3.3.1 (from semiosis PPA)
mountall 2.36.3
We are running an OpenStack cloud (essex). We use Gluster as a network filesystem for storage of data.
When we updated mountall on our client VMs we experienced a failure of the automatic mounting of the gluster-shares at boot-time. The gluster-shares can be mounted manually when the VMs are booted and online.
When we downgraded the mountall package from new version 2.36.3 to old version 2.36, the gluster-shares mounted again during boot.
boot.log (added --verbose to /etc/init/
=======
Connected to Plymouth
/ is local
/proc is virtual
/sys is virtual
/sys/fs/
/sys/kernel/debug is virtual
/sys/kernel/
/dev is virtual
/dev/pts is virtual
/tmp is local
/run is virtual
/run/lock is virtual
/run/shm is virtual
/home is nowait
/scratch is nowait
/opt is nowait
/mnt is nowait
mounting event sent for /sys/fs/
mounting event sent for /sys/kernel/debug
mounting event sent for /sys/kernel/
mounting event sent for /run/lock
mounting event sent for /run/shm
mounting event sent for /
mounted event handled for /sys
swap finished
local 0/2 remote 0/0 virtual 1/10 swap 0/0
mounted event handled for /dev/pts
local 0/2 remote 0/0 virtual 2/10 swap 0/0
mounting event handled for /sys/fs/
mounting /sys/fs/
mount /sys/fs/
mounting event handled for /sys/kernel/debug
mounting /sys/kernel/debug
mount /sys/kernel/debug [296] exited normally
mounting event handled for /sys/kernel/
mounting /sys/kernel/
mount /sys/kernel/
mounting event handled for /run/lock
mounting /run/lock
mount /run/lock [301] exited normally
mounting event handled for /run/shm
mounting /run/shm
mount /run/shm [304] exited normally
mounted event handled for /proc
local 0/2 remote 0/0 virtual 3/10 swap 0/0
mounting event handled for /
remounting /
mount / [310] exited normally
mounted event handled for /dev
mount / [321] exited normally
mount /proc [322] exited normally
mount /sys [323] exited normally
mount /sys/fs/
mount /sys/kernel/debug [325] exited normally
mount /sys/kernel/
mount /dev [327] exited normally
mount /dev/pts [328] exited normally
mount /run [329] exited normally
mount /run/lock [330] exited normally
mount /run/shm [331] exited normally
local 0/2 remote 0/0 virtual 4/10 swap 0/0
mounted event handled for /sys/fs/
local 0/2 remote 0/0 virtual 5/10 swap 0/0
mounted event handled for /sys/kernel/
local 0/2 remote 0/0 virtual 6/10 swap 0/0
mounting event sent for /tmp
mounting event sent for /home
mounting event sent for /scratch
mounting event sent for /opt
mounting event sent for /mnt
mounted event handled for /sys/kernel/debug
local 0/2 remote 0/0 virtual 7/10 swap 0/0
mounted event handled for /run/lock
local 0/2 remote 0/0 virtual 8/10 swap 0/0
mounted event handled for /run/shm
local 0/2 remote 0/0 virtual 9/10 swap 0/0
mounting event handled for /tmp
mounting event handled for /home
mounting /home
Mount failed. Please check the log file for more details.
mountall: mount /home [333] terminated with status 1
mountall: Filesystem could not be mounted: /home
mounting event handled for /scratch
mounting /scratch
Mount failed. Please check the log file for more details.
mountall: mount /scratch [389] terminated with status 1
mountall: Filesystem could not be mounted: /scratch
mounting event handled for /opt
mounting /opt
Mount failed. Please check the log file for more details.
mountall: mount /opt [424] terminated with status 1
mountall: Filesystem could not be mounted: /opt
mounting event handled for /mnt
mounting /mnt
mount /mnt [459] exited normally
mounting event sent for /home
mounting event sent for /scratch
mounting event sent for /opt
mounted event handled for /tmp
local 1/2 remote 0/0 virtual 9/10 swap 0/0
mounting event handled for /home
mounting event handled for /scratch
mounting event handled for /opt
mounted event handled for /mnt
local 1/2 remote 0/0 virtual 9/10 swap 0/0
mounting event sent for /home
mounting event sent for /scratch
mounting event sent for /opt
mounting event handled for /home
mounting event handled for /scratch
mounting event handled for /opt
cloud-init start-local running: Tue, 22 Jan 2013 15:55:55 +0000. up 3.83 seconds
mounted event handled for /run
virtual finished
remote finished
local 1/2 remote 0/0 virtual 10/10 swap 0/0
mounting event sent for /home
mounting event sent for /scratch
mounting event sent for /opt
mounting event handled for /home
mounting event handled for /scratch
mounting event handled for /opt
no instance data found in start-local
mounting event sent for /mnt
mounting event handled for /mnt
Received SIGUSR1 (network device up)
mounting event sent for /home
mounting event sent for /scratch
mounting event sent for /opt
mounting event handled for /home
mounting event handled for /scratch
mounting event handled for /opt
Received SIGUSR1 (network device up)
mounting event sent for /home
mounting event sent for /scratch
mounting event sent for /opt
mounting event handled for /home
mounting event handled for /scratch
mounting event handled for /opt
ci-info: lo : 1 127.0.0.1 255.0.0.0 .
ci-info: eth0 : 1 192.168.0.12 255.255.255.0 fa:16:3e:0a:0b:4c
ci-info: route-0: 0.0.0.0 192.168.0.11 0.0.0.0 eth0 UG
ci-info: route-1: 192.168.0.0 0.0.0.0 255.255.255.0 eth0 U
cloud-init start running: Tue, 22 Jan 2013 15:55:57 +0000. up 5.78 seconds
found data source: DataSourceEc2
mounted event handled for /
local finished
All filesystems mounted
local 2/2 remote 0/0 virtual 10/10 swap 0/0
mounting event sent for /home
mounting event sent for /scratch
mounting event sent for /opt
mounting event handled for /home
mounting event handled for /scratch
mounting event handled for /opt
Skipping profile in /etc/apparmor.
Skipping profile in /etc/apparmor.
* Starting AppArmor profiles [ OK ]
Starting memcached: * Stopping System V initialisation compatibility [ OK ]
* Starting System V runlevel compatibility [ OK ]
* Starting automatic crash report generation [ OK ]
* Starting deferred execution scheduler [ OK ]
* Starting regular background program processing daemon [ OK ]
* Starting ACPI daemon [ OK ]
* Starting save kernel messages [ OK ]
* Starting CPU interrupts balancing daemon [ OK ]
* Stopping save kernel messages [ OK ]
* Starting crash report submission daemon [ OK ]
* Stopping Handle applying cloud-config [ OK ]
memcached.
* Starting Name Service Cache Daemon nscd [ OK ]
* Starting Postfix Mail Transport Agent postfix [ OK ]
* Starting HTTP accelerator varnishd [ OK ]
* Starting NTP server ntpd [ OK ]
landscape-client is not configured, please run landscape-config.
Warning: DocumentRoot [/home/www] does not exist
* Starting web server apache2 [ OK ]
* Stopping System V runlevel compatibility [ OK ]
* Starting execute cloud user/final scripts [ OK ]
/etc/fstab
========
LABEL=cloudimg-
10.0.0.100:/home /home glusterfs defaults,
10.0.0.100:/scratch /scratch glusterfs defaults,
10.0.0.
/dev/vdb /mnt auto defaults,
gluster log of home volume
=======
[2013-01-22 13:17:58.788134] I [glusterfsd.
[2013-01-22 13:17:58.862333] E [common-
[2013-01-22 13:17:58.862395] E [name.c:
[2013-01-22 13:17:58.862514] E [glusterfsd-
[2013-01-22 13:17:58.862546] I [glusterfsd-
[2013-01-22 13:17:58.863087] W [glusterfsd.
[2013-01-22 13:17:58.863134] I [fuse-bridge.
Please let me know if you need any more info.
description: | updated |
mountall doesn't know that glusterfs is a network filesystem type. This means that at boot time, there's a race between bringing the network up and trying to mount /home, and when mountall wins the race, the mount fails and is never re-tried. The newer version of mountall is faster by mounting in parallel, which increases the chance of hitting this race and exposing this problem.
To work around this bug, you should be able to add the '_netdev' option to the fstab entries, signal to mountall that the mount should be retried when network interfaces are brought up. Can you please test that this fixes the issue for you?