[2.5.3] Deploying CentOS 6 resulting in curtin error


#1

Hi.

I was trying to deploying a CentOS 6 image and I am having a curtin error below

Stdout: start: cmd-install/stage-curthooks/builtin/cmd-curthooks: curtin command curthooks
        running /tmp/tmp_zvit2yw/target/curtin/curtin-hooks
        Running command ['/tmp/tmp_zvit2yw/target/curtin/curtin-hooks'] with allowed return codes [0] (capture=False)
        Traceback (most recent call last):
          File "/tmp/tmp_zvit2yw/target/curtin/curtin-hooks.py", line 393, in <module>
            main()
          File "/tmp/tmp_zvit2yw/target/curtin/curtin-hooks.py", line 376, in main
            grub_root = get_grub_root(target)
          File "/tmp/tmp_zvit2yw/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 201, in main
            ret = args.func(args)
          File "/curtin/curtin/commands/curthooks.py", line 1287, in curthooks
            if util.run_hook_if_exists(target, 'curtin-hooks'):
          File "/curtin/curtin/util.py", line 883, 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/tmp_zvit2yw/target/curtin/curtin-hooks']
        Exit code: 1
        Reason: -
        Stdout: ''
        Stderr: ''
        Unexpected error while running command.
        Command: ['/tmp/tmp_zvit2yw/target/curtin/curtin-hooks']
        Exit code: 1
        Reason: -
        Stdout: ''
        Stderr: ''
        
Stderr: ''

The CentOS 6 is directly from the MaaS image repository with no customisation.

Thanks.

Regards,
De Lin


#2

Thank you for your report, please file a bug report in https://bugs.launchpad.net/curtin/+filebug


#3

Okay, I have filed a bug report in curtin. Anyone that is interested in it can refer to the bug report link: https://bugs.launchpad.net/curtin/+bug/1831524


#4

We have same error wile deploying CentOS 6 using:

MAAS version: 2.6.0 (7802-g59416a869-0ubuntu1~18.04.1)

Best,
Stefan


#5

I found some workaround for me from last two post here:

https://bugs.launchpad.net/maas/+bug/1775424

I change from Bionic to Xenyal to deploy CentOS 6 and everything works well.

Best,
Stefan