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
7943708b
Commit
7943708b
authored
Jan 28, 2016
by
Dawn Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log more information for ssh command.
Sometimes e2e test nodes are refused to reboot, but we didn't properly catch the exit code. This one can give us more information on debugging.
parent
3328cfe1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
util.go
test/e2e/util.go
+3
-2
No files found.
test/e2e/util.go
View file @
7943708b
...
@@ -2179,9 +2179,10 @@ func issueSSHCommand(cmd, provider string, node *api.Node) error {
...
@@ -2179,9 +2179,10 @@ func issueSSHCommand(cmd, provider string, node *api.Node) error {
if
host
==
""
{
if
host
==
""
{
return
fmt
.
Errorf
(
"couldn't find external IP address for node %s"
,
node
.
Name
)
return
fmt
.
Errorf
(
"couldn't find external IP address for node %s"
,
node
.
Name
)
}
}
Logf
(
"Calling %s on %s
"
,
cmd
,
node
.
Name
)
Logf
(
"Calling %s on %s
(%s)"
,
cmd
,
node
.
Name
,
host
)
if
result
,
err
:=
SSH
(
cmd
,
host
,
provider
);
result
.
Code
!=
0
||
err
!=
nil
{
result
,
err
:=
SSH
(
cmd
,
host
,
provider
)
LogSSHResult
(
result
)
LogSSHResult
(
result
)
if
result
.
Code
!=
0
||
err
!=
nil
{
return
fmt
.
Errorf
(
"failed running %q: %v (exit code %d)"
,
cmd
,
err
,
result
.
Code
)
return
fmt
.
Errorf
(
"failed running %q: %v (exit code %d)"
,
cmd
,
err
,
result
.
Code
)
}
}
return
nil
return
nil
...
...
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