Can't deploy CentOS 6 with xfs filesystem

Bug #1882798 reported by Søren Sjøstrøm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
Invalid
Undecided
Unassigned
maas-images
Invalid
Undecided
Unassigned

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

Revision history for this message
Paride Legovini (paride) wrote :

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

Changed in curtin:
status: New → Invalid
Alberto Donato (ack)
no longer affects: maas
Revision history for this message
Jack Lloyd-Walters (lloydwaltersj) wrote :

I'm closing this as CentOS 6 is EOL, and no longer deployable on MAAS via streams

Changed in maas-images:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.