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
Lu Xu
slapos.toolbox
Commits
7ef1db3b
Commit
7ef1db3b
authored
Oct 09, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM resiliency test: change key for each clone.
parent
dbe347f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
slapos/resiliencytest/suites/kvm.py
slapos/resiliencytest/suites/kvm.py
+4
-3
No files found.
slapos/resiliencytest/suites/kvm.py
View file @
7ef1db3b
...
@@ -174,9 +174,6 @@ def runTestSuite(server_url, key_file, cert_file,
...
@@ -174,9 +174,6 @@ def runTestSuite(server_url, key_file, cert_file,
ip
=
fetchMainInstanceIP
(
partition
,
software
,
kvm_rootinstance_name
)
ip
=
fetchMainInstanceIP
(
partition
,
software
,
kvm_rootinstance_name
)
logger
.
info
(
'KVM IP is %s.'
%
ip
)
logger
.
info
(
'KVM IP is %s.'
%
ip
)
key
=
setRandomKey
(
ip
)
logger
.
info
(
'Key set for test in current KVM: %s.'
%
key
)
# In resilient stack, main instance (example with KVM) is named "kvm0",
# In resilient stack, main instance (example with KVM) is named "kvm0",
# clones are named "kvm1", "kvm2", ...
# clones are named "kvm1", "kvm2", ...
clone_count
=
int
(
total_instance_count
)
-
1
clone_count
=
int
(
total_instance_count
)
-
1
...
@@ -186,6 +183,10 @@ def runTestSuite(server_url, key_file, cert_file,
...
@@ -186,6 +183,10 @@ def runTestSuite(server_url, key_file, cert_file,
# Test each clone
# Test each clone
while
current_clone
<=
clone_count
:
while
current_clone
<=
clone_count
:
logger
.
info
(
'Testing kvm%s.'
%
current_clone
)
logger
.
info
(
'Testing kvm%s.'
%
current_clone
)
key
=
setRandomKey
(
ip
)
logger
.
info
(
'Key set for test in current KVM: %s.'
%
key
)
logger
.
info
(
'Sleeping for %s seconds.'
%
SLEEP_TIME
)
logger
.
info
(
'Sleeping for %s seconds.'
%
SLEEP_TIME
)
time
.
sleep
(
SLEEP_TIME
)
time
.
sleep
(
SLEEP_TIME
)
...
...
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