vmtest: uncaught exception results in lage image files

Bug #1714592 reported by Joshua Powers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
Fix Released
Medium
Unassigned

Bug Description

On Sept 1, 2017 the vmtest run caught image files being archived:

3.9G output/ArtfulTestRaid6boot
3.9G output/ArtfulTestRaid6boot/disks
4.1G output/
+ '[' 1 -eq 2 ']'
+ exit 1
Build step 'Execute shell' marked build as failure
Archiving artifacts

Per Ryan's email these large files should never be stored:

CURTIN_VMTEST_KEEP_DATA_FAIL=logs,collect
CURTIN_VMTEST_KEEP_DATA_PASS=logs,collect

Ryan found that the cause appears to be an uncaught exception during curtin-log-print namely:

curtin.util.ProcessExecutionError: Unexpected error while running command.
Command: ['tools/curtin-log-print', '--dumpfiles', '/var/lib/jenkins/slaves/torkoal/workspace/curtin-vmtest-devel-amd64/output/ArtfulTestRaid6boot/logs', '/var/lib/jenkins/slaves/torkoal/workspace/curtin-vmtest-devel-amd64/output/ArtfulTestRaid6boot/logs/webhooks-events.json']
Exit code: 1
Reason: -
Stdout: ''
Stderr: Traceback (most recent call last):
          File "tools/curtin-log-print", line 197, in <module>
            main()
          File "tools/curtin-log-print", line 188, in main
            log_datafiles=opts.log_datafiles)
          File "tools/curtin-log-print", line 121, in generate_records
            timestamps[name].update({'finish': event['timestamp']})
        KeyError: 'cmd-install/stage-curthooks/builtin/cmd-curthooks/installing-missing-packages'

Related branches

Joshua Powers (powersj)
Changed in curtin:
status: New → Confirmed
Joshua Powers (powersj)
Changed in curtin:
status: Confirmed → Fix Committed
importance: Undecided → Medium
Revision history for this message
Scott Moser (smoser) wrote : Fixed in Curtin 17.1

This bug is believed to be fixed in curtin in 17.1. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in curtin:
status: Fix Committed → Fix Released
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.