Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Gambier
slapos.core
Commits
520df163
Commit
520df163
authored
Sep 26, 2018
by
Alain Takoudjou
Committed by
Rafael Monnerat
Nov 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update message, fix loop
parent
96a7e7d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
slapos/cli/boot.py
slapos/cli/boot.py
+4
-4
No files found.
slapos/cli/boot.py
View file @
520df163
...
@@ -68,7 +68,7 @@ def _ping(hostname):
...
@@ -68,7 +68,7 @@ def _ping(hostname):
"""
"""
Ping a hostname
Ping a hostname
"""
"""
print
"[BOOT] Invoking
ping to ipv4 network..."
print
"[BOOT] Invoking
ipv4 ping to %s..."
%
hostname
p
=
subprocess
.
Popen
(
p
=
subprocess
.
Popen
(
[
"ping"
,
"-c"
,
"2"
,
hostname
],
[
"ping"
,
"-c"
,
"2"
,
hostname
],
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
...
@@ -83,7 +83,7 @@ def _ping6(hostname):
...
@@ -83,7 +83,7 @@ def _ping6(hostname):
"""
"""
Ping an ipv6 address
Ping an ipv6 address
"""
"""
print
"[BOOT] Invoking
ping to ipv6 network..."
print
"[BOOT] Invoking
ipv6 ping to %s..."
%
hostname
p
=
subprocess
.
Popen
(
p
=
subprocess
.
Popen
(
[
"ping6"
,
"-c"
,
"2"
,
hostname
],
[
"ping6"
,
"-c"
,
"2"
,
hostname
],
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
...
@@ -121,13 +121,13 @@ class BootCommand(ConfigCommand):
...
@@ -121,13 +121,13 @@ class BootCommand(ConfigCommand):
is_ready
=
_ping
(
ipv4_host
)
is_ready
=
_ping
(
ipv4_host
)
while
is_ready
==
0
:
while
is_ready
==
0
:
sleep
(
5
)
sleep
(
5
)
is_ready
=
_ping
()
is_ready
=
_ping
(
ipv4_host
)
# Make sure ipv6 is working
# Make sure ipv6 is working
is_ready
=
_ping6
(
ipv6_host
)
is_ready
=
_ping6
(
ipv6_host
)
while
is_ready
==
0
:
while
is_ready
==
0
:
sleep
(
5
)
sleep
(
5
)
is_ready
=
_ping6
()
is_ready
=
_ping6
(
ipv6_host
)
app
=
SlapOSApp
()
app
=
SlapOSApp
()
# Make sure slapos node format returns ok
# Make sure slapos node format returns ok
...
...
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