I am occasionally seeing this again with the Impish live-server
(subiquity) daily ISO images. I saw this happening only on ppc64el and
on arm64, and only on preseeded installs (via answers.yaml).

This doesn't prevent the installation from succeeding: what fails is
just the post-install reboot. Hard-rebooting the system results in the
installed system booting correctly.

This is not easy to reproduce, I went with something on these lines:

for i in {1..100}; do
    echo "Round $i"
    virt-install --os-variant ubuntu18.04 --name paride-impish-preseed --memory 
2048 --disk image.qcow2 --disk answers.img --cdrom 
impish-live-server-ppc64el.iso --noautoconsole --wait -1 || break;
    sleep 5;
    virsh destroy paride-impish-preseed || break;
    virsh undefine paride-impish-preseed || break;
done

When the problem happens virt-install will never exit as the installer
system gets caught in the "SQUASHFS error: Failed to read block" error
loop. I'm attaching the answers.yaml baked in answers.img (see LP:
#1946398 on how to create the answers image file).

Note: that answers.yaml preseeds the installation of a snap. I have the
impression that it increases the probability of hitting the failure.

=== kernel log excerpt on failure ===

[   78.374287] EXT4-fs (vda2): mounted filesystem with ordered data mode. Opts: 
(null). Quota mode: none.
[   79.296032] overlayfs: "xino" feature enabled using 32 upper inode bits.
[  134.464075] overlayfs: "xino" feature enabled using 2 upper inode bits.
[  355.493023] SGI XFS with ACLs, security attributes, realtime, quota, no 
debug enabled
[  355.513889] JFS: nTxBlock = 459, nTxLock = 3673
[  355.536975] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[  355.564466] QNX4 filesystem 0.2.3 registered.
[  355.648190] Btrfs loaded, crc32c=crc32c-vpmsum, zoned=yes
[  372.037306] VFS: busy inodes on changed media sr0
[  372.039566] sr 0:0:0:2: [sr0] tag#19 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE cmd_age=0s
[  372.039572] sr 0:0:0:2: [sr0] tag#19 Sense Key : Not Ready [current] 
[  372.039575] sr 0:0:0:2: [sr0] tag#19 Add. Sense: Medium not present
[  372.039578] sr 0:0:0:2: [sr0] tag#19 CDB: Read(10) 28 00 00 00 a6 35 00 00 
20 00
[  372.039580] blk_update_request: I/O error, dev sr0, sector 170196 op 
0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[  372.039633] sr 0:0:0:2: [sr0] tag#20 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE cmd_age=0s
[  372.039636] sr 0:0:0:2: [sr0] tag#20 Sense Key : Not Ready [current] 
[  372.039638] sr 0:0:0:2: [sr0] tag#20 Add. Sense: Medium not present
[  372.039641] sr 0:0:0:2: [sr0] tag#20 CDB: Read(10) 28 00 00 00 a6 35 00 00 
20 00
[  372.039642] blk_update_request: I/O error, dev sr0, sector 170196 op 
0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  372.039651] blk_update_request: I/O error, dev loop0, sector 36870 op 
0x0:(READ) flags 0x800 phys_seg 1 prio class 0
[  372.051333] SQUASHFS error: Failed to read block 0x1200dd0: -5
[  372.051337] SQUASHFS error: Unable to read data cache entry [1200dd0]
[  372.051339] SQUASHFS error: Unable to read page, block 1200dd0, size 8380
[  372.051461] sr 0:0:0:2: [sr0] tag#21 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE cmd_age=0s
[  372.051465] sr 0:0:0:2: [sr0] tag#21 Sense Key : Not Ready [current] 
[  372.051468] sr 0:0:0:2: [sr0] tag#21 Add. Sense: Medium not present
[  372.051471] sr 0:0:0:2: [sr0] tag#21 CDB: Read(10) 28 00 00 00 a6 35 00 00 
20 00
[  372.051473] blk_update_request: I/O error, dev sr0, sector 170196 op 
0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  372.051482] blk_update_request: I/O error, dev loop0, sector 36870 op 
0x0:(READ) flags 0x800 phys_seg 1 prio class 0
[  372.051489] SQUASHFS error: Failed to read block 0x1200dd0: -5
[  372.051545] sr 0:0:0:2: [sr0] tag#22 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE cmd_age=0s
[  372.051548] sr 0:0:0:2: [sr0] tag#22 Sense Key : Not Ready [current] 
[  372.051550] sr 0:0:0:2: [sr0] tag#22 Add. Sense: Medium not present
[  372.051553] sr 0:0:0:2: [sr0] tag#22 CDB: Read(10) 28 00 00 00 a6 35 00 00 
20 00
[  372.051554] blk_update_request: I/O error, dev sr0, sector 170196 op 
0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  372.051562] blk_update_request: I/O error, dev loop0, sector 36870 op 
0x0:(READ) flags 0x800 phys_seg 1 prio class 0
[  372.051568] SQUASHFS error: Failed to read block 0x1200dd0: -5
[  372.052908] sr 0:0:0:2: [sr0] tag#23 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE cmd_age=0s
[  372.052912] sr 0:0:0:2: [sr0] tag#23 Sense Key : Not Ready [current] 
[  372.052915] sr 0:0:0:2: [sr0] tag#23 Add. Sense: Medium not present
[  372.052917] sr 0:0:0:2: [sr0] tag#23 CDB: Read(10) 28 00 00 01 56 55 00 00 
20 00
[  372.052919] blk_update_request: I/O error, dev sr0, sector 350548 op 
0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[  372.052964] sr 0:0:0:2: [sr0] tag#24 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE cmd_age=0s
[  372.052967] sr 0:0:0:2: [sr0] tag#24 Sense Key : Not Ready [current] 
[  372.052970] sr 0:0:0:2: [sr0] tag#24 Add. Sense: Medium not present
[  372.052972] sr 0:0:0:2: [sr0] tag#24 CDB: Read(10) 28 00 00 01 56 55 00 00 
20 00
[  372.052974] blk_update_request: I/O error, dev sr0, sector 350548 op 
0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  372.052981] blk_update_request: I/O error, dev loop0, sector 217262 op 
0x0:(READ) flags 0x800 phys_seg 1 prio class 0
[  372.052988] SQUASHFS error: Failed to read block 0x6a15d64: -5
[  372.052989] SQUASHFS error: Unable to read data cache entry [6a15d64]
[  372.052991] SQUASHFS error: Unable to read page, block 6a15d64, size 81b0
[  372.053043] sr 0:0:0:2: [sr0] tag#25 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE cmd_age=0s
[  372.053046] sr 0:0:0:2: [sr0] tag#25 Sense Key : Not Ready [current] 
[  372.053048] sr 0:0:0:2: [sr0] tag#25 Add. Sense: Medium not present
[  372.053051] sr 0:0:0:2: [sr0] tag#25 CDB: Read(10) 28 00 00 01 56 55 00 00 
20 00
[  372.053061] SQUASHFS error: Failed to read block 0x6a15d64: -5
[  372.053112] sr 0:0:0:2: [sr0] tag#26 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE cmd_age=0s
[  372.053115] sr 0:0:0:2: [sr0] tag#26 Sense Key : Not Ready [current] 
[  372.053117] sr 0:0:0:2: [sr0] tag#26 Add. Sense: Medium not present
[  372.053119] sr 0:0:0:2: [sr0] tag#26 CDB: Read(10) 28 00 00 01 56 55 00 00 
20 00
[  372.053128] SQUASHFS error: Failed to read block 0x6a15d64: -5
[  372.054012] sr 0:0:0:2: [sr0] tag#27 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE cmd_age=0s
[  372.054016] sr 0:0:0:2: [sr0] tag#27 Sense Key : Not Ready [current] 
[  372.054018] sr 0:0:0:2: [sr0] tag#27 Add. Sense: Medium not present
[  372.054021] sr 0:0:0:2: [sr0] tag#27 CDB: Read(10) 28 00 00 01 56 55 00 00 
20 00
[  372.054067] sr 0:0:0:2: [sr0] tag#28 FAILED Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE cmd_age=0s
[  372.054069] sr 0:0:0:2: [sr0] tag#28 Sense Key : Not Ready [current] 
[  372.054072] sr 0:0:0:2: [sr0] tag#28 Add. Sense: Medium not present
[  372.054074] sr 0:0:0:2: [sr0] tag#28 CDB: Read(10) 28 00 00 01 56 55 00 00 
20 00
[  372.054084] SQUASHFS error: Failed to read block 0x6a0f0c8: -5
[  372.054086] SQUASHFS error: Unable to read data cache entry [6a0f0c8]
[  372.054087] SQUASHFS error: Unable to read page, block 6a0f0c8, size 69a4
[  372.054188] SQUASHFS error: Failed to read block 0x6a0f0c8: -5
[  372.054286] SQUASHFS error: Failed to read block 0x6a0f0c8: -5
[  372.063004] SQUASHFS error: Failed to read block 0x6c9d578: -5
[  372.063007] SQUASHFS error: Unable to read data cache entry [6c9d578]
[  372.063008] SQUASHFS error: Unable to read page, block 6c9d578, size 7f2c
[  372.063070] SQUASHFS error: Failed to read block 0x6c9d578: -5
[  372.063128] SQUASHFS error: Failed to read block 0x6c9d578: -5
[  372.129910] SQUASHFS error: Failed to read block 0x440bbc8: -5
[  372.130062] SQUASHFS error: Failed to read block 0x440bbc8: -5
[  372.130200] SQUASHFS error: Failed to read block 0x440bbc8: -5



