#57: When nfs-utils are installed, systemd-based image shows errors during
startup
-----------------------------+---------------------
Reporter: adelton | Owner: kanarip
Type: defect | Status: new
Priority: major | Milestone:
Component: kickstart pool | Keywords:
Blocked By: | Blocking:
-----------------------------+---------------------
= bug description =
This is a clone of
https://github.com/fedora-cloud/docker-brew-
fedora/issues/26.
With Dockerfile
{{{
FROM fedora:22
ENV container docker
# to workaround
https://github.com/fedora-cloud/docker-brew-
fedora/issues/21
RUN dnf upgrade -y && dnf clean all
RUN systemctl mask systemd-remount-fs.service dev-hugepages.mount sys-fs-
fuse-connections.mount systemd-logind.service getty.target console-
getty.service dnf-makecache.service
RUN dnf install -y nfs-utils
VOLUME [ "/tmp", "/run" ]
CMD [ "/usr/sbin/init" ]
LABEL RUN "docker run -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro ${NAME}"
}}}
running the container with
{{{
docker run -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro fedora-22-systemd
}}}
shows errors
{{{
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Create System Users.
proc-fs-nfsd.mount mount process exited, code=exited status=32
[FAILED] Failed to mount NFSD configuration filesystem.
See "systemctl status proc-fs-nfsd.mount" for details.
[DEPEND] Dependency failed for GSSAPI Proxy Daemon.
Job gssproxy.service/start failed with result 'dependency'.
Unit proc-fs-nfsd.mount entered failed state.
[ OK ] Started Rebuild Journal Catalog.
[ OK ] Started Preprocess NFS configuration.
}}}
and
{{{
[ OK ] Started Create Volatile Files and Directories.
Mounting RPC Pipe File System...
Starting Update UTMP about System Boot/Shutdown...
[FAILED] Failed to mount RPC Pipe File System.
See "systemctl status var-lib-nfs-rpc_pipefs.mount" for details.
[DEPEND] Dependency failed for RPC security service for NFS client and
server.
[DEPEND] Dependency failed for RPC security service for NFS server.
[ OK ] Reached target NFS client services.
[ OK ] Reached target Remote File Systems (Pre).
}}}
Running {{{systemctl status ...}}} shows
{{{
# systemctl status proc-fs-nfsd.mount -l
● proc-fs-nfsd.mount - NFSD configuration filesystem
Loaded: loaded (/usr/lib/systemd/system/proc-fs-nfsd.mount; static;
vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2015-10-21 08:27:12 UTC;
29s ago
Where: /proc/fs/nfsd
What: nfsd
Process: 27 ExecMount=/bin/mount nfsd /proc/fs/nfsd -n -t nfsd
(code=exited, status=32)
Oct 21 08:27:13 17a4321fc06f mount[27]: mount: nfsd is write-protected,
mounting read-only
Oct 21 08:27:13 17a4321fc06f mount[27]: mount: cannot mount nfsd read-only
}}}
and
{{{
# systemctl status var-lib-nfs-rpc_pipefs.mount -l
● var-lib-nfs-rpc_pipefs.mount - RPC Pipe File System
Loaded: loaded (/usr/lib/systemd/system/var-lib-nfs-rpc_pipefs.mount;
static; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2015-10-21 08:29:50 UTC;
28s ago
Where: /var/lib/nfs/rpc_pipefs
What: sunrpc
Process: 29 ExecMount=/bin/mount sunrpc /var/lib/nfs/rpc_pipefs -n -t
rpc_pipefs (code=exited, status=32)
Oct 21 08:29:50 00dba0989871 systemd[1]: Mounting RPC Pipe File System...
Oct 21 08:29:50 00dba0989871 systemd[1]: var-lib-nfs-rpc_pipefs.mount
mount process exited, code=exited status=32
Oct 21 08:29:50 00dba0989871 systemd[1]: Failed to mount RPC Pipe File
System.
Oct 21 08:29:50 00dba0989871 systemd[1]: Unit var-lib-nfs-rpc_pipefs.mount
entered failed state.
Oct 21 08:29:50 00dba0989871 mount[29]: mount: permission denied
}}}
= bug analysis =
Adding
{{{
RUN systemctl mask proc-fs-nfsd.mount var-lib-nfs-rpc_pipefs.mount
}}}
helps ... but should people have to do that, especially when nfs-utils
gets installed to their images via some (indirect) dependency?
= fix recommendation =
I'm not sure.
--
Ticket URL: <
https://fedorahosted.org/spin-kickstarts/ticket/57>
spin-kickstarts <
https://fedorahosted.org/spin-kickstarts/>
Kickstarts that the Spin SIG reviews, tests, maintains and releases (as a package).