Bug 920208 - Reboot fails after auto-install
Summary: Reboot fails after auto-install
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-node
Version: 3.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Fabian Deutsch
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-11 14:59 UTC by Fabian Deutsch
Modified: 2013-11-28 11:56 UTC (History)
6 users (show)

Fixed In Version: ovirt-node-3.0.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-28 11:56:35 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Fabian Deutsch 2013-03-11 14:59:27 UTC
Description of problem:
Even after a successful auto-install rebooting the system fails.

Comment 1 Fabian Deutsch 2013-03-12 15:01:40 UTC
So, it seems that this problem exists because systemd is trying to mount /var/log (which is already mounted at that point, and this fails), because of this utmp can't be updated which leads to the hang, a log:

    Mounting /var/log...
    var-log.mount: Directory /var/log to mount over is not empty, mounting anyway.
    var-log.mount failed to run 'mount' task: No such file or directory
    var-log.mount changed dead -> failed
    Job var-log.mount/start finished, result=failed
    [FAILED] Failed to mount /var/log.
    See 'systemctl status var-log.mount' for details.
    Job systemd-update-utmp-runlevel.service/start finished, result=dependency
    [DEPEND] Dependency failed for Update UTMP about System Runlevel Changes.
    Job systemd-update-utmp-shutdown.service/start finished, result=dependency
    [DEPEND] Dependency failed for Update UTMP about System Shutdown.
    Unit var-log.mount entered failed state

Comment 2 Fabian Deutsch 2013-03-12 15:06:40 UTC
Lennart,

a bit of background: The servic ewhich is running into this bug is an auto-installer which modifies /etc/fstab (so fstab at the beginning is different to the fstab at the end).
Initially /var/log is part of the fs root /.
During the installation an fstab entry is added which maps /dev/mapper/HostVG-Logging to /var/log.

IIUIC systemd now tries to do a mount according to that fstab entry, but fails (I dont know why it fails, I don't see a reason for it in the logs).

The question is, how can this be solved cleanly? And have you got an idea about the failing mount?

Comment 3 Fabian Deutsch 2013-03-13 16:09:59 UTC
A dirty workaround:
http://gerrit.ovirt.org/#/c/12935/

Comment 4 Lennart Poettering 2013-03-14 18:21:31 UTC
Hmm, the "No such file or directory" here happens when the fstab first had an entry for the unit, and by the time the unit is about to to be activated the entry is gone.

Is that what happens here?

Comment 5 Fabian Deutsch 2013-05-07 10:35:56 UTC
Seeing a similar problem again, but without the messages given in comment 2.


Note You need to log in before you can comment on or make changes to this bug.