timeout in iscsi boot fail with overlayroot [open-iscsi autopkg tests on LP Infra]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
open-iscsi (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
This issue keeps cropping up. It shows itself in open-iscsi autopkg tests.
I think it might just be "really slow system". It seems the timeout is only
1 minute 30 seconds for the disk to appear, and in a happy run you
might see something very close:
[K[ [0;31m*
[K[ [0;31m*
[K[[0;32m OK [0m] Found device VIRTUAL-DISK UEFI.
Mounting /boot/efi...
---
There is information on the open-iscsi tests at [1].
[1] https:/
The tests set up an iscsi target and boot a kvm guest off that read-only root with overlayroot.
# get open-iscsi source
$ apt-get source open-iscsi
$ cd open-iscsi-2.0.874/
$ sudo apt-get install -qy simplestreams tgt qemu-system-x86 \
cloud-
$ cd open-iscsi-2.0.874/
## we're now mostly following debian/
# download the image and get kernel/initrd
$ PATH=$PWD/
$ get-image bionic.d bionic
$ sudo `which patch-image` \
--kernel=
$ tgt-boot-test -v bionic.d/disk.img bionic.d/kernel bionic.d/initrd
....
Success is being able to log in with 'ubuntu' and 'passw0rd'.
Failure as seen in the log is dropping into an emergency shell.
Once inside (this was successful) you'll see a mostly sane system.
Some things to note:
a.) tgt-boot-test boots without kvm enabled. This is because using
kvm with qemu in nested virt would cause system lockups. Its slower
but more reliable to go wtihout.
b.) under bug 1723183 I made overlayroot comment out the root filesystem
from the rendered /etc/fstab. That was because systemd got confused and
assumed that /media/root-ro had to be on top of /.
c.) you can enable or disable kvm by setting _USE_KVM=0 or _USE_KVM=1
in your environment.
$ grep -v "^# " /etc/fstab
#
#
#LABEL=
/media/root-ro/ / overlay lowerdir=
ay/,workdir=
LABEL=UEFI /boot/efi vfat defaults 0 0 # overlayroot:
$ sudo blkid
/dev/sda1: LABEL="
/dev/sda15: LABEL="UEFI" UUID="B177-3CC9" TYPE="vfat" PARTUUID=
/dev/sda14: PARTUUID=
$ cat /run/systemd/
# Automatically generated by systemd-
[Unit]
SourcePath=
Documentation=
Before=
[Mount]
Where=/boot/efi
What=/dev/
Type=vfat
Related bugs:
* bug 1680197: Zesty deployments failing sporadically
* bug 1723183: transient systemd ordering issue when using overlayroot
* bug 1666573: transient systemd ordering cycle in boot with overlayroot ver read-only open-iscsi root
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: systemd 234-2ubuntu12
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu4
Architecture: amd64
Date: Mon Nov 13 21:06:36 2017
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
ProcEnviron:
TERM=vt220
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: nomodeset iscsi_initiator
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/01/2014
dmi.bios.vendor: SeaBIOS
dmi.bios.version: 1.10.2-1ubuntu1
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.
dmi.modalias: dmi:bvnSeaBIOS:
dmi.product.name: Standard PC (i440FX + PIIX, 1996)
dmi.product.
dmi.sys.vendor: QEMU
Related branches
- Scott Moser (community): Approve
- Canonical Server packageset reviewers: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 139 lines (+57/-6)4 files modifieddebian/changelog (+9/-0)
debian/tests/README-boot-test.md (+3/-0)
debian/tests/patch-image (+44/-5)
debian/tests/tgt-boot-test (+1/-1)
Another fail log at /objectstorage. prodstack4- 5.canonical. com/v1/ AUTH_77e2ada1e7 a84929a74ba3b87 153c0ac/ autopkgtest- bionic/ bionic/ amd64/o/ open-iscsi/ 20171114_ 192057_ 17bf1@/ log.gz
https:/
Basically if you look at bionic failures autopkgtest. ubuntu. com/packages/ o/open- iscsi/bionic/ amd64
http://
if it took 11 hours and failed, this is why.