Comment 17 for bug 1837214

Revision history for this message
Paride Legovini (paride) wrote :

Well, while from the subiquity user interface the behavior is the same as before, the logs show a different error now:

An error occured handling 'partition-vda2': RuntimeError - Cannot find previous partition on disk /dev/vda
finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring partition: partition-vda2
TIMED BLOCK_META: 2.069
finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta
Traceback (most recent call last):
  File "/snap/subiquity/1691/lib/python3.6/site-packages/curtin/commands/main.py", line 202, in main
    ret = args.func(args)
  File "/snap/subiquity/1691/lib/python3.6/site-packages/curtin/log.py", line 97, in wrapper
    return log_time("TIMED %s: " % msg, func, *args, **kwargs)
  File "/snap/subiquity/1691/lib/python3.6/site-packages/curtin/log.py", line 79, in log_time
    return func(*args, **kwargs)
  File "/snap/subiquity/1691/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 102, in block_meta
    return meta_custom(args)
  File "/snap/subiquity/1691/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 1806, in meta_custom
    handler(command, storage_config_dict)
  File "/snap/subiquity/1691/lib/python3.6/site-packages/curtin/commands/block_meta.py", line 730, in partition_handler
    'Cannot find previous partition on disk %s' % disk)
RuntimeError: Cannot find previous partition on disk /dev/vda
Cannot find previous partition on disk /dev/vda
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'simple']
Exit code: 3

Before it was mkfs.ext4 refusing to make a filesystem in a partition currently in use, because still part of the to-be-deleted VG.

It is still not possible to delete a VG and create a new one named as the deleted one (e.g. vg0). This is exactly as before.