** Attachment added: "answers.yaml"
   
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1840122/+attachment/5532415/+files/answers.yaml

** Also affects: casper (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Changed in: casper (Ubuntu Focal)
       Status: New => Fix Released

** Changed in: casper (Ubuntu)
       Status: Fix Released => New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1840122

Title:
  System fails to reboot from live session or ubiquity-dm -
  squashfs_read_data failed to read block

Status in casper package in Ubuntu:
  New
Status in linux package in Ubuntu:
  Confirmed
Status in casper source package in Bionic:
  Fix Released
Status in linux source package in Bionic:
  Confirmed
Status in casper source package in Eoan:
  Fix Released
Status in linux source package in Eoan:
  Won't Fix
Status in casper source package in Focal:
  Fix Released
Status in linux source package in Focal:
  New

Bug description:
  Last known good image: Eoan Ubuntu Desktop 20190715

  Similar results started to happen with new linux-hwe kernel based on
  eoan for 18.04.4 release.

  Test Case:
  1. Boot eoan desktop to a live session
  2. Wait a couple of minutes until snapd settles
  3. Reboot the system from the system menu or from the command line

  Expected result:
  The system reboots

  Actual result:
  The systems fails to reboot or shutdown and displays some errors about 
failing to unmount /cdrom and squashfs errors in a loop.

  Unmounting /cdrom...
  [FAILED] Failed unmounting /cdrom.
  [  OK  ] Started Shuts down the "li…" preinstalled system cleanly.
  [  OK  ] Reached target Final Step.
  [  OK  ] Started Reboot.
  [  OK  ] Reached target Reboot.
  [  115.744188] print_req_error: I/O error, dev sr0, sector 1508872 flags 80700
  [  115.768139] print_req_error: I/O error, dev sr0, sector 1508872 flags 0
  [  115.771469] print_req_error: I/O error, dev loop0, sector 1501550 flags 0
  [  115.775824] SQUASHFS error: squashfs_read_data failed to read block 
0x2dd2d998

  This also causes daily tests to fail and is reproducible in a VM and
  bare metal booted in legacy bios mode

  ProblemType: Bug
  DistroRelease: Ubuntu 19.10
  Package: casper 1.414
  ProcVersionSignature: Ubuntu 5.2.0-10.11-generic 5.2.4
  Uname: Linux 5.2.0-10-generic x86_64
  ApportVersion: 2.20.11-0ubuntu7
  Architecture: amd64
  CasperVersion: 1.414
  CurrentDesktop: ubuntu:GNOME
  Date: Wed Aug 14 08:31:30 2019
  LiveMediaBuild: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190813)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=C.UTF-8
   SHELL=/bin/bash
  SourcePackage: casper
  UpgradeStatus: No upgrade log present (probably fresh install)
  ---
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu7
  Architecture: amd64
  CasperVersion: 1.414
  CurrentDesktop: ubuntu:GNOME
  DistroRelease: Ubuntu 19.10
  LiveMediaBuild: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190814)
  Package: linux
  PackageArchitecture: amd64
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=C.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 5.2.0-10.11-generic 5.2.4
  Tags:  eoan
  Uname: Linux 5.2.0-10-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  _MarkForUpload: True
  ---
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu7
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  ubuntu     1788 F.... pulseaudio
  CasperVersion: 1.414
  CurrentDesktop: ubuntu:GNOME
  DistroRelease: Ubuntu 19.10
  IwConfig:
   lo        no wireless extensions.

   ens3      no wireless extensions.
  LiveMediaBuild: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190814)
  Lsusb:
   Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  Package: linux (not installed)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=C.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: file=/cdrom/preseed/username.seed initrd=/casper/initrd 
