Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d8594f0f
Commit
d8594f0f
authored
Jun 18, 2015
by
Quinton Hoole
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9996 from satnam6502/es-logging
Add diagnostics to check for not ready endpoints
parents
f660940d
67e4cf33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
es_cluster_logging.go
test/e2e/es_cluster_logging.go
+13
-0
No files found.
test/e2e/es_cluster_logging.go
View file @
d8594f0f
...
...
@@ -240,6 +240,19 @@ func ClusterLevelLoggingWithElasticsearch(f *Framework) {
missing
:=
0
expected
:=
nodeCount
*
countTo
for
start
:=
time
.
Now
();
time
.
Since
(
start
)
<
graceTime
;
time
.
Sleep
(
10
*
time
.
Second
)
{
// Debugging code to report the status of the elasticsearch logging endpoints.
esPods
,
err
:=
f
.
Client
.
Pods
(
api
.
NamespaceDefault
)
.
List
(
labels
.
Set
{
"k8s-app"
:
"elasticsearch-logging"
}
.
AsSelector
(),
fields
.
Everything
())
if
err
!=
nil
{
Logf
(
"Attempt to list Elasticsearch nodes encountered a problem -- may retry: %v"
,
err
)
continue
}
else
{
for
i
,
pod
:=
range
esPods
.
Items
{
Logf
(
"pod %d: %s PodIP %s phase %s condition %+v"
,
i
,
pod
.
Name
,
pod
.
Status
.
PodIP
,
pod
.
Status
.
Phase
,
pod
.
Status
.
Conditions
)
}
}
// Ask Elasticsearch to return all the log lines that were tagged with the underscore
// verison of the name. Ask for twice as many log lines as we expect to check for
// duplication bugs.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment