IndexError: list index out of range

Bug #1950320 reported by Hadmut Danisch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autoinstall-generator
New
Undecided
Unassigned

Bug Description

Hi,

autoinstall-generator crashed when trying to translate my cloudinit-files. I've boiled this down to the keyboard entry, which causes the crash (using the current snap)

The stripped down user-data file is just

#cloud-config

keyboard:
  layout: de
  variant: nodeadkeys

autoinstall-generator user-data3
Traceback (most recent call last):
  File "/snap/autoinstall-generator/64/usr/bin/autoinstall-generator", line 56, in <module>
    sys.exit(main())
  File "/snap/autoinstall-generator/64/usr/bin/autoinstall-generator", line 47, in main
    out = convert_file(infile, args)
  File "/snap/autoinstall-generator/64/lib/python3.6/site-packages/autoinstall_generator/merging.py", line 206, in convert_file
    directives.append(convert(line.strip('\n'), idx + 1))
  File "/snap/autoinstall-generator/64/lib/python3.6/site-packages/autoinstall_generator/convert.py", line 280, in convert
    return dispatch(line, pkg, key, value, linenumber)
  File "/snap/autoinstall-generator/64/lib/python3.6/site-packages/autoinstall_generator/convert.py", line 251, in dispatch
    return debconf_fragment(value, line, linenumber)
  File "/snap/autoinstall-generator/64/lib/python3.6/site-packages/autoinstall_generator/convert.py", line 163, in debconf_fragment
    key = f'{chunks[0]} {chunks[1]}'
IndexError: list index out of range

Revision history for this message
Hadmut Danisch (hadmut) wrote :
Revision history for this message
Hadmut Danisch (hadmut) wrote :

I'm not sure, whether I even used it in the intended way.

https://ubuntu.com/server/docs/install/autoinstall mentions the program, but not debian, and leads to https://www.pugetsystems.com/labs/hpc/How-To-Make-Ubuntu-Autoinstall-ISO-with-Cloud-init-2213/ which seems to mix and confuse the

autoinstall-generator

and the

ubuntu-autoinstall-generator

which seem, after careful reading, to perform different tasks, but not beeing kept apart by the ubuntu documentation itself. Maybe rename it to a less ambiguous name?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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