Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image-creator
Commits
cb7cd335
Commit
cb7cd335
authored
Sep 10, 2014
by
Nikos Skalkotos
Browse files
windows: Increase the connectivity check timeout
parent
4445d421
Changes
1
Hide whitespace changes
Inline
Side-by-side
image_creator/os_type/windows/__init__.py
View file @
cb7cd335
...
...
@@ -701,12 +701,16 @@ class Windows(OSBase):
"""Check if winexe works on the Windows VM"""
retries
=
self
.
sysprep_params
[
'connection_retries'
].
value
timeout
=
[
2
]
for
i
in
xrange
(
1
,
retries
-
1
):
timeout
.
insert
(
0
,
timeout
[
0
]
*
2
)
# If the connection_retries parameter is set to 0 disable the
# connectivity check
if
retries
==
0
:
return
True
for
i
in
range
(
retries
):
for
i
in
x
range
(
retries
):
(
stdout
,
stderr
,
rc
)
=
self
.
vm
.
rexec
(
'cmd /C'
,
fatal
=
False
,
debug
=
True
)
if
rc
==
0
:
...
...
@@ -721,7 +725,7 @@ class Windows(OSBase):
self
.
out
.
output
(
"failed! See: `%s' for the full output"
%
log
.
name
)
if
i
<
retries
-
1
:
self
.
out
.
output
(
"retrying ..."
,
False
)
time
.
sleep
(
1
)
time
.
sleep
(
timeout
.
pop
()
)
raise
FatalError
(
"Connection to the Windows VM failed after %d retries"
%
retries
)
...
...
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