I’m trying to deploy a RHEL8 custom image with MAAS 3.3.4. The image was built with Packer, (we use our own Packer templates and not the packer-maas repository).
You can see below the error message at the end of the installation output:
finish: cmd-install/stage-extract/builtin/cmd-extract: SUCCESS: acquiring and extracting image from http://172.16.37.254:5248/images/rhel/amd64/generic/rhel8-2.0-rc1-tgz/uploaded/root-tgz
Applying write_files from config.
finish: cmd-install/stage-extract/builtin/cmd-extract: SUCCESS: curtin command extract
start: cmd-install/stage-curthooks/builtin/cmd-curthooks: curtin command curthooks
Running curtin builtin curthooks
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 1886, in curthooks
builtin_curthooks(cfg, target, state)
File "/curtin/curtin/commands/curthooks.py", line 1681, in builtin_curthooks
distro_info = distro.get_distroinfo(target=target)
File "/curtin/curtin/distro.py", line 119, in get_distroinfo
variant_name = variant_os_release['ID']
KeyError: 'ID'
'ID'
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 curtin builtin curthooks
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 1886, in curthooks
builtin_curthooks(cfg, target, state)
File "/curtin/curtin/commands/curthooks.py", line 1681, in builtin_curthooks
distro_info = distro.get_distroinfo(target=target)
File "/curtin/curtin/distro.py", line 119, in get_distroinfo
variant_name = variant_os_release['ID']
KeyError: 'ID'
'ID'
Stderr: ''
I have used the following command to import the image as written in the docs:
maas admin boot-resources create name='rhel/rhel8-v1.0' title='RHEL 8 v1.0' architecture='amd64/generic' filetype='tgz' content@=packer-rhel8-v1.0.tgz
Do I need to install curtin hooks in the image? The script fuse-tar-root in the packer-maas repo seems to do that but I don’t know where it gets the curtin hooks.