Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
Nicolas Wavrant
slapos.toolbox
Commits
ab70cf77
Commit
ab70cf77
authored
Oct 08, 2018
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resiliencytestsuite: add logs to know errors when switching to clone
parent
6095dfdd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
slapos/resiliencytest/suites/resiliencytestsuite.py
slapos/resiliencytest/suites/resiliencytestsuite.py
+9
-3
No files found.
slapos/resiliencytest/suites/resiliencytestsuite.py
View file @
ab70cf77
...
...
@@ -179,14 +179,20 @@ class ResiliencyTestSuite(object):
os
.
path
.
dirname
(
sys
.
argv
[
0
]),
'..'
,
'..'
,
'..'
,
'slapos.cfg'
)
import
os
slapos_configuration_file_path
=
os
.
path
.
abspath
(
slapos_configuration_file_path
)
# Output is huge and we don't want to store it in memory nor print it
devnull
=
open
(
'/dev/null'
,
'w'
)
command
=
[
'/opt/slapos/bin/slapos'
,
'node'
,
'instance'
,
'--cfg=%s'
%
slapos_configuration_file_path
,
'--pidfile=slapos.pid'
]
subprocess
.
Popen
(
command
,
stdout
=
devnull
,
stderr
=
devnull
).
wait
()
subprocess
.
Popen
(
command
,
stdout
=
devnull
,
stderr
=
devnull
).
wait
()
subprocess
.
Popen
(
command
,
stdout
=
devnull
,
stderr
=
devnull
).
wait
()
self
.
logger
.
info
(
'Running "slapos node instance" with command : %s'
%
' '
.
join
(
command
))
stdin
,
stdout
=
subprocess
.
Popen
(
command
,
stdout
=
devnull
,
stderr
=
stderr
).
wait
()
stdin
,
stdout
=
subprocess
.
Popen
(
command
,
stdout
=
devnull
,
stderr
=
stderr
).
wait
()
stdin
,
stdout
=
subprocess
.
Popen
(
command
,
stdout
=
devnull
,
stderr
=
stderr
).
wait
()
if
stdout
:
print
"Erreur when running slapos node instance :"
print
stderr
success
=
self
.
checkDataOnCloneInstance
()
if
success
:
...
...
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