Comment 0 for bug 1641661

Revision history for this message
Ruslan Lutsenko (ruslan-lutcenko) wrote :

It seem curtin has problem with software RAID partitioning: md*
Trying to deploy node in MAAS Version 2.0.0+bzr5189-0ubuntu1 (16.04.1).
During partitioning stage curtin returns following error:

An error occured handling 'md0-part1': OSError - could not get path to dev from kname: md01
finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: failed: configuring partition: md0-part1
finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: failed: curtin command block-meta
Traceback (most recent call last):
  File "/curtin/curtin/commands/main.py", line 211, in main
    ret = args.func(args)
  File "/curtin/curtin/commands/block_meta.py", line 62, in block_meta
    meta_custom(args)
  File "/curtin/curtin/commands/block_meta.py", line 1041, in meta_custom
    handler(command, storage_config_dict)
  File "/curtin/curtin/commands/block_meta.py", line 550, in partition_handler
    get_path_to_storage_volume(info.get('id'), storage_config),
  File "/curtin/curtin/commands/block_meta.py", line 267, in get_path_to_storage_volume
    volume_path = block.kname_to_path(partition_kname)
  File "/curtin/curtin/block/__init__.py", line 114, in kname_to_path
    raise OSError('could not get path to dev from kname: {}'.format(kname))
OSError: could not get path to dev from kname: md01
could not get path to dev from kname: md01
builtin command failed
finish: cmd-install/stage-partitioning/builtin: FAIL: failed: running 'curtin block-meta custom'
builtin took 8.861 seconds

I've added commit which fixes mentioned error: http://bazaar.launchpad.net/~ruslan-lutcenko/curtin/curtin/revision/431