[Bug 1755863] Re: netbooting the bionic live CD over NFS goes straight to maintenance mode :
Victor Tapia
victor.tapia at canonical.com
Thu Dec 13 10:55:03 UTC 2018
** Description changed:
- netbooting the bionic live CD[1] over NFS goes straight to maintenance
- mode :
+ [Impact]
+
+ Mounting manually a network share (NFS) and masking it breaks the state of other units (and their dependencies).
+ Casper is masking a mounted NFS share, blocking the normal boot process as described in the original description, but the issue comes from systemd.
+
+ [Test Case]
+
+ - NFS mount point at /media
+ root at iscsi-bionic:/home/ubuntu# mount | grep media
+ 10.230.56.72:/tmp/mnt on /media type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.122.127,local_lock=none,addr=10.230.56.72)
+
+ - Test mount point (/test) defined in /etc/fstab:
+ root at iscsi-bionic:/home/ubuntu# cat /etc/fstab |grep test
+ tmpfs /test tmpfs nosuid,nodev 0 0
+
+ 1. If media.mount is not masked, everything works fine:
+
+ root at iscsi-bionic:/home/ubuntu# mount | grep test
+ root at iscsi-bionic:/home/ubuntu# systemctl status media.mount | grep Active
+ Active: active (mounted) since Thu 2018-11-15 16:03:59 UTC; 3 weeks 6 days ago
+ root at iscsi-bionic:/home/ubuntu# systemctl status test.mount | grep Active
+ Active: inactive (dead) since Thu 2018-12-13 10:33:52 UTC; 4min 11s ago
+ root at iscsi-bionic:/home/ubuntu# systemctl start test.mount
+ root at iscsi-bionic:/home/ubuntu# systemctl status test.mount | grep Active
+ Active: active (mounted) since Thu 2018-12-13 10:38:13 UTC; 3s ago
+ root at iscsi-bionic:/home/ubuntu# mount | grep test
+ tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
+ root at iscsi-bionic:/home/ubuntu# systemctl stop test.mount
+ root at iscsi-bionic:/home/ubuntu# systemctl status test.mount | grep Active
+ Active: inactive (dead) since Thu 2018-12-13 10:38:32 UTC; 3s ago
+ root at iscsi-bionic:/home/ubuntu# mount | grep test
+
+ 2. If media.mount is masked, other mounts are failing:
+
+ root at iscsi-bionic:/home/ubuntu# systemctl mask media.mount
+ Created symlink /etc/systemd/system/media.mount → /dev/null.
+ root at iscsi-bionic:/home/ubuntu# systemctl start test.mount
+ Job for test.mount failed.
+ See "systemctl status test.mount" and "journalctl -xe" for details.
+ root at iscsi-bionic:/home/ubuntu# systemctl status test.mount | grep Active
+ Active: failed (Result: protocol) since Thu 2018-12-13 10:40:06 UTC; 10s ago
+ root at iscsi-bionic:/home/ubuntu# mount | grep test
+ tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
+ root at iscsi-bionic:/home/ubuntu# systemctl stop test.mount
+ root at iscsi-bionic:/home/ubuntu# systemctl status test.mount | grep Active
+ Active: failed (Result: protocol) since Thu 2018-12-13 10:40:06 UTC; 25s ago
+ root at iscsi-bionic:/home/ubuntu# mount | grep test
+ tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
+ root at iscsi-bionic:/home/ubuntu# systemctl start test.mount
+ Job for test.mount failed.
+ See "systemctl status test.mount" and "journalctl -xe" for details.
+ root at iscsi-bionic:/home/ubuntu# mount | grep test
+ tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
+ tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
+ root at iscsi-bionic:/home/ubuntu# systemctl stop test.mount
+ root at iscsi-bionic:/home/ubuntu# mount | grep test
+ tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
+ tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
+
+ [Regression potential]
+
+ Minimal. Originally, one failing mount point blocked the processing of
+ the rest due to how the return codes were handled for every line in
+ /proc/self/mountinfo. This patch removes this "dependency" and keeps the
+ failure local to the affected mount point, allowing the rest to be
+ processed normally.
+
+ [Other Info]
+
+ Upstream bug: https://github.com/systemd/systemd/issues/10874
+ Fixed upstream with commit: https://github.com/systemd/systemd/commit/c165888426ef99440418592a8cdbaff4b7c319b3
+
+ [Original Description]
+
+
+ netbooting the bionic live CD[1] over NFS goes straight to maintenance mode :
[1] http://cdimage.ubuntu.com/daily-live/current/
# casper.log
Begin: Adding live session user... ... dbus-daemon[568]: [session uid=999 pid=568] Activating service name='org.gtk.vfs.Daemon' requested by ':1.0' (uid=999 pid=569 comm="" label="unconfined")
dbus-daemon[568]: [session uid=999 pid=568] Successfully activated service 'org.gtk.vfs.Daemon'
dbus-daemon[568]: [session uid=999 pid=568] Activating service name='org.gtk.vfs.Metadata' requested by ':1.0' (uid=999 pid=569 comm="" label="unconfined")
fuse: device not found, try 'modprobe fuse' first
dbus-daemon[568]: [session uid=999 pid=568] Successfully activated service 'org.gtk.vfs.Metadata'
(gvfsd-metadata:580): GUdev-CRITICAL **: 16:28:56.270:
g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed
(gvfsd-metadata:580): GUdev-CRITICAL **: 16:28:56.270: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed
A connection to the bus can't be made
done.
Begin: Setting up init... ... done.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to casper in Ubuntu.
https://bugs.launchpad.net/bugs/1755863
Title:
netbooting the bionic live CD over NFS goes straight to maintenance
mode :
Status in casper package in Ubuntu:
Confirmed
Status in systemd package in Ubuntu:
Confirmed
Bug description:
[Impact]
Mounting manually a network share (NFS) and masking it breaks the state of other units (and their dependencies).
Casper is masking a mounted NFS share, blocking the normal boot process as described in the original description, but the issue comes from systemd.
[Test Case]
- NFS mount point at /media
root at iscsi-bionic:/home/ubuntu# mount | grep media
10.230.56.72:/tmp/mnt on /media type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.122.127,local_lock=none,addr=10.230.56.72)
- Test mount point (/test) defined in /etc/fstab:
root at iscsi-bionic:/home/ubuntu# cat /etc/fstab |grep test
tmpfs /test tmpfs nosuid,nodev 0 0
1. If media.mount is not masked, everything works fine:
root at iscsi-bionic:/home/ubuntu# mount | grep test
root at iscsi-bionic:/home/ubuntu# systemctl status media.mount | grep Active
Active: active (mounted) since Thu 2018-11-15 16:03:59 UTC; 3 weeks 6 days ago
root at iscsi-bionic:/home/ubuntu# systemctl status test.mount | grep Active
Active: inactive (dead) since Thu 2018-12-13 10:33:52 UTC; 4min 11s ago
root at iscsi-bionic:/home/ubuntu# systemctl start test.mount
root at iscsi-bionic:/home/ubuntu# systemctl status test.mount | grep Active
Active: active (mounted) since Thu 2018-12-13 10:38:13 UTC; 3s ago
root at iscsi-bionic:/home/ubuntu# mount | grep test
tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
root at iscsi-bionic:/home/ubuntu# systemctl stop test.mount
root at iscsi-bionic:/home/ubuntu# systemctl status test.mount | grep Active
Active: inactive (dead) since Thu 2018-12-13 10:38:32 UTC; 3s ago
root at iscsi-bionic:/home/ubuntu# mount | grep test
2. If media.mount is masked, other mounts are failing:
root at iscsi-bionic:/home/ubuntu# systemctl mask media.mount
Created symlink /etc/systemd/system/media.mount → /dev/null.
root at iscsi-bionic:/home/ubuntu# systemctl start test.mount
Job for test.mount failed.
See "systemctl status test.mount" and "journalctl -xe" for details.
root at iscsi-bionic:/home/ubuntu# systemctl status test.mount | grep Active
Active: failed (Result: protocol) since Thu 2018-12-13 10:40:06 UTC; 10s ago
root at iscsi-bionic:/home/ubuntu# mount | grep test
tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
root at iscsi-bionic:/home/ubuntu# systemctl stop test.mount
root at iscsi-bionic:/home/ubuntu# systemctl status test.mount | grep Active
Active: failed (Result: protocol) since Thu 2018-12-13 10:40:06 UTC; 25s ago
root at iscsi-bionic:/home/ubuntu# mount | grep test
tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
root at iscsi-bionic:/home/ubuntu# systemctl start test.mount
Job for test.mount failed.
See "systemctl status test.mount" and "journalctl -xe" for details.
root at iscsi-bionic:/home/ubuntu# mount | grep test
tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
root at iscsi-bionic:/home/ubuntu# systemctl stop test.mount
root at iscsi-bionic:/home/ubuntu# mount | grep test
tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /test type tmpfs (rw,nosuid,nodev,relatime)
[Regression potential]
Minimal. Originally, one failing mount point blocked the processing of
the rest due to how the return codes were handled for every line in
/proc/self/mountinfo. This patch removes this "dependency" and keeps
the failure local to the affected mount point, allowing the rest to be
processed normally.
[Other Info]
Upstream bug: https://github.com/systemd/systemd/issues/10874
Fixed upstream with commit: https://github.com/systemd/systemd/commit/c165888426ef99440418592a8cdbaff4b7c319b3
[Original Description]
netbooting the bionic live CD[1] over NFS goes straight to maintenance mode :
[1] http://cdimage.ubuntu.com/daily-live/current/
# casper.log
Begin: Adding live session user... ... dbus-daemon[568]: [session uid=999 pid=568] Activating service name='org.gtk.vfs.Daemon' requested by ':1.0' (uid=999 pid=569 comm="" label="unconfined")
dbus-daemon[568]: [session uid=999 pid=568] Successfully activated service 'org.gtk.vfs.Daemon'
dbus-daemon[568]: [session uid=999 pid=568] Activating service name='org.gtk.vfs.Metadata' requested by ':1.0' (uid=999 pid=569 comm="" label="unconfined")
fuse: device not found, try 'modprobe fuse' first
dbus-daemon[568]: [session uid=999 pid=568] Successfully activated service 'org.gtk.vfs.Metadata'
(gvfsd-metadata:580): GUdev-CRITICAL **: 16:28:56.270:
g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)'
failed
(gvfsd-metadata:580): GUdev-CRITICAL **: 16:28:56.270: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed
A connection to the bus can't be made
done.
Begin: Setting up init... ... done.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1755863/+subscriptions
More information about the foundations-bugs
mailing list