curtin: Installation started. (18.2) start: cmd-install/stage-partitioning/builtin/cmd-block-meta: curtin command block-meta get_path_to_storage_volume for volume disk-0 Processing serial VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 via udev to VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.048 devsync happy - path /dev/sda now exists return volume path /dev/sda get_path_to_storage_volume for volume disk-1 Processing serial VBOX_HARDDISK_VBe7b2493f-fa205d46 via udev to VBOX_HARDDISK_VBe7b2493f-fa205d46 devsync for /dev/sdb Running command ['partprobe', '/dev/sdb'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.033 devsync happy - path /dev/sdb now exists return volume path /dev/sdb Declared block devices: ['/dev/sda', '/dev/sdb'] start: cmd-install/stage-partitioning/builtin/cmd-block-meta/clear-holders: removing previous storage devices Running command ['mdadm', '--assemble', '--scan', '-v'] with allowed return codes [0, 1, 2] (capture=True) mdadm assemble scan results: mdadm: looking for devices for further assembly mdadm: no recogniseable superblock on /dev/sdb mdadm: no recogniseable superblock on /dev/sda mdadm: no recogniseable superblock on /dev/sr0 mdadm: no recogniseable superblock on /dev/loop6 mdadm: no recogniseable superblock on /dev/loop5 mdadm: no recogniseable superblock on /dev/loop4 mdadm: no recogniseable superblock on /dev/loop3 mdadm: no recogniseable superblock on /dev/loop2 mdadm: no recogniseable superblock on /dev/loop1 mdadm: no recogniseable superblock on /dev/loop0 mdadm: No arrays found in config file or automatically Running command ['mdadm', '--detail', '--scan', '-v'] with allowed return codes [0, 1] (capture=True) mdadm detail scan after assemble: Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.008 Running command ['pvscan', '--cache'] with allowed return codes [0] (capture=True) Running command ['vgscan', '--mknodes', '--cache'] with allowed return codes [0] (capture=True) Running command ['vgchange', '--activate=y'] with allowed return codes [0] (capture=True) Loading kernel module bcache via modprobe Running command ['modprobe', '--use-blacklist', 'bcache'] with allowed return codes [0] (capture=False) Loading kernel module zfs via modprobe Running command ['modprobe', '--use-blacklist', 'zfs'] with allowed return codes [0] (capture=False) zfs filesystem is not supported in this environment devname '/sys/class/block/sda' had holders: [] devname '/sys/class/block/sdb' had holders: [] Current device storage tree: sda sdb Shutdown Plan: {'level': 0, 'device': '/sys/class/block/sda', 'dev_type': 'disk'} {'level': 0, 'device': '/sys/class/block/sdb', 'dev_type': 'disk'} shutdown running on holder type: 'disk' syspath: '/sys/class/block/sda' Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID', '/dev/sda'] with allowed return codes [0] (capture=True) get_blockdev_sector_size: info: { "sda": { "ALIGNMENT": "0", "DISC-ALN": "0", "DISC-GRAN": "0", "DISC-MAX": "0", "DISC-ZERO": "0", "FSTYPE": "", "GROUP": "disk", "KNAME": "sda", "LABEL": "", "LOG-SEC": "512", "MAJ:MIN": "8:0", "MIN-IO": "512", "MODE": "brw-rw----", "MODEL": "VBOX HARDDISK ", "MOUNTPOINT": "", "NAME": "sda", "OPT-IO": "0", "OWNER": "root", "PHY-SEC": "512", "RM": "0", "RO": "0", "ROTA": "1", "RQ-SIZE": "128", "SIZE": "10737418240", "STATE": "running", "TYPE": "disk", "UUID": "", "device_path": "/dev/sda" } } Checking if /dev/sda is a swap device Found swap magic: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' wiping superblock on /dev/sda wiping /dev/sda attempt 1/4 wiping 1M on /dev/sda at offsets [0, -1048576] successfully wiped device /dev/sda on attempt 1/4 shutdown running on holder type: 'disk' syspath: '/sys/class/block/sdb' Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID', '/dev/sdb'] with allowed return codes [0] (capture=True) get_blockdev_sector_size: info: { "sdb": { "ALIGNMENT": "0", "DISC-ALN": "0", "DISC-GRAN": "0", "DISC-MAX": "0", "DISC-ZERO": "0", "FSTYPE": "", "GROUP": "disk", "KNAME": "sdb", "LABEL": "", "LOG-SEC": "512", "MAJ:MIN": "8:16", "MIN-IO": "512", "MODE": "brw-rw----", "MODEL": "VBOX HARDDISK ", "MOUNTPOINT": "", "NAME": "sdb", "OPT-IO": "0", "OWNER": "root", "PHY-SEC": "512", "RM": "0", "RO": "0", "ROTA": "1", "RQ-SIZE": "128", "SIZE": "10737418240", "STATE": "running", "TYPE": "disk", "UUID": "", "device_path": "/dev/sdb" } } Checking if /dev/sdb is a swap device Found swap magic: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' wiping superblock on /dev/sdb wiping /dev/sdb attempt 1/4 wiping 1M on /dev/sdb at offsets [0, -1048576] successfully wiped device /dev/sdb on attempt 1/4 devname '/sys/class/block/sda' had holders: [] devname '/sys/class/block/sdb' had holders: [] finish: cmd-install/stage-partitioning/builtin/cmd-block-meta/clear-holders: SUCCESS: removing previous storage devices blockmeta: detected storage config, using mode=custom start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring disk: disk-0 get_path_to_storage_volume for volume disk-0 Processing serial VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 via udev to VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.046 devsync happy - path /dev/sda now exists return volume path /dev/sda wiping 1M on /dev/sda at offsets [0, -1048576] labeling device: '/dev/sda' with 'gpt' partition table wiping 1M on /dev/sda at offsets [0, -1048576] devname '/dev/sda' had holders: [] finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring disk: disk-0 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring disk: disk-1 get_path_to_storage_volume for volume disk-1 Processing serial VBOX_HARDDISK_VBe7b2493f-fa205d46 via udev to VBOX_HARDDISK_VBe7b2493f-fa205d46 devsync for /dev/sdb Running command ['partprobe', '/dev/sdb'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.026 devsync happy - path /dev/sdb now exists return volume path /dev/sdb wiping 1M on /dev/sdb at offsets [0, -1048576] labeling device: '/dev/sdb' with 'gpt' partition table wiping 1M on /dev/sdb at offsets [0, -1048576] devname '/dev/sdb' had holders: [] finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring disk: disk-1 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring partition: part-0 get_path_to_storage_volume for volume disk-0 Processing serial VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 via udev to VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.054 devsync happy - path /dev/sda now exists return volume path /dev/sda partition 'number' key not set in config: { "device": "disk-0", "flag": "bios_grub", "id": "part-0", "preserve": false, "size": 1048576, "type": "partition" } sda logical_block_size_bytes: 512 adding partition 'part-0' to disk 'disk-0' (ptable: 'gpt') partnum: 1 offset_sectors: 2048 length_sectors: 2047 Running command ['sgdisk', '--new', '1:2048:4095', '--typecode=1:ef02', '/dev/sda'] with allowed return codes [0] (capture=True) finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring partition: part-0 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring partition: part-1 get_path_to_storage_volume for volume disk-0 Processing serial VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 via udev to VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.046 devsync happy - path /dev/sda now exists return volume path /dev/sda partition 'number' key not set in config: { "device": "disk-0", "flag": "", "id": "part-1", "preserve": false, "size": 1073741824, "type": "partition" } sda logical_block_size_bytes: 512 partition 'number' key not set in config: { "device": "disk-0", "flag": "bios_grub", "id": "part-0", "preserve": false, "size": 1048576, "type": "partition" } previous partition number for 'part-1' found to be '1' previous partition: /sys/class/block/sda/sda1 previous partition.size_sectors: 2048 previous partition.start_sectors: 2048 adding partition 'part-1' to disk 'disk-0' (ptable: 'gpt') partnum: 2 offset_sectors: 4096 length_sectors: 2097151 Running command ['sgdisk', '--new', '2:4096:2101247', '--typecode=2:8300', '/dev/sda'] with allowed return codes [0] (capture=True) finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring partition: part-1 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring partition: part-2 get_path_to_storage_volume for volume disk-0 Processing serial VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 via udev to VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.107 devsync happy - path /dev/sda now exists return volume path /dev/sda partition 'number' key not set in config: { "device": "disk-0", "flag": "", "id": "part-2", "preserve": false, "size": 9660530688, "type": "partition" } sda logical_block_size_bytes: 512 partition 'number' key not set in config: { "device": "disk-0", "flag": "bios_grub", "id": "part-0", "preserve": false, "size": 1048576, "type": "partition" } partition 'number' key not set in config: { "device": "disk-0", "flag": "", "id": "part-1", "preserve": false, "size": 1073741824, "type": "partition" } previous partition number for 'part-2' found to be '2' previous partition: /sys/class/block/sda/sda2 previous partition.size_sectors: 2097152 previous partition.start_sectors: 4096 adding partition 'part-2' to disk 'disk-0' (ptable: 'gpt') partnum: 3 offset_sectors: 2101248 length_sectors: 18868223 Running command ['sgdisk', '--new', '3:2101248:20969471', '--typecode=3:8300', '/dev/sda'] with allowed return codes [0] (capture=True) finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring partition: part-2 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring partition: part-3 get_path_to_storage_volume for volume disk-1 Processing serial VBOX_HARDDISK_VBe7b2493f-fa205d46 via udev to VBOX_HARDDISK_VBe7b2493f-fa205d46 devsync for /dev/sdb Running command ['partprobe', '/dev/sdb'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.034 devsync happy - path /dev/sdb now exists return volume path /dev/sdb partition 'number' key not set in config: { "device": "disk-1", "flag": "", "id": "part-3", "preserve": false, "size": 9663676416, "type": "partition" } sdb logical_block_size_bytes: 512 adding partition 'part-3' to disk 'disk-1' (ptable: 'gpt') partnum: 1 offset_sectors: 2048 length_sectors: 18874367 Running command ['sgdisk', '--new', '1:2048:18876415', '--typecode=1:8300', '/dev/sdb'] with allowed return codes [0] (capture=True) finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring partition: part-3 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring raid: raid-0 raid: cfg: { "devices": [ "part-3", "part-2" ], "id": "raid-0", "name": "md0", "raidlevel": 1, "spare_devices": [], "type": "raid" } get_path_to_storage_volume for volume part-3 partition 'number' key not set in config: { "device": "disk-1", "flag": "", "id": "part-3", "preserve": false, "size": 9663676416, "type": "partition" } get_path_to_storage_volume for volume disk-1 Processing serial VBOX_HARDDISK_VBe7b2493f-fa205d46 via udev to VBOX_HARDDISK_VBe7b2493f-fa205d46 devsync for /dev/sdb Running command ['partprobe', '/dev/sdb'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.076 devsync happy - path /dev/sdb now exists return volume path /dev/sdb devsync for /dev/sdb Running command ['partprobe', '/dev/sdb'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.062 devsync happy - path /dev/sdb now exists return volume path /dev/sdb1 get_path_to_storage_volume for volume part-2 partition 'number' key not set in config: { "device": "disk-0", "flag": "", "id": "part-2", "preserve": false, "size": 9660530688, "type": "partition" } get_path_to_storage_volume for volume disk-0 Processing serial VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 via udev to VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.102 devsync happy - path /dev/sda now exists return volume path /dev/sda devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.107 devsync happy - path /dev/sda now exists return volume path /dev/sda3 raid: device path mapping: mdadm_create: md_name=/dev/md0 raidlevel=1 devices=['/dev/sdb1', '/dev/sda3'] spares=[] name= Running command ['hostname', '-s'] with allowed return codes [0] (capture=True) devname '/dev/sdb1' had holders: [] Running command ['mdadm', '--zero-superblock', '/dev/sdb1'] with allowed return codes [0] (capture=True) devname '/dev/sda3' had holders: [] Running command ['mdadm', '--zero-superblock', '/dev/sda3'] with allowed return codes [0] (capture=True) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.046 Running command ['udevadm', 'control', '--stop-exec-queue'] with allowed return codes [0] (capture=False) Running command ['mdadm', '--create', '/dev/md0', '--run', '--homehost=ubuntu-server', '--level=1', '--raid-devices=2', '/dev/sdb1', '/dev/sda3'] with allowed return codes [0] (capture=True) Running command ['udevadm', 'control', '--start-exec-queue'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(exists='/dev/md0'): 0.000 get_path_to_storage_volume for volume raid-0 devsync for /dev/md0 Running command ['partprobe', '/dev/md0'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.042 devsync happy - path /dev/md0 now exists return volume path /dev/md0 Running command ['mdadm', '--query', '--detail', '--export', '/dev/md0'] with allowed return codes [0] (capture=True) Creating dname udev rule '['SUBSYSTEM=="block"', 'ACTION=="add|change"', 'ENV{MD_UUID}=="6ea4b9a4:28f4babf:a4465431:debf4837"', 'SYMLINK+="disk/by-dname/md0"\n']' Running command ['mdadm', '--detail', '--scan'] with allowed return codes [0] (capture=True) finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring raid: raid-0 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring lvm_volgroup: vg-0 get_path_to_storage_volume for volume raid-0 devsync for /dev/md0 Running command ['partprobe', '/dev/md0'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.056 devsync happy - path /dev/md0 now exists return volume path /dev/md0 Running command ['vgcreate', '--force', '--zero=y', '--yes', 'vg0', '/dev/md0'] with allowed return codes [0] (capture=True) Running command ['pvscan', '--cache'] with allowed return codes [0] (capture=True) Running command ['vgscan', '--mknodes', '--cache'] with allowed return codes [0] (capture=True) finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring lvm_volgroup: vg-0 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring lvm_partition: lv-0 Running command ['lvcreate', 'vg0', '--name', 'lvswap', '--zero=y', '--wipesignatures=y', '--size', '1073741824b'] with allowed return codes [0] (capture=False) Logical volume "lvswap" created. Running command ['pvscan', '--cache'] with allowed return codes [0] (capture=True) Running command ['vgscan', '--mknodes', '--cache'] with allowed return codes [0] (capture=True) get_path_to_storage_volume for volume lv-0 devsync for /dev/vg0/lvswap Running command ['partprobe', '/dev/vg0/lvswap'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.028 devsync happy - path /dev/vg0/lvswap now exists return volume path /dev/vg0/lvswap Creating dname udev rule '['SUBSYSTEM=="block"', 'ACTION=="add|change"', 'ENV{DM_NAME}=="vg0-lvswap"', 'SYMLINK+="disk/by-dname/vg0-lvswap"\n']' finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring lvm_partition: lv-0 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring lvm_partition: lv-1 Running command ['lvcreate', 'vg0', '--name', 'lvroot', '--zero=y', '--wipesignatures=y', '--size', '8577351680b'] with allowed return codes [0] (capture=False) Volume group "vg0" has insufficient free space (2044 extents): 2045 required. An error occured handling 'lv-1': ProcessExecutionError - Unexpected error while running command. Command: ['lvcreate', 'vg0', '--name', 'lvroot', '--zero=y', '--wipesignatures=y', '--size', '8577351680b'] Exit code: 5 Reason: - Stdout: '' Stderr: '' finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring lvm_partition: lv-1 TIMED BLOCK_META: 11.291 finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta Traceback (most recent call last): File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/commands/main.py", line 201, in main ret = args.func(args) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/log.py", line 97, in wrapper return log_time("TIMED %s: " % msg, func, *args, **kwargs) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/log.py", line 79, in log_time return func(*args, **kwargs) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 83, in block_meta return meta_custom(args) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 1601, in meta_custom handler(command, storage_config_dict) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 967, in lvm_partition_handler util.subp(cmd) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/util.py", line 266, in subp return _subp(*args, **kwargs) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/util.py", line 132, in _subp cmd=args) curtin.util.ProcessExecutionError: Unexpected error while running command. Command: ['lvcreate', 'vg0', '--name', 'lvroot', '--zero=y', '--wipesignatures=y', '--size', '8577351680b'] Exit code: 5 Reason: - Stdout: '' Stderr: '' Unexpected error while running command. Command: ['lvcreate', 'vg0', '--name', 'lvroot', '--zero=y', '--wipesignatures=y', '--size', '8577351680b'] Exit code: 5 Reason: - Stdout: '' Stderr: '' curtin: Installation failed with exception: Unexpected error while running command. Command: ['curtin', 'block-meta', 'simple'] Exit code: 3 Reason: - Stdout: start: cmd-install/stage-partitioning/builtin/cmd-block-meta: curtin command block-meta get_path_to_storage_volume for volume disk-0 Processing serial VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 via udev to VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.048 devsync happy - path /dev/sda now exists return volume path /dev/sda get_path_to_storage_volume for volume disk-1 Processing serial VBOX_HARDDISK_VBe7b2493f-fa205d46 via udev to VBOX_HARDDISK_VBe7b2493f-fa205d46 devsync for /dev/sdb Running command ['partprobe', '/dev/sdb'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.033 devsync happy - path /dev/sdb now exists return volume path /dev/sdb Declared block devices: ['/dev/sda', '/dev/sdb'] start: cmd-install/stage-partitioning/builtin/cmd-block-meta/clear-holders: removing previous storage devices Running command ['mdadm', '--assemble', '--scan', '-v'] with allowed return codes [0, 1, 2] (capture=True) mdadm assemble scan results: mdadm: looking for devices for further assembly mdadm: no recogniseable superblock on /dev/sdb mdadm: no recogniseable superblock on /dev/sda mdadm: no recogniseable superblock on /dev/sr0 mdadm: no recogniseable superblock on /dev/loop6 mdadm: no recogniseable superblock on /dev/loop5 mdadm: no recogniseable superblock on /dev/loop4 mdadm: no recogniseable superblock on /dev/loop3 mdadm: no recogniseable superblock on /dev/loop2 mdadm: no recogniseable superblock on /dev/loop1 mdadm: no recogniseable superblock on /dev/loop0 mdadm: No arrays found in config file or automatically Running command ['mdadm', '--detail', '--scan', '-v'] with allowed return codes [0, 1] (capture=True) mdadm detail scan after assemble: Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.008 Running command ['pvscan', '--cache'] with allowed return codes [0] (capture=True) Running command ['vgscan', '--mknodes', '--cache'] with allowed return codes [0] (capture=True) Running command ['vgchange', '--activate=y'] with allowed return codes [0] (capture=True) Loading kernel module bcache via modprobe Running command ['modprobe', '--use-blacklist', 'bcache'] with allowed return codes [0] (capture=False) Loading kernel module zfs via modprobe Running command ['modprobe', '--use-blacklist', 'zfs'] with allowed return codes [0] (capture=False) zfs filesystem is not supported in this environment devname '/sys/class/block/sda' had holders: [] devname '/sys/class/block/sdb' had holders: [] Current device storage tree: sda sdb Shutdown Plan: {'level': 0, 'device': '/sys/class/block/sda', 'dev_type': 'disk'} {'level': 0, 'device': '/sys/class/block/sdb', 'dev_type': 'disk'} shutdown running on holder type: 'disk' syspath: '/sys/class/block/sda' Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID', '/dev/sda'] with allowed return codes [0] (capture=True) get_blockdev_sector_size: info: { "sda": { "ALIGNMENT": "0", "DISC-ALN": "0", "DISC-GRAN": "0", "DISC-MAX": "0", "DISC-ZERO": "0", "FSTYPE": "", "GROUP": "disk", "KNAME": "sda", "LABEL": "", "LOG-SEC": "512", "MAJ:MIN": "8:0", "MIN-IO": "512", "MODE": "brw-rw----", "MODEL": "VBOX HARDDISK ", "MOUNTPOINT": "", "NAME": "sda", "OPT-IO": "0", "OWNER": "root", "PHY-SEC": "512", "RM": "0", "RO": "0", "ROTA": "1", "RQ-SIZE": "128", "SIZE": "10737418240", "STATE": "running", "TYPE": "disk", "UUID": "", "device_path": "/dev/sda" } } Checking if /dev/sda is a swap device Found swap magic: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' wiping superblock on /dev/sda wiping /dev/sda attempt 1/4 wiping 1M on /dev/sda at offsets [0, -1048576] successfully wiped device /dev/sda on attempt 1/4 shutdown running on holder type: 'disk' syspath: '/sys/class/block/sdb' Running command ['lsblk', '--noheadings', '--bytes', '--pairs', '--output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-SIZE,SIZE,STATE,TYPE,UUID', '/dev/sdb'] with allowed return codes [0] (capture=True) get_blockdev_sector_size: info: { "sdb": { "ALIGNMENT": "0", "DISC-ALN": "0", "DISC-GRAN": "0", "DISC-MAX": "0", "DISC-ZERO": "0", "FSTYPE": "", "GROUP": "disk", "KNAME": "sdb", "LABEL": "", "LOG-SEC": "512", "MAJ:MIN": "8:16", "MIN-IO": "512", "MODE": "brw-rw----", "MODEL": "VBOX HARDDISK ", "MOUNTPOINT": "", "NAME": "sdb", "OPT-IO": "0", "OWNER": "root", "PHY-SEC": "512", "RM": "0", "RO": "0", "ROTA": "1", "RQ-SIZE": "128", "SIZE": "10737418240", "STATE": "running", "TYPE": "disk", "UUID": "", "device_path": "/dev/sdb" } } Checking if /dev/sdb is a swap device Found swap magic: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' wiping superblock on /dev/sdb wiping /dev/sdb attempt 1/4 wiping 1M on /dev/sdb at offsets [0, -1048576] successfully wiped device /dev/sdb on attempt 1/4 devname '/sys/class/block/sda' had holders: [] devname '/sys/class/block/sdb' had holders: [] finish: cmd-install/stage-partitioning/builtin/cmd-block-meta/clear-holders: SUCCESS: removing previous storage devices blockmeta: detected storage config, using mode=custom start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring disk: disk-0 get_path_to_storage_volume for volume disk-0 Processing serial VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 via udev to VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.046 devsync happy - path /dev/sda now exists return volume path /dev/sda wiping 1M on /dev/sda at offsets [0, -1048576] labeling device: '/dev/sda' with 'gpt' partition table wiping 1M on /dev/sda at offsets [0, -1048576] devname '/dev/sda' had holders: [] finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring disk: disk-0 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring disk: disk-1 get_path_to_storage_volume for volume disk-1 Processing serial VBOX_HARDDISK_VBe7b2493f-fa205d46 via udev to VBOX_HARDDISK_VBe7b2493f-fa205d46 devsync for /dev/sdb Running command ['partprobe', '/dev/sdb'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.026 devsync happy - path /dev/sdb now exists return volume path /dev/sdb wiping 1M on /dev/sdb at offsets [0, -1048576] labeling device: '/dev/sdb' with 'gpt' partition table wiping 1M on /dev/sdb at offsets [0, -1048576] devname '/dev/sdb' had holders: [] finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring disk: disk-1 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring partition: part-0 get_path_to_storage_volume for volume disk-0 Processing serial VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 via udev to VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.054 devsync happy - path /dev/sda now exists return volume path /dev/sda partition 'number' key not set in config: { "device": "disk-0", "flag": "bios_grub", "id": "part-0", "preserve": false, "size": 1048576, "type": "partition" } sda logical_block_size_bytes: 512 adding partition 'part-0' to disk 'disk-0' (ptable: 'gpt') partnum: 1 offset_sectors: 2048 length_sectors: 2047 Running command ['sgdisk', '--new', '1:2048:4095', '--typecode=1:ef02', '/dev/sda'] with allowed return codes [0] (capture=True) finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring partition: part-0 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring partition: part-1 get_path_to_storage_volume for volume disk-0 Processing serial VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 via udev to VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.046 devsync happy - path /dev/sda now exists return volume path /dev/sda partition 'number' key not set in config: { "device": "disk-0", "flag": "", "id": "part-1", "preserve": false, "size": 1073741824, "type": "partition" } sda logical_block_size_bytes: 512 partition 'number' key not set in config: { "device": "disk-0", "flag": "bios_grub", "id": "part-0", "preserve": false, "size": 1048576, "type": "partition" } previous partition number for 'part-1' found to be '1' previous partition: /sys/class/block/sda/sda1 previous partition.size_sectors: 2048 previous partition.start_sectors: 2048 adding partition 'part-1' to disk 'disk-0' (ptable: 'gpt') partnum: 2 offset_sectors: 4096 length_sectors: 2097151 Running command ['sgdisk', '--new', '2:4096:2101247', '--typecode=2:8300', '/dev/sda'] with allowed return codes [0] (capture=True) finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring partition: part-1 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring partition: part-2 get_path_to_storage_volume for volume disk-0 Processing serial VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 via udev to VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.107 devsync happy - path /dev/sda now exists return volume path /dev/sda partition 'number' key not set in config: { "device": "disk-0", "flag": "", "id": "part-2", "preserve": false, "size": 9660530688, "type": "partition" } sda logical_block_size_bytes: 512 partition 'number' key not set in config: { "device": "disk-0", "flag": "bios_grub", "id": "part-0", "preserve": false, "size": 1048576, "type": "partition" } partition 'number' key not set in config: { "device": "disk-0", "flag": "", "id": "part-1", "preserve": false, "size": 1073741824, "type": "partition" } previous partition number for 'part-2' found to be '2' previous partition: /sys/class/block/sda/sda2 previous partition.size_sectors: 2097152 previous partition.start_sectors: 4096 adding partition 'part-2' to disk 'disk-0' (ptable: 'gpt') partnum: 3 offset_sectors: 2101248 length_sectors: 18868223 Running command ['sgdisk', '--new', '3:2101248:20969471', '--typecode=3:8300', '/dev/sda'] with allowed return codes [0] (capture=True) finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring partition: part-2 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring partition: part-3 get_path_to_storage_volume for volume disk-1 Processing serial VBOX_HARDDISK_VBe7b2493f-fa205d46 via udev to VBOX_HARDDISK_VBe7b2493f-fa205d46 devsync for /dev/sdb Running command ['partprobe', '/dev/sdb'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.034 devsync happy - path /dev/sdb now exists return volume path /dev/sdb partition 'number' key not set in config: { "device": "disk-1", "flag": "", "id": "part-3", "preserve": false, "size": 9663676416, "type": "partition" } sdb logical_block_size_bytes: 512 adding partition 'part-3' to disk 'disk-1' (ptable: 'gpt') partnum: 1 offset_sectors: 2048 length_sectors: 18874367 Running command ['sgdisk', '--new', '1:2048:18876415', '--typecode=1:8300', '/dev/sdb'] with allowed return codes [0] (capture=True) finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring partition: part-3 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring raid: raid-0 raid: cfg: { "devices": [ "part-3", "part-2" ], "id": "raid-0", "name": "md0", "raidlevel": 1, "spare_devices": [], "type": "raid" } get_path_to_storage_volume for volume part-3 partition 'number' key not set in config: { "device": "disk-1", "flag": "", "id": "part-3", "preserve": false, "size": 9663676416, "type": "partition" } get_path_to_storage_volume for volume disk-1 Processing serial VBOX_HARDDISK_VBe7b2493f-fa205d46 via udev to VBOX_HARDDISK_VBe7b2493f-fa205d46 devsync for /dev/sdb Running command ['partprobe', '/dev/sdb'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.076 devsync happy - path /dev/sdb now exists return volume path /dev/sdb devsync for /dev/sdb Running command ['partprobe', '/dev/sdb'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.062 devsync happy - path /dev/sdb now exists return volume path /dev/sdb1 get_path_to_storage_volume for volume part-2 partition 'number' key not set in config: { "device": "disk-0", "flag": "", "id": "part-2", "preserve": false, "size": 9660530688, "type": "partition" } get_path_to_storage_volume for volume disk-0 Processing serial VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 via udev to VBOX_HARDDISK_VBbaa7648f-3a7cd9e2 devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.102 devsync happy - path /dev/sda now exists return volume path /dev/sda devsync for /dev/sda Running command ['partprobe', '/dev/sda'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.107 devsync happy - path /dev/sda now exists return volume path /dev/sda3 raid: device path mapping: mdadm_create: md_name=/dev/md0 raidlevel=1 devices=['/dev/sdb1', '/dev/sda3'] spares=[] name= Running command ['hostname', '-s'] with allowed return codes [0] (capture=True) devname '/dev/sdb1' had holders: [] Running command ['mdadm', '--zero-superblock', '/dev/sdb1'] with allowed return codes [0] (capture=True) devname '/dev/sda3' had holders: [] Running command ['mdadm', '--zero-superblock', '/dev/sda3'] with allowed return codes [0] (capture=True) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.046 Running command ['udevadm', 'control', '--stop-exec-queue'] with allowed return codes [0] (capture=False) Running command ['mdadm', '--create', '/dev/md0', '--run', '--homehost=ubuntu-server', '--level=1', '--raid-devices=2', '/dev/sdb1', '/dev/sda3'] with allowed return codes [0] (capture=True) Running command ['udevadm', 'control', '--start-exec-queue'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(exists='/dev/md0'): 0.000 get_path_to_storage_volume for volume raid-0 devsync for /dev/md0 Running command ['partprobe', '/dev/md0'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.042 devsync happy - path /dev/md0 now exists return volume path /dev/md0 Running command ['mdadm', '--query', '--detail', '--export', '/dev/md0'] with allowed return codes [0] (capture=True) Creating dname udev rule '['SUBSYSTEM=="block"', 'ACTION=="add|change"', 'ENV{MD_UUID}=="6ea4b9a4:28f4babf:a4465431:debf4837"', 'SYMLINK+="disk/by-dname/md0"\n']' Running command ['mdadm', '--detail', '--scan'] with allowed return codes [0] (capture=True) finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring raid: raid-0 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring lvm_volgroup: vg-0 get_path_to_storage_volume for volume raid-0 devsync for /dev/md0 Running command ['partprobe', '/dev/md0'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.056 devsync happy - path /dev/md0 now exists return volume path /dev/md0 Running command ['vgcreate', '--force', '--zero=y', '--yes', 'vg0', '/dev/md0'] with allowed return codes [0] (capture=True) Running command ['pvscan', '--cache'] with allowed return codes [0] (capture=True) Running command ['vgscan', '--mknodes', '--cache'] with allowed return codes [0] (capture=True) finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring lvm_volgroup: vg-0 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring lvm_partition: lv-0 Running command ['lvcreate', 'vg0', '--name', 'lvswap', '--zero=y', '--wipesignatures=y', '--size', '1073741824b'] with allowed return codes [0] (capture=False) Logical volume "lvswap" created. Running command ['pvscan', '--cache'] with allowed return codes [0] (capture=True) Running command ['vgscan', '--mknodes', '--cache'] with allowed return codes [0] (capture=True) get_path_to_storage_volume for volume lv-0 devsync for /dev/vg0/lvswap Running command ['partprobe', '/dev/vg0/lvswap'] with allowed return codes [0, 1] (capture=False) Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.028 devsync happy - path /dev/vg0/lvswap now exists return volume path /dev/vg0/lvswap Creating dname udev rule '['SUBSYSTEM=="block"', 'ACTION=="add|change"', 'ENV{DM_NAME}=="vg0-lvswap"', 'SYMLINK+="disk/by-dname/vg0-lvswap"\n']' finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: SUCCESS: configuring lvm_partition: lv-0 start: cmd-install/stage-partitioning/builtin/cmd-block-meta: configuring lvm_partition: lv-1 Running command ['lvcreate', 'vg0', '--name', 'lvroot', '--zero=y', '--wipesignatures=y', '--size', '8577351680b'] with allowed return codes [0] (capture=False) Volume group "vg0" has insufficient free space (2044 extents): 2045 required. An error occured handling 'lv-1': ProcessExecutionError - Unexpected error while running command. Command: ['lvcreate', 'vg0', '--name', 'lvroot', '--zero=y', '--wipesignatures=y', '--size', '8577351680b'] Exit code: 5 Reason: - Stdout: '' Stderr: '' finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring lvm_partition: lv-1 TIMED BLOCK_META: 11.291 finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta Traceback (most recent call last): File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/commands/main.py", line 201, in main ret = args.func(args) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/log.py", line 97, in wrapper return log_time("TIMED %s: " % msg, func, *args, **kwargs) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/log.py", line 79, in log_time return func(*args, **kwargs) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 83, in block_meta return meta_custom(args) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 1601, in meta_custom handler(command, storage_config_dict) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 967, in lvm_partition_handler util.subp(cmd) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/util.py", line 266, in subp return _subp(*args, **kwargs) File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/util.py", line 132, in _subp cmd=args) curtin.util.ProcessExecutionError: Unexpected error while running command. Command: ['lvcreate', 'vg0', '--name', 'lvroot', '--zero=y', '--wipesignatures=y', '--size', '8577351680b'] Exit code: 5 Reason: - Stdout: '' Stderr: '' Unexpected error while running command. Command: ['lvcreate', 'vg0', '--name', 'lvroot', '--zero=y', '--wipesignatures=y', '--size', '8577351680b'] Exit code: 5 Reason: - Stdout: '' Stderr: '' Stderr: ''