Unable to submit results to certification.canonical.com - sortkey attribute not accepted by server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
High
|
Daniel Manrique | ||
OEM QA Checkbox additions |
Invalid
|
High
|
Unassigned |
Bug Description
Result submissions to certification.
2012-03-13T19:44:49 ERROR canonical.
Traceback (most recent call last):
File "./src/
self.
File "./src/
return handler(type, body)
File "./src/
kwargs)
File "./src/
args[
File "./src/
return schema.
File "/srv/certifica
return self._variable_
File "/srv/certifica
% (attribute, value, e))
ValueError: Value of 'distribution' key of dict {'distribution': {'release': '12.04', 'codename': 'precise', 'distributor_id': 'Ubuntu', 'description': 'Ubuntu precise (development branch)', 'sortkey': 0}, 'type': 'set-distribution'} could not be converted: 'sortkey' is not a valid key as per {'release': <functools.partial object at 0xba72b1c>, 'codename': <functools.partial object at 0xba72b44>, 'distributor_id': <functools.partial object at 0xba72b6c>, 'description': <functools.partial object at 0xba72b94>}
I can see the troublesome part is the "sortkey" element of the distribution dictionary/message. The sortkey attribute is added in code from checkbox revision 1291 to visually sort jobs in the user interface. However, sending these to either c3 or launchpad doesn't make sense.
The possible solution is to strip the sortkey element prior to sending messages, which is done in the launchpad_report and certify_report plugins.
Related branches
Changed in checkbox-certification: | |
status: | New → Triaged |
importance: | Undecided → High |
summary: |
- Unable to submit results to certification.canonical.com + Unable to submit results to certification.canonical.com - sortkey + attribute not accepted by server |
Changed in oem-qa-checkbox: | |
importance: | Undecided → High |
assignee: | nobody → Javier Collado (javier.collado) |
Changed in checkbox: | |
status: | In Progress → Fix Committed |
Changed in checkbox: | |
status: | Fix Committed → Fix Released |
Changed in oem-qa-checkbox: | |
assignee: | Javier Collado (javier.collado) → nobody |
status: | New → Invalid |
Moving this bug to checkbox, as the problem originates in checkbox core and thus that's the best place for a generic solution.