curtin fails to deploy on some invalid configs.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Triaged
|
Low
|
Unassigned |
Bug Description
curtin version:
root@ba0b1a:~# dpkg -l | grep -i curtin
ii curtin-common 0.1.0~bzr532-
ii python3-curtin 0.1.0~bzr532-
curtin fails with this error
curtin: Installation started. (0.1.0~
curtin: Installation failed with exception: 'NoneType' object has no attribute 'keys'
when the test in early_commands is not true
root@ba0b1a:~# cat /etc/maas/
#cloud-config
debconf_selections:
maas: |
{{for line in str(curtin_
{{line}}
{{endfor}}
early_commands:
# disable_reboot: touch /run/block-
{{if third_party_drivers and driver}}
{{py: key_string = ''.join(['\\x%x' % x for x in map(ord, driver[
driver_
driver_
driver_02_add: ["add-apt-
driver_
driver_04_load: ["sh", "-c", "depmod && modprobe {{driver[
{{endif}}
workaround was to add placeholder to early_commands
root@ba0b1a-
#cloud-config
debconf_selections:
maas: |
{{for line in str(curtin_
{{line}}
{{endfor}}
early_commands:
# disable_reboot: touch /run/block-
dummy_
{{if third_party_drivers and driver}}
{{py: key_string = ''.join(['\\x%x' % x for x in map(ord, driver[
driver_
driver_
driver_02_add: ["add-apt-
driver_
driver_04_load: ["sh", "-c", "depmod && modprobe {{driver[
{{endif}}
Related bugs:
* bug 1734391: user editing of preseed files is difficult due to maas internal data
tags: | added: cpe-onsite |
Hi,
I'm glad to hear that you have a workaround for now.
I checked most recent in the repo, but it works for me atm.
There are no changes from r532 (what you have) to r542 (head) that would affect this.
Given that you have a workaround IMHO we can wait for Scott to take a look at on monday.
I'll attach a test ...