Can't deploy CentOS 6 with xfs filesystem
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/
Traceback (most recent call last):
File "/tmp/tmpgrmx7o
main()
File "/tmp/tmpgrmx7o
grub_root = get_grub_
File "/tmp/tmpgrmx7o
return regex.groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
finish: cmd-install/
Traceback (most recent call last):
File "/curtin/
ret = args.func(args)
File "/curtin/
if util.run_
File "/curtin/
subp(
File "/curtin/
return _subp(*args, **kwargs)
File "/curtin/
cmd=args)
curtin.
Command: ['/tmp/
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Unexpected error while running command.
Command: ['/tmp/
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/
running /tmp/tmpgrmx7o0
Running command ['/tmp/
Traceback (most recent call last):
File "/tmp/tmpgrmx7o
main()
File "/tmp/tmpgrmx7o
File "/tmp/tmpgrmx7o
return regex.groups()[0]
finish: cmd-install/
Traceback (most recent call last):
File "/curtin/
ret = args.func(args)
File "/curtin/
if util.run_
File "/curtin/
File "/curtin/
return _subp(*args, **kwargs)
File "/curtin/
Command: ['/tmp/
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Unexpected error while running command.
Command: ['/tmp/
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
Stderr: ''
I'm using MAAS versin 2.7.1
no longer affects: | maas |
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