>>> clear_holders.gen_holders_tree('/dev/mapper/mpathz-part1')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/srv/rharper/curtin/curtin/block/clear_holders.py", line 464, in gen_holders_tree
device = block.sys_block_path(device)
File "/srv/rharper/curtin/curtin/block/__init__.py", line 141, in sys_block_path
(parent, partnum) = get_blockdev_for_partition(devname, strict=strict)
File "/srv/rharper/curtin/curtin/block/__init__.py", line 322, in get_blockdev_for_partition
raise OSError("%s had no syspath (%s)" % (devpath, syspath))
OSError: /dev/mapper/mpathz-part1 had no syspath (/sys/class/block/mpathz-part1)
Frank saw another variant of this with /dev/mapper/ mpatha- part1, which fails in the same way if the on-disk symlink isn't present.
>>> clear_holders. gen_holders_ tree('/ dev/mapper/ mpatha- part1') block/dm- 1', 'dev_type': 'disk', 'name': 'dm-1', 'holders': [{'device': '/sys/class/ block/dm- 12', 'dev_type': 'disk', 'name': 'dm-12', 'holders': []}]}
{'device': '/sys/class/
>>> clear_holders. gen_holders_ tree('/ dev/mapper/ mpathz- part1') curtin/ curtin/ block/clear_ holders. py", line 464, in gen_holders_tree block_path( device) curtin/ curtin/ block/_ _init__ .py", line 141, in sys_block_path for_partition( devname, strict=strict) curtin/ curtin/ block/_ _init__ .py", line 322, in get_blockdev_ for_partition mpathz- part1 had no syspath (/sys/class/ block/mpathz- part1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/srv/rharper/
device = block.sys_
File "/srv/rharper/
(parent, partnum) = get_blockdev_
File "/srv/rharper/
raise OSError("%s had no syspath (%s)" % (devpath, syspath))
OSError: /dev/mapper/