Bug 1360921

Summary: Save docker/journald output from Jenkins CI builds
Product: OKD Reporter: Jhon Honce <jhonce>
Component: BuildAssignee: Steve Kuznetsov <skuznets>
Status: CLOSED CURRENTRELEASE QA Contact: Wang Haoran <haowang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.xCC: aos-bugs, bparees, dmcphers, smahajan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-05 18:35:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jhon Honce 2016-07-27 20:42:28 UTC
Description of problem:
For debugging docker issues with the builds, we need the output from the docker daemon saved with the other S3 artifacts.

Depending on the configuration of the docker daemon running the Jenkins jobs this could be docker.log or journald entries.

Comment 1 Steve Kuznetsov 2016-07-28 14:32:01 UTC
Any objections to simply doing something like the following as a post-build step in the Jenkins jobs:

vagrant ssh -c 'sudo journalctl --no-pager --all --lines=10000 -unit=docker' > origin/artifacts/docker.journal

Comment 2 Dan McPherson 2016-07-28 14:39:48 UTC
Why not add to the vagrant openshift download artifacts?

Comment 3 Steve Kuznetsov 2016-07-28 20:13:34 UTC
Although I'm trying my best to implement one, we do not have a central cleanup trap so it seems prohibitively expensive to implement in a way that every job always will have the artifact created, whereas if we add a Jenkins execute job we're guaranteed to get the information.

Comment 4 Steve Kuznetsov 2016-08-05 18:35:48 UTC
I have implemented best-effort Docker log harvesting for our Origin test jobs. The log can be found in the S3 artifacts[1], it is named `docker.journal`. 

[1] ex. https://ci.openshift.redhat.com/jenkins/fingerprint/d7c961644da1e86a49ab726881aa458a/