---  keyboard-configuration/layoutcode=fr keyboard-configuration/variantcode=oss
  ProcVersionSignature: Ubuntu 5.2.0-10.11-generic 5.2.4
  RelatedPackageVersions:
   linux-restricted-modules-5.2.0-10-generic N/A
   linux-backports-modules-5.2.0-10-generic  N/A
   linux-firmware                            1.181
  RfKill:

  Tags:  eoan
  Uname: Linux 5.2.0-10-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  _MarkForUpload: True
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: 1.12.0-1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-disco
  dmi.modalias: 
dmi:bvnSeaBIOS:bvr1.12.0-1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-disco:cvnQEMU:ct1:cvrpc-i440fx-disco:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-disco
  dmi.sys.vendor: QEMU
  ---
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu7
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  ubuntu     1788 F.... pulseaudio
  CasperVersion: 1.414
  CurrentDesktop: ubuntu:GNOME
  DistroRelease: Ubuntu 19.10
  IwConfig:
   lo        no wireless extensions.

   ens3      no wireless extensions.
  LiveMediaBuild: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190814)
  Lsusb:
   Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  Package: linux-image-5.2.0-10-generic 5.2.0-10.11
  PackageArchitecture: amd64
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=C.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: file=/cdrom/preseed/username.seed initrd=/casper/initrd 
---  keyboard-configuration/layoutcode=fr keyboard-configuration/variantcode=oss
  ProcVersionSignature: Ubuntu 5.2.0-10.11-generic 5.2.4
  RelatedPackageVersions:
   linux-restricted-modules-5.2.0-10-generic N/A
   linux-backports-modules-5.2.0-10-generic  N/A
   linux-firmware                            1.181
  RfKill:

  Tags:  eoan
  Uname: Linux 5.2.0-10-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  _MarkForUpload: True
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: 1.12.0-1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-disco
  dmi.modalias: 
dmi:bvnSeaBIOS:bvr1.12.0-1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-disco:cvnQEMU:ct1:cvrpc-i440fx-disco:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-disco
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1840122/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to