Upstart job mounting-glusterfs.conf increases unnecessary 30 seconds in Ubuntu boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glusterfs (Ubuntu) |
Invalid
|
Low
|
Unassigned | ||
Trusty |
Triaged
|
Low
|
Unassigned |
Bug Description
**Note:** This bug is already reported at upstream. However, as it occurs only in Ubuntu, I thought it makes sense to report it here again. So, if the upstream team do not merge the patch (they are mostly developers from Red Hat and may prioritize problems that affect RedHat like OSes), the Ubuntu team can test it, merge it and propose it to the upstream team.
See: https:/
--------
Description of problem:
A bug in the mounting-
The following error is logged in /var/log/
The following error is also logged in /var/log/
"status: Unknown job: static-network-up
start: Unknown job: static-network-up".
For last, another error ("Mount failed") is logged in /var/log/boot.log too.
When not using the nobootwait/nofail flags in fstab, the bug can hang the mount process (and the boot process too). When using the nobootwait/nofail flags, the bug will increase the boot time in about 30 seconds.
Another report from another GlusterFS user can be found at [this link](http://
The bug is caused by the following errors:
- There is no need to wait for the network is up. The Ubuntu itself has the _netdev mount flag that will retry the mount for each time that an interface brings up;
- However, it's necessary to wait for the GlusterFS Server daemon (for mounts using localhost);
- This was implemented in an old commit ([c3bbf6](https:/
- It's wrong to use the wait-for-state upstart task to wait for a signal. It's used to wait for a job. static-network-up is an event signal, and not a job;
- This is why the "Unknown job: static-network-up" is logged;
- It's wrong, when waiting for a job to be started, not passing the 'WAIT_STATE=
Version-Release number of selected component (if applicable):
Master branch (mainline, commit https:/
How reproducible:
Every system boot.
Steps to Reproduce:
1. Create a valid volume in a Gluster Server
2. Create an entry in the /etc/fstab file in a Ubuntu 14.04 like:
gluster1:/dir /var/dir glusterfs defaults,
3. Reboot the system
4. Run 'mount' and check that the volume was mounted
5. Check the boot and upstart logs that shows the problem
To see more easily this problem, it's also possible:
1. Create a valid volume in a Gluster Server
2. Create an entry in the /etc/fstab file in a Ubuntu 14.04 like:
gluster1:/dir /var/dir glusterfs defaults,
3. Run 'time start mountall'
4. Run 'mount' and check that the volume was mounted
5. Check the upstart logs and the high value time output (about 30 seconds).
Actual results:
Errors logged and 30 seconds of unnecessary waiting.
Expected results:
The volume mounted as long as the desired interface is up (_netdev) and the gluster daemon (if it exists) is up, without errors being logged.
Additional info:
The files that need to be updated are [README.Ubuntu](https:/
A fixed version of 'mounting-
-----------
Attachment: https:/
tags: | added: trusty |
Changed in glusterfs (Ubuntu): | |
importance: | Undecided → Low |
Changed in glusterfs (Ubuntu): | |
status: | New → Triaged |
Changed in glusterfs (Ubuntu Trusty): | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in glusterfs (Ubuntu): | |
status: | Triaged → Invalid |
I made an error when choosing the package. Please ignore the upstart package and consider only the glusterfs package.