Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Since #8399 was closed I'm reverting this change, hopefully that'll also fix travis #11643

Merged
merged 2 commits into from
Oct 29, 2016

Conversation

soltysh
Copy link
Contributor

@soltysh soltysh commented Oct 28, 2016

@stevekuznetsov that's what was wrong, mind taking a look?

@stevekuznetsov
Copy link
Contributor

@soltysh can you leave the commit as it would be created with git revert ?

@soltysh
Copy link
Contributor Author

soltysh commented Oct 28, 2016

Will do right away.

@stevekuznetsov
Copy link
Contributor

    if grep -q 'no Docker socket found' "${LOG_DIR}/openshift.log" && command -v journalctl >/dev/null 2>&1; then
        # the Docker daemon crashed, we need the logs
        journalctl --unit docker.service --since -4hours > "${LOG_DIR}/docker.log"
    fi

@stevekuznetsov
Copy link
Contributor

@soltysh make a second commit and git apply this patch:

diff --git a/hack/util.sh b/hack/util.sh
index 24f5a66..63606ef 100644
--- a/hack/util.sh
+++ b/hack/util.sh
@@ -269,7 +269,7 @@ function cleanup_openshift() {
                set -u
        fi

-       if grep -q 'no Docker socket found' "${LOG_DIR}/openshift.log"; then
+       if grep -q 'no Docker socket found' "${LOG_DIR}/openshift.log" && command -v journalctl >/dev/null 2>&1; then
                # the Docker daemon crashed, we need the logs
                journalctl --unit docker.service --since -4hours > "${LOG_DIR}/docker.log"
        fi

@stevekuznetsov
Copy link
Contributor

LGTM @danmcp please tag for merge

@danmcp
Copy link

danmcp commented Oct 28, 2016

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 94ba9cf

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 94ba9cf

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10795/) (Base Commit: 4e99352)

@openshift-bot
Copy link
Contributor

openshift-bot commented Oct 29, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10822/) (Base Commit: 0a7ab27) (Image: devenv-rhel7_5273)

@openshift-bot openshift-bot merged commit ef95fd9 into openshift:master Oct 29, 2016
@soltysh soltysh deleted the fix_util branch October 31, 2016 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants