-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Conversation
@soltysh can you leave the commit as it would be created with |
Will do right away. |
This reverts commit b8fe224.
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 |
@soltysh make a second commit and 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 |
LGTM @danmcp please tag for merge |
[merge] |
Evaluated for origin merge up to 94ba9cf |
[Test]ing while waiting on the merge queue |
Evaluated for origin test up to 94ba9cf |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10795/) (Base Commit: 4e99352) |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10822/) (Base Commit: 0a7ab27) (Image: devenv-rhel7_5273) |
@stevekuznetsov that's what was wrong, mind taking a look?