Failed parsing unittest log lines

Bug #1446889 reported by James Li on 2015-04-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
Low
Unassigned

Bug Description

In solum-worker.log, I saw failures of parsing unittest log lines. If a log line failed parsing, it cannot be included and stored.

2015-04-21 16:24:08.652 1614 DEBUG solum.uploaders.common [-] Could not parse json line: { "@timestamp": "2015-04-21T16:23:56+0000", "project_id": "0233689e947f4fd084ff00fdfe21d706", "commit_id": ", "_user": "false" }4ad5-e2aa-4efc-a95e-4d16e2532fe4", "task": "unittest", "message": "Sending build context to Docker daemon 21.5 kB
 transform_jsonlog /opt/stack/solum/solum/uploaders/common.py:70
2015-04-21 16:24:08.653 1614 DEBUG solum.uploaders.common [-] Could not parse json line: { "@timestamp": "2015-04-21T16:23:56+0000", "project_id": "0233689e947f4fd084ff00fdfe21d706", "commit_id": ", "_user": "false" }4ad5-e2aa-4efc-a95e-4d16e2532fe4", "task": "unittest", "message": "Sending build context to Docker daemon
 transform_jsonlog /opt/stack/solum/solum/uploaders/common.py:70
2015-04-21 16:24:08.655 1614 DEBUG solum.uploaders.common [-] Could not parse json line: { "@timestamp": "2015-04-21T16:24:08+0000", "project_id": "0233689e947f4fd084ff00fdfe21d706", "commit_id": "", "stage_id": "0eb44ad5-e2aa-4efc-a95e-4d16e2532fe4", "task": "unittest", "message": "Step 4 : RUN echo "Host *ntStrictHostKeyChecking nontUserKnownHostsFile=/dev/null" > /root/.ssh/config", "_user": "false" }
 transform_jsonlog /opt/stack/solum/solum/uploaders/common.py:70

James Li (james-li-3) on 2015-04-21
description: updated
Ed Cranford (ed--cranford) wrote :

Looks to me like the problem is with

    "commit_id": ", "_user": "false"

The commid_id value isn't being written correctly.

Adrian Otto (aotto) on 2015-06-12
Changed in solum:
status: New → Triaged
importance: Undecided → Low
milestone: none → 2015.1.1
tags: added: solum-worker
Changed in solum:
assignee: nobody → venkatamahesh (venkatamaheshkotha)

Hi James Li,

By tracing the path shown in the bug description I found that the key's in the "transform_jsonlog" function are modified now.

For reference https://github.com/openstack/solum/blob/master/solum/uploaders/common.py#L65-L67

Now there is no "commit_id", "project_id".

So, Please check and confirm again,

Thanks
mahesh

Changed in solum:
assignee: venkatamahesh (venkatamaheshkotha) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers