Curtin stacktraces when invalid curtin config is provided.

Bug #1613277 reported by Andres Rodriguez
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
In Progress
Medium
Unassigned

Bug Description

MAAS generated an invalid config, and curtin stack traced. It would be nice if curtin would automatically auto-detect the invalid curtin config instead of stack tracing.

Curtin installation log: http://paste.ubuntu.com/23058291/
Curtin version: 0.1.0~bzr416-0ubuntu1~ubuntu16.04.1
Bad curtin config as generated by MAAS: http://paste.ubuntu.com/23058288/
Good curtin config as generated by MAAS: http://paste.ubuntu.com/23058402/

Related branches

Revision history for this message
Andres Rodriguez (andreserl) wrote :

It was me generating the wrong config.

Changed in curtin:
status: New → Invalid
summary: - Failed to deploy when setting apt mirrors
+ Curtin stacktraces when invalid curtin config is provided.
Changed in curtin:
status: Invalid → New
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Ryan Harper (raharper) wrote :

In particular, the config passed into apt_config did not generate a *list* of sources in the 'primary' key. I'll update curtin.apt_config to raise some type errors where it expected dict or lists so this is more clear.

Changed in curtin:
importance: Undecided → Medium
status: New → Confirmed
Ryan Harper (raharper)
Changed in curtin:
status: Confirmed → In Progress
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.