Bundle deployment failed with juju status shows the message:
Failed deployment: 'cloudinit' running modules for final
Jan 9 06:35:17 beartic cloud-init[2993]: Traceback (most recent call last):
Jan 9 06:35:17 beartic cloud-init[2993]: File "/curtin/curtin/commands/main.py", line 201, in main
Jan 9 06:35:17 beartic cloud-init[2993]: ret = args.func(args)
Jan 9 06:35:17 beartic cloud-init[2993]: File "/curtin/curtin/commands/block_meta.py", line 58, in block_meta
Jan 9 06:35:17 beartic cloud-init[2993]: meta_custom(args)
Jan 9 06:35:17 beartic cloud-init[2993]: File "/curtin/curtin/commands/block_meta.py", line 1471, in meta_custom
Jan 9 06:35:17 beartic cloud-init[2993]: clear_holders.clear_holders(disk_paths)
Jan 9 06:35:17 beartic cloud-init[2993]: File "/curtin/curtin/block/clear_holders.py", line 587, in clear_holders
Jan 9 06:35:17 beartic cloud-init[2993]: shutdown_function(dev_info['device'])
Jan 9 06:35:17 beartic cloud-init[2993]: File "/curtin/curtin/block/clear_holders.py", line 134, in shutdown_bcache
Jan 9 06:35:17 beartic cloud-init[2993]: os.listdir(os.path.join(device, 'slaves'))]
Jan 9 06:35:17 beartic cloud-init[2993]: FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/block/bcache0/bcache0p1/slaves'
Jan 9 06:35:17 beartic cloud-init[2993]: [Errno 2] No such file or directory: '/sys/class/block/bcache0/bcache0p1/slaves'
Jan 9 06:35:17 beartic cloud-init[2993]: builtin command failed
Jan 9 06:35:17 beartic cloud-init[2993]: finish: cmd-install/stage-partitioning/builtin: FAIL: running 'curtin block-meta custom'
Jan 9 06:35:17 beartic cloud-init[2993]: builtin took 4.751 seconds
Jan 9 06:35:18 beartic cloud-init[2993]: stage_partitioning took 4.754 seconds
Jan 9 06:35:18 beartic cloud-init[2993]: finish: cmd-install/stage-partitioning: FAIL: configuring storage
Jan 9 06:35:18 beartic cloud-init[2993]: curtin: Installation failed with exception: Unexpected error while running command.
Jan 9 06:35:18 beartic cloud-init[2993]: Command: ['curtin', 'block-meta', 'custom']
Jan 9 06:35:18 beartic cloud-init[2993]: Exit code: 3
Jan 9 06:35:18 beartic cloud-init[2993]: Reason: -
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/ block/bcache0/ bcache0p1/ slaves' block/bcache0/ bcache0p1/ slaves'
Jan 9 06:35:17 beartic cloud-init[2993]: [Errno 2] No such file or directory: '/sys/class/
Can you provide the curtin configuration and the install log (verbose)?
https:/ /discourse. maas.io/ t/getting- curtin- debug-logs/ 169
I didn't think bcache devices could be partitioned directly; so this looks really strange.
None the less, it appears doing a wipe; so curtin needs to handle this.