[opensuse-kernel] booting kernel-default, if Xen's installed (but not used), 'systemd-modules-load' service fails on system startup
On an opensuse 13.2 server, I installed rpm -qa | egrep "kernel-default|kernel-xen|^xen-4" kernel-default-3.19.3-1.1.gf10e7fc.x86_64 kernel-xen-3.19.3-1.1.gf10e7fc.x86_64 xen-4.5.0_03-359.8.x86_64 It's booted to kernel-default uname -rm 3.19.3-1.gf10e7fc-default x86_64 Checking startup sequence systemd-analyze blame 13.447s systemd-modules-load.service 6.111s wicked.service 1.387s systemd-tmpfiles-clean.service ... 'systemd-modules-load.service' takes a long time. Investigating finds a unit fail, journalctl -xb | grep -i systemd-modules-load.service Mar 29 14:44:13 xen01 systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE -- Subject: Unit systemd-modules-load.service has failed -- Unit systemd-modules-load.service has failed. Mar 29 14:44:13 xen01 systemd[1]: Unit systemd-modules-load.service entered failed state. Mar 29 14:44:36 xen01 systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE -- Subject: Unit systemd-modules-load.service has failed -- Unit systemd-modules-load.service has failed. Mar 29 14:44:36 xen01 systemd[1]: Unit systemd-modules-load.service entered failed state. and details systemctl status systemd-modules-load.service -l systemd-modules-load.service - Load Kernel Modules Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static) Active: failed (Result: exit-code) since Sun 2015-03-29 14:44:36 PDT; 19min ago Docs: man:systemd-modules-load.service(8) man:modules-load.d(5) Process: 833 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE) Main PID: 833 (code=exited, status=1/FAILURE) Mar 29 14:44:23 xen01 systemd-modules-load[833]: Failed to find module 'xen-evtchn' Mar 29 14:44:23 xen01 systemd-modules-load[833]: Failed to find module 'xen-gntdev' Mar 29 14:44:23 xen01 systemd-modules-load[833]: Failed to find module 'xen-gntalloc' Mar 29 14:44:36 xen01 systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE Mar 29 14:44:36 xen01 systemd[1]: Failed to start Load Kernel Modules. Mar 29 14:44:36 xen01 systemd[1]: Unit systemd-modules-load.service entered failed state. Looking in the unit file cat /usr/lib/systemd/system/systemd-modules-load.service # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. [Unit] Description=Load Kernel Modules Documentation=man:systemd-modules-load.service(8) man:modules-load.d(5) DefaultDependencies=no Conflicts=shutdown.target After=systemd-readahead-collect.service systemd-readahead-replay.service Before=sysinit.target shutdown.target ConditionCapability=CAP_SYS_MODULE ConditionDirectoryNotEmpty=|/lib/modules-load.d ConditionDirectoryNotEmpty=|/usr/lib/modules-load.d ConditionDirectoryNotEmpty=|/usr/local/lib/modules-load.d ConditionDirectoryNotEmpty=|/etc/modules-load.d ConditionDirectoryNotEmpty=|/run/modules-load.d ConditionKernelCommandLine=|modules-load ConditionKernelCommandLine=|rd.modules-load [Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/lib/systemd/systemd-modules-load The module load refernces are grep xen /usr/lib/modules-load.d/* /usr/lib/modules-load.d/xen.conf:xen-evtchn /usr/lib/modules-load.d/xen.conf:xen-gntdev /usr/lib/modules-load.d/xen.conf:xen-gntalloc /usr/lib/modules-load.d/xen.conf:xen-blkback /usr/lib/modules-load.d/xen.conf:xen-netback /usr/lib/modules-load.d/xen.conf:xen-pciback /usr/lib/modules-load.d/xen.conf:xen-scsibk /usr/lib/modules-load.d/xen.conf:xen-acpi-processor I installed Xen, but never manually enabled any of its service. Checking xen's services, cd /usr/lib/systemd/system for s in $(ls xen*) do systemctl status $s | grep Loaded done Two services are enabled (1) Loaded: loaded (/usr/lib/systemd/system/xencommons.service; enabled) Loaded: loaded (/usr/lib/systemd/system/xenconsoled.service; disabled) (2) Loaded: loaded (/usr/lib/systemd/system/xendomains.service; enabled) Loaded: loaded (/usr/lib/systemd/system/xen-init-dom0.service; disabled) Loaded: loaded (/usr/lib/systemd/system/xen-qemu-dom0-disk-backend.service; disabled) Loaded: loaded (/usr/lib/systemd/system/xenstored_ro.socket; disabled) Loaded: loaded (/usr/lib/systemd/system/xenstored.service; disabled) Loaded: loaded (/usr/lib/systemd/system/xenstored.socket; disabled) Loaded: loaded (/usr/lib/systemd/system/xen-watchdog.service; disabled) I'm booting to non-Xen. Why is the 'systemd-modules-load' unit attempting to load xen modules, and failing, in this case? Shouldn't that be conditional on which kernel flavor? LT -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
В Sun, 29 Mar 2015 15:36:39 -0700 lyndat3@your-mail.com пишет:
I'm booting to non-Xen.
Why is the 'systemd-modules-load' unit attempting to load xen modules, and failing, in this case?
Because it is dumb service and simply unconditionally loads everything that it is told to load.
Shouldn't that be conditional on which kernel flavor?
The real question is - is it possible to autoload those modules based on kernel events? -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (2)
-
Andrei Borzenkov
-
lyndat3@your-mail.com