Public bug reported: Installing 20.04 from ISO on an IBM Power8 (modoc from Power MAAS) failed when multiple copies of this same image are available on local disk (*not* optical drives nor virtual CDROMs, as this machine does not have support for vmedia).
Machine configuration: - /dev/sda will be the installation target; - /dev/sdb will be the installation source (ISO dd'ed on disk); - /dev/sdc is an extra ISO "forgotten" by the user (ISO dd'ed on disk); Procedures: - Machine deployed with bionic from MAAS; - Boot the machine, download (http://cdimage.ubuntu.com/ubuntu-server/daily-live/20200402/focal-live-server-ppc64el.iso ), copy it to both /dev/sdb and /dev/sdc (dd if=focal-live-server-ppc64el.iso of=/dev/sdb); - From another host, connect into the machine's console using "ipmitool sol activate"; - Reboot machine. On petitboot, select /dev/sdb as the boot device; - Run installer from SoL console, install on /dev/sda with the default options; - subiquity will crash in the hostname/user configuration screen (when it is running disk-relaeed tasks in background). Stack trace for this failure: sdc logical_block_size_bytes: 512 Verifying /dev/sdc1 exists Verifying /dev/sdc1 size, expecting 980123648 bytes, found 1024 bytes An error occured handling 'partition-sdc1': RuntimeError - Verifying /dev/sdc1 size, expecting 980123648 bytes, found 1024 bytes finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring partition: partition-sdc1 TIMED BLOCK_META: 4.679 finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta Traceback (most recent call last): File "/snap/subiquity/1617/lib/python3.6/site-packages/curtin/commands/main.py", line 202, in main ret = args.func(args) File "/snap/subiquity/1617/lib/python3.6/site-packages/curtin/log.py", line 97, in wrapper return log_time("TIMED %s: " % msg, func, *args, **kwargs) File "/snap/subiquity/1617/lib/python3.6/site-packages/curtin/log.py", line 79, in log_time return func(*args, **kwargs) File "/snap/subiquity/1617/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 100, in block_meta return meta_custom(args) File "/snap/subiquity/1617/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 1796, in meta_custom handler(command, storage_config_dict) File "/snap/subiquity/1617/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 782, in partition_handler partition_verify(part_path, info) File "/snap/subiquity/1617/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 671, in partition_verify verify_size(devpath, int(util.human2bytes(info['size']))) File "/snap/subiquity/1617/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 645, in verify_size raise RuntimeError(msg) RuntimeError: Verifying /dev/sdc1 size, expecting 980123648 bytes, found 1024 bytes Verifying /dev/sdc1 size, expecting 980123648 bytes, found 1024 bytes Installation worked when I zeroed /dev/sdc (with "dd if=/dev/zero of=/dev/sdc bs=1M count=50") and repeated the process. Repeating these two procedures a few times, I noticed the installation with another ISO (apart from the one used as source for the install) seems to fail consistently. Maybe it is not a problem, I'm not sure if subiquity is intended to support this kind of installation procedure when machine does not have support for virtual media. On the stack trace, the size of 1024 bytes makes sense if the installer is reading /dev/sd[bc]1 instead of /dev/sd[bc]2: verify_size (from https://github.com/CanonicalLtd/curtin/blob/master/curtin/commands/block_meta.py#L645 ) calls read_sys_block_size_bytes (from https://github.com/CanonicalLtd/curtin/blob/638c9a7849222575dacde5e43d1201bb4e0db1d1/curtin/block/__init__.py#L699 ). Value read from /sys/class/block/sdb1/size is "2", so 1024 bytes. Crash reports from several attempts attached. ** Affects: subiquity (Ubuntu) Importance: Undecided Status: New ** Attachment added: "1586201114.498370886.install_fail.crash" https://bugs.launchpad.net/bugs/1871832/+attachment/5350234/+files/1586201114.498370886.install_fail.crash -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1871832 Title: Installer crashed with multiple ISO images on system's disks To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1871832/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs