sysctl_attachment chokes on invalid character when run on Calxeda

Bug #1196838 reported by Brendan Donegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Medium
Brendan Donegan

Bug Description

Trying to run checkbox on the Calxeda node, we can see in the output that there is a traceback generated upon executing the sysctl_attachment job:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/checkbox/reactor.py", line 74, in fire
    results.append(handler(*args, **kwargs))
  File "<string>", line 55, in prompt_test
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 3693: ordinal not in range(128)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.2/logging/__init__.py", line 937, in emit
    stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 3877: ordinal not in range(128)
Logged from file reactor.py, line 89

I traced this down to an invalid character in sysctl.conf, where a stylised apostrophe is being used rather than the basic '. The output of this command needs to be filtered to remove these characters - that is if we don't finally bite the bullet and address this issue in the inner workings of Checkbox rather than repeating the fix for every job that gets affected.

Tags: arm server

Related branches

description: updated
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

It seems this could simply be down to how we connect to the Calxeda node. Nonetheless I think we should fix it.

tags: added: server
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

This can be traced down to an issue in subunit_report.py. We can fix it permanently by setting 'error="ignore"' on the call to open in this plugin

Changed in checkbox:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Brendan Donegan (brendan-donegan)
Daniel Manrique (roadmr)
Changed in checkbox:
status: In Progress → Fix Committed
Daniel Manrique (roadmr)
Changed in checkbox:
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.