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
213e7a8a
Commit
213e7a8a
authored
Aug 07, 2015
by
Satnam Singh
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12372 from a-robinson/ifup
Replace usage of ifup and ifdown in the reboot test with ifconfig
parents
32c23a8b
a2fea145
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
reboot.go
test/e2e/reboot.go
+1
-1
util.go
test/e2e/util.go
+1
-1
No files found.
test/e2e/reboot.go
View file @
213e7a8a
...
...
@@ -79,7 +79,7 @@ var _ = Describe("Reboot", func() {
It
(
"each node by switching off the network interface and ensure they function upon switch on"
,
func
()
{
// switch the network interface off for a while to simulate a network outage
// We sleep 10 seconds to give some time for ssh command to cleanly finish before network is down.
testReboot
(
c
,
"nohup sh -c 'sleep 10 && sudo if
down eth0 && sleep 120 && sudo ifup eth0
' >/dev/null 2>&1 &"
)
testReboot
(
c
,
"nohup sh -c 'sleep 10 && sudo if
config eth0 down && sleep 120 && sudo ifconfig eth0 up
' >/dev/null 2>&1 &"
)
})
It
(
"each node by dropping all inbound packets for a while and ensure they function afterwards"
,
func
()
{
...
...
test/e2e/util.go
View file @
213e7a8a
...
...
@@ -1581,7 +1581,7 @@ func waitForNodeToBeNotReady(c *client.Client, name string, timeout time.Duratio
func
isNodeReadySetAsExpected
(
node
*
api
.
Node
,
wantReady
bool
)
bool
{
// Check the node readiness condition (logging all).
for
i
,
cond
:=
range
node
.
Status
.
Conditions
{
Logf
(
"Node %s condition %d/%d: type: %v, status: %v, reason: %q, message: %q, last transi
s
tion time: %v"
,
Logf
(
"Node %s condition %d/%d: type: %v, status: %v, reason: %q, message: %q, last transition time: %v"
,
node
.
Name
,
i
+
1
,
len
(
node
.
Status
.
Conditions
),
cond
.
Type
,
cond
.
Status
,
cond
.
Reason
,
cond
.
Message
,
cond
.
LastTransitionTime
)
// Ensure that the condition type is readiness and the status
...
...
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