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

Detect docker startup failures #453

Merged
merged 4 commits into from
Aug 14, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Detect docker startup failures
  • Loading branch information
vteratipally committed Aug 5, 2020
commit 95237efb4dcf12ea2b7c19a0c0d6b8494152bce5
11 changes: 11 additions & 0 deletions config/docker-monitor.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
"type": "CorruptDockerOverlay2",
"reason": "NoCorruptDockerOverlay2",
"message": "docker overlay2 is functioning properly"
},
{
"type": "DockerStartupFailure",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be DockerContainerStartupFailure?

"reason": "DockerStartUpSucess",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NoDockerContainerStartupFailure?

"message": "Successfully started docker container"
}
],
"rules": [
Expand All @@ -26,6 +31,12 @@
"condition": "CorruptDockerOverlay2",
"reason": "CorruptDockerOverlay2",
"pattern": "returned error: readlink /var/lib/docker/overlay2.*: invalid argument.*"
},
{
"type": "permanent",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember you said this is a temporary issue.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but later I verfied with my team and figured out that it needs a change.

"condition": "DockerStartupFailure",
"reason": "DockerStartupFailure",
"pattern": "OCI runtime start failed: container process is already dead: unknown$"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the $? Not having it seems more robust to me

}
]
}