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
Tristan Cavelier
slapos.toolbox
Commits
f64bd272
Commit
f64bd272
authored
Sep 17, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM resilient test case: wait 2 hours between tests.
parent
627d0875
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
slapos/resiliencytest/__init__.py
slapos/resiliencytest/__init__.py
+0
-4
slapos/resiliencytest/suites/kvm.py
slapos/resiliencytest/suites/kvm.py
+6
-4
No files found.
slapos/resiliencytest/__init__.py
View file @
f64bd272
...
...
@@ -37,10 +37,6 @@ import traceback
from
erp5.util
import
taskdistribution
from
erp5.util.testnode
import
Utils
MAX_INSTALLATION_TIME
=
60
*
50
MAX_TESTING_TIME
=
60
MAX_GETTING_CONNECTION_TIME
=
60
*
5
def
importFrom
(
name
):
"""
Import a test suite module (in the suites module) and return it.
...
...
slapos/resiliencytest/suites/kvm.py
View file @
f64bd272
...
...
@@ -42,6 +42,10 @@ import urllib
logger
=
logging
.
getLogger
(
'KVMResiliencyTest'
)
# Wait for 2 hours before renaming, so that replication of data is done
# (~1GB of data to backup)
SLEEP_TIME
=
2
*
60
*
60
def
fetchMainInstanceIP
(
current_partition
,
software_release
,
instance_name
):
return
current_partition
.
request
(
software_release
=
software_release
,
...
...
@@ -154,10 +158,8 @@ def runTestSuite(server_url, key_file, cert_file,
# Test each clone
while
current_clone
<=
clone_count
:
logger
.
info
(
'Testing kvm%s.'
%
current_clone
)
# Wait for XX minutes so that replication is done
sleep_time
=
60
*
15
#2 * 60 * 60
logger
.
info
(
'Sleeping for %s seconds.'
%
sleep_time
)
time
.
sleep
(
sleep_time
)
logger
.
info
(
'Sleeping for %s seconds.'
%
SLEEP_TIME
)
time
.
sleep
(
SLEEP_TIME
)
# Make the clone instance takeover the main instance
logger
.
info
(
'Replacing main instance by clone instance...'
)
...
...
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