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
7d7609a3
Commit
7d7609a3
authored
17 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
Add basic QA tests for DRBD 8.
Reviewed-by: schreiberal
parent
6852c52f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
qa/ganeti-qa.py
+19
-12
19 additions, 12 deletions
qa/ganeti-qa.py
qa/qa-sample.yaml
+1
-0
1 addition, 0 deletions
qa/qa-sample.yaml
qa/qa_instance.py
+7
-0
7 additions, 0 deletions
qa/qa_instance.py
with
27 additions
and
12 deletions
qa/ganeti-qa.py
+
19
−
12
View file @
7d7609a3
...
...
@@ -269,18 +269,25 @@ def main():
RunTest
(
qa_instance
.
TestInstanceRemove
,
instance
)
del
instance
if
qa_config
.
TestEnabled
(
'
instance-add-remote-raid-disk
'
):
snode
=
qa_config
.
AcquireNode
(
exclude
=
pnode
)
try
:
instance
=
RunTest
(
qa_instance
.
TestInstanceAddWithRemoteRaidDisk
,
pnode
,
snode
)
RunCommonInstanceTests
(
instance
)
RunExportImportTests
(
instance
,
pnode
)
RunHardwareFailureTests
(
instance
,
pnode
,
snode
)
RunTest
(
qa_instance
.
TestInstanceRemove
,
instance
)
del
instance
finally
:
qa_config
.
ReleaseNode
(
snode
)
multinode_tests
=
[
(
'
instance-add-remote-raid-disk
'
,
qa_instance
.
TestInstanceAddWithRemoteRaidDisk
),
(
'
instance-add-drbd-disk
'
,
qa_instance
.
TestInstanceAddWithDrbdDisk
),
]
for
name
,
func
in
multinode_tests
:
if
qa_config
.
TestEnabled
(
name
):
snode
=
qa_config
.
AcquireNode
(
exclude
=
pnode
)
try
:
instance
=
RunTest
(
func
,
pnode
,
snode
)
RunCommonInstanceTests
(
instance
)
RunExportImportTests
(
instance
,
pnode
)
RunHardwareFailureTests
(
instance
,
pnode
,
snode
)
RunTest
(
qa_instance
.
TestInstanceRemove
,
instance
)
del
instance
finally
:
qa_config
.
ReleaseNode
(
snode
)
finally
:
qa_config
.
ReleaseNode
(
pnode
)
...
...
This diff is collapsed.
Click to expand it.
qa/qa-sample.yaml
+
1
−
0
View file @
7d7609a3
...
...
@@ -48,6 +48,7 @@ tests:
instance-add-plain-disk
:
True
instance-add-local-mirror-disk
:
True
instance-add-remote-raid-disk
:
True
instance-add-drbd-disk
:
False
instance-list
:
True
instance-failover
:
True
instance-info
:
True
...
...
This diff is collapsed.
Click to expand it.
qa/qa_instance.py
+
7
−
0
View file @
7d7609a3
...
...
@@ -82,6 +82,13 @@ def TestInstanceAddWithRemoteRaidDisk(node, node2):
'
remote_raid1
'
)
@qa_utils.DefineHook
(
'
instance-add-drbd-disk
'
)
def
TestInstanceAddWithDrbdDisk
(
node
,
node2
):
"""
gnt-instance add -t drbd
"""
return
_DiskTest
(
"
%s:%s
"
%
(
node
[
'
primary
'
],
node2
[
'
primary
'
]),
'
drbd
'
)
@qa_utils.DefineHook
(
'
instance-remove
'
)
def
TestInstanceRemove
(
instance
):
"""
gnt-instance remove
"""
...
...
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