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
047aa254
Unverified
Commit
047aa254
authored
Nov 30, 2018
by
Maciej Borsz
Committed by
GitHub
Nov 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Check for hostError and automaticRestart when test finishes."
parent
3156df3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
log-dump.sh
cluster/log-dump/log-dump.sh
+0
-26
No files found.
cluster/log-dump/log-dump.sh
View file @
047aa254
...
@@ -429,30 +429,6 @@ function dump_nodes_with_logexporter() {
...
@@ -429,30 +429,6 @@ function dump_nodes_with_logexporter() {
fi
fi
}
}
function
detect_node_failures
()
{
if
!
[[
"
${
gcloud_supported_providers
}
"
=
~
"
${
KUBERNETES_PROVIDER
}
"
]]
;
then
return
fi
detect-node-names
for
group
in
"
${
INSTANCE_GROUPS
[@]
}
"
;
do
local
creation_timestamp
=
$(
gcloud compute instance-groups managed describe
\
"
${
group
}
"
\
--project
"
${
PROJECT
}
"
\
--zone
"
${
ZONE
}
"
\
--format
=
'value(creationTimestamp)'
)
echo
"Failures for
${
group
}
"
gcloud logging
read
--order
=
asc
\
--format
=
'table(timestamp,jsonPayload.resource.name,jsonPayload.event_subtype)'
\
--project
"
${
PROJECT
}
"
\
"resource.type=
\"
gce_instance
\"
logName=
\"
projects/
${
PROJECT
}
/logs/compute.googleapis.com%2Factivity_log
\"
(jsonPayload.event_subtype=
\"
compute.instances.hostError
\"
OR jsonPayload.event_subtype=
\"
compute.instances.automaticRestart
\"
)
jsonPayload.resource.name:
\"
${
group
}
\"
timestamp >=
\"
${
creation_timestamp
}
\"
"
done
}
function
main
()
{
function
main
()
{
setup
setup
# Copy master logs to artifacts dir locally (through SSH).
# Copy master logs to artifacts dir locally (through SSH).
...
@@ -471,8 +447,6 @@ function main() {
...
@@ -471,8 +447,6 @@ function main() {
echo
"Dumping logs from nodes locally to '
${
report_dir
}
'"
echo
"Dumping logs from nodes locally to '
${
report_dir
}
'"
dump_nodes
dump_nodes
fi
fi
detect_node_failures
}
}
main
main
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