Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
23103544
Commit
23103544
authored
17 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
Implement disk templates for burnin from QA.
Reviewed-by: iustinp
parent
12c3449a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
qa/qa-sample.yaml
+1
-0
1 addition, 0 deletions
qa/qa-sample.yaml
qa/qa_cluster.py
+14
-10
14 additions, 10 deletions
qa/qa_cluster.py
with
15 additions
and
10 deletions
qa/qa-sample.yaml
+
1
−
0
View file @
23103544
...
...
@@ -72,6 +72,7 @@ tests:
# Other settings
options
:
burnin-instances
:
2
burnin-disk-template
:
remote_raid1
# Directory containing QA hooks
#hooks-dir: hooks/
This diff is collapsed.
Click to expand it.
qa/qa_cluster.py
+
14
−
10
View file @
23103544
...
...
@@ -117,26 +117,30 @@ def TestClusterBurnin():
"""
Burnin
"""
master
=
qa_config
.
GetMasterNode
()
disk_template
=
(
qa_config
.
get
(
'
options
'
,
{}).
get
(
'
burnin-disk-template
'
,
'
remote_raid1
'
))
# Get as many instances as we need
instances
=
[]
try
:
num
=
qa_config
.
get
(
'
options
'
,
{}).
get
(
'
burnin-instances
'
,
1
)
for
_
in
xrange
(
0
,
num
):
instances
.
append
(
qa_config
.
AcquireInstance
())
except
qa_error
.
OutOfInstancesError
:
print
"
Not enough instances, continuing anyway.
"
try
:
num
=
qa_config
.
get
(
'
options
'
,
{}).
get
(
'
burnin-instances
'
,
1
)
for
_
in
xrange
(
0
,
num
):
instances
.
append
(
qa_config
.
AcquireInstance
())
except
qa_error
.
OutOfInstancesError
:
print
"
Not enough instances, continuing anyway.
"
if
len
(
instances
)
<
1
:
raise
qa_error
.
Error
(
"
Burnin needs at least one instance
"
)
if
len
(
instances
)
<
1
:
raise
qa_error
.
Error
(
"
Burnin needs at least one instance
"
)
# Run burnin
try
:
script
=
qa_utils
.
UploadFile
(
master
[
'
primary
'
],
'
../tools/burnin
'
)
try
:
# Run burnin
cmd
=
[
script
,
'
--os=%s
'
%
qa_config
.
get
(
'
os
'
),
'
--os-size=%s
'
%
qa_config
.
get
(
'
os-size
'
),
'
--swap-size=%s
'
%
qa_config
.
get
(
'
swap-size
'
)]
'
--swap-size=%s
'
%
qa_config
.
get
(
'
swap-size
'
),
'
--disk-template=%s
'
%
disk_template
]
cmd
+=
[
inst
[
'
name
'
]
for
inst
in
instances
]
AssertEqual
(
StartSSH
(
master
[
'
primary
'
],
utils
.
ShellQuoteArgs
(
cmd
)).
wait
(),
0
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment