Hi and thanks for reporting this bug. The problem is with the get_grub_root() function defined in the curtin- hooks.py file [1], which is part of the CentOS 6 MAAS image. I don't think there is anything that should be fixed on the curtin side. I am marking the curtin task as Invalid and adding a maas-images task.
[1] https://git.launchpad.net/maas-images/tree/curtin/centos6/curtin- hooks.py#n190 ** Also affects: maas-images Importance: Undecided Status: New ** Changed in: curtin Status: New => Invalid -- You received this bug notification because you are a member of curtin developers, which is subscribed to curtin. https://bugs.launchpad.net/bugs/1882798 Title: Can't deploy CentOS 6 with xfs filesystem Status in curtin: Invalid Status in MAAS: New Status in maas-images: New Bug description: Deployment of CentOS 6 fails when defining xfs partitions. It works fine under CentOS 7. The following error message appears in the log: Running command ['/tmp/tmpgrmx7o0g/target/curtin/curtin-hooks'] with allowed return codes [0] (capture=False) Traceback (most recent call last): File "/tmp/tmpgrmx7o0g/target/curtin/curtin-hooks.py", line 393, in <module> main() File "/tmp/tmpgrmx7o0g/target/curtin/curtin-hooks.py", line 376, in main grub_root = get_grub_root(target) File "/tmp/tmpgrmx7o0g/target/curtin/curtin-hooks.py", line 208, in get_grub_root return regex.groups()[0] AttributeError: 'NoneType' object has no attribute 'groups' finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks Traceback (most recent call last): File "/curtin/curtin/commands/main.py", line 202, in main ret = args.func(args) File "/curtin/curtin/commands/curthooks.py", line 1616, in curthooks if util.run_hook_if_exists(target, 'curtin-hooks'): File "/curtin/curtin/util.py", line 895, in run_hook_if_exists subp([target_hook]) File "/curtin/curtin/util.py", line 275, in subp return _subp(*args, **kwargs) File "/curtin/curtin/util.py", line 141, in _subp cmd=args) curtin.util.ProcessExecutionError: Unexpected error while running command. Command: ['/tmp/tmpgrmx7o0g/target/curtin/curtin-hooks'] Exit code: 1 Reason: - Stdout: '' Stderr: '' Unexpected error while running command. Command: ['/tmp/tmpgrmx7o0g/target/curtin/curtin-hooks'] Exit code: 1 Reason: - Stdout: '' Stderr: '' curtin: Installation failed with exception: Unexpected error while running command. Command: ['curtin', 'curthooks'] Exit code: 3 Reason: - Stdout: start: cmd-install/stage-curthooks/builtin/cmd-curthooks: curtin command curthooks running /tmp/tmpgrmx7o0g/target/curtin/curtin-hooks Running command ['/tmp/tmpgrmx7o0g/target/curtin/curtin-hooks'] with allowed return codes [0] (capture=False) Traceback (most recent call last): File "/tmp/tmpgrmx7o0g/target/curtin/curtin-hooks.py", line 393, in <module> main() File "/tmp/tmpgrmx7o0g/target/curtin/curtin-hooks.py", line 376, in main grub_root = get_grub_root(target) File "/tmp/tmpgrmx7o0g/target/curtin/curtin-hooks.py", line 208, in get_grub_root return regex.groups()[0] AttributeError: 'NoneType' object has no attribute 'groups' finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks Traceback (most recent call last): File "/curtin/curtin/commands/main.py", line 202, in main ret = args.func(args) File "/curtin/curtin/commands/curthooks.py", line 1616, in curthooks if util.run_hook_if_exists(target, 'curtin-hooks'): File "/curtin/curtin/util.py", line 895, in run_hook_if_exists subp([target_hook]) File "/curtin/curtin/util.py", line 275, in subp return _subp(*args, **kwargs) File "/curtin/curtin/util.py", line 141, in _subp cmd=args) curtin.util.ProcessExecutionError: Unexpected error while running command. Command: ['/tmp/tmpgrmx7o0g/target/curtin/curtin-hooks'] Exit code: 1 Reason: - Stdout: '' Stderr: '' Unexpected error while running command. Command: ['/tmp/tmpgrmx7o0g/target/curtin/curtin-hooks'] Exit code: 1 Reason: - Stdout: '' Stderr: '' Stderr: '' I'm using MAAS versin 2.7.1 To manage notifications about this bug go to: https://bugs.launchpad.net/curtin/+bug/1882798/+subscriptions -- Mailing list: https://launchpad.net/~curtin-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~curtin-dev More help : https://help.launchpad.net/ListHelp

