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
b7478ce1
Commit
b7478ce1
authored
14 years ago
by
Iustin Pop
Browse files
Options
Downloads
Patches
Plain Diff
More enhancements to live-test.sh
parent
b8262965
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
live-test.sh
+37
-5
37 additions, 5 deletions
live-test.sh
with
37 additions
and
5 deletions
live-test.sh
+
37
−
5
View file @
b7478ce1
...
@@ -38,6 +38,7 @@ echo Checking command line
...
@@ -38,6 +38,7 @@ echo Checking command line
for
prog
in
hscan hbal hail hspace
;
do
for
prog
in
hscan hbal hail hspace
;
do
./
$prog
--version
./
$prog
--version
./
$prog
--help
./
$prog
--help
!
./
$prog
--no-such-option
done
done
echo
Testing hscan/rapi
echo
Testing hscan/rapi
...
@@ -47,6 +48,10 @@ echo Testing hscan/luxi
...
@@ -47,6 +48,10 @@ echo Testing hscan/luxi
echo
Comparing hscan results...
echo
Comparing hscan results...
diff
-u
$T
/
$RAPI
.data
$T
/LOCAL.data
diff
-u
$T
/
$RAPI
.data
$T
/LOCAL.data
FN
=
$(
head
-n1
$T
/
$RAPI
.data|cut
-d
\|
-f1
)
FI
=
$(
$CLUSTER
head
-n1
/var/lib/ganeti/ssconf_instance_list
)
echo
Testing hbal/luxi
echo
Testing hbal/luxi
./hbal
-L
$LUXI
-p
--print-instances
-C
$T
/hbal-luxi-cmds.sh
./hbal
-L
$LUXI
-p
--print-instances
-C
$T
/hbal-luxi-cmds.sh
bash
-n
$T
/hbal-luxi-cmds.sh
bash
-n
$T
/hbal-luxi-cmds.sh
...
@@ -56,29 +61,48 @@ bash -n $T/hbal-rapi-cmds.sh
...
@@ -56,29 +61,48 @@ bash -n $T/hbal-rapi-cmds.sh
echo
Testing hbal/text
echo
Testing hbal/text
./hbal
-t
$T
/
$RAPI
.data
-p
--print-instances
-C
$T
/hbal-text-cmds.sh
./hbal
-t
$T
/
$RAPI
.data
-p
--print-instances
-C
$T
/hbal-text-cmds.sh
bash
-n
$T
/hbal-text-cmds.sh
bash
-n
$T
/hbal-text-cmds.sh
echo
Comparing hbal results
diff
-u
$T
/hbal-luxi-cmds.sh
$T
/hbal-rapi-cmds.sh
diff
-u
$T
/hbal-luxi-cmds.sh
$T
/hbal-text-cmds.sh
echo
Testing hbal/text with evacuation mode
echo
Testing hbal/text with evacuation mode
./hbal
-t
$T
/
$RAPI
.data
-E
./hbal
-t
$T
/
$RAPI
.data
-E
echo
Testing hbal/text with no disk moves
./hbal
-t
$T
/
$RAPI
.data
--no-disk-moves
echo
Testing hbal/text with offline node mode
echo
Testing hbal/text with offline node mode
FN
=
$(
head
-n1
$T
/
$RAPI
.data|cut
-d
\|
-f1
)
./hbal
-t
$T
/
$RAPI
.data
-O
$FN
./hbal
-t
$T
/
$RAPI
.data
-O
$FN
echo
Testing hbal/text with utilization data
echo
"
$FI
2 2 2 2"
>
$T
/util.data
./hbal
-t
$T
/
$RAPI
.data
-U
$T
/util.data
echo
Testing hbal/text with bad utilization data
echo
"
$FI
2 a 3b"
>
$T
/util.data
!
./hbal
-t
$T
/
$RAPI
.data
-U
$T
/util.data
echo
Testing hbal/text with instance exclusion
./hbal
-t
$T
/
$RAPI
.data
--exclude-instances
=
$FI
!
./hbal
-t
$T
/
$RAPI
.data
--exclude-instances
=
no_such_instance
echo
Testing hbal/text with tag exclusion
./hbal
-t
$T
/
$RAPI
.data
--exclusion-tags
=
no_such_tag
echo
Testing hbal multiple backend failure
!
./hbal
-t
$T
/
$RAPI
.data
-L
$LUXI
echo
Testing hbal no backend failure
!
./hbal
echo
Getting data files
for
hail
echo
Getting data files
for
hail
IR
=
`
$CLUSTER
head
-n1
/var/lib/ganeti/ssconf_instance_list
`
for
dtemplate
in
plain drbd
;
do
for
dtemplate
in
plain drbd
;
do
$CLUSTER
gnt-debug allocator
--dir
in
--mode
allocate
--mem
128m
\
$CLUSTER
gnt-debug allocator
--dir
in
--mode
allocate
--mem
128m
\
--disks
128m
-t
$dtemplate
-o
no_such_os no_such_instance
\
--disks
128m
-t
$dtemplate
-o
no_such_os no_such_instance
\
>
$T
/h-alloc-
$dtemplate
.json
>
$T
/h-alloc-
$dtemplate
.json
done
done
$CLUSTER
gnt-debug allocator
--dir
in
--mode
relocate
\
$CLUSTER
gnt-debug allocator
--dir
in
--mode
relocate
\
-o
no_such_os
$I
R
>
$T
/h-reloc.json
-o
no_such_os
$
F
I
>
$T
/h-reloc.json
$CLUSTER
gnt-debug allocator
--dir
in
--mode
multi-evacuate
\
$CLUSTER
gnt-debug allocator
--dir
in
--mode
multi-evacuate
\
$FN
>
$T
/h-evacuate.json
$FN
>
$T
/h-evacuate.json
for
dtemplate
in
plain drbd
;
do
for
dtemplate
in
plain drbd
;
do
echo
Testing hail/allocate-
$dtemplate
echo
Testing hail/allocate-
$dtemplate
./hail
$T
/h-alloc-
$dtemplate
.json
./hail
$T
/h-alloc-
$dtemplate
.json
done
done
echo
Testing hail/relocate
for
instance
$I
R
echo
Testing hail/relocate
for
instance
$
F
I
./hail
$T
/h-reloc.json
./hail
$T
/h-reloc.json
echo
Testing hail/evacuate
for
node
$FN
echo
Testing hail/evacuate
for
node
$FN
./hail
$T
/h-evacuate.json
./hail
$T
/h-evacuate.json
...
@@ -95,6 +119,7 @@ check_hspace_out() {
...
@@ -95,6 +119,7 @@ check_hspace_out() {
}
}
TIER
=
"--tiered 102400,8192,2"
TIER
=
"--tiered 102400,8192,2"
SIMU
=
"--simu=10,6835937,32768,4"
echo
Testing hspace/luxi
echo
Testing hspace/luxi
./hspace
-L
$LUXI
$TIER
-v
>
$HOUT
./hspace
-L
$LUXI
$TIER
-v
>
$HOUT
(
check_hspace_out
)
||
exit
1
(
check_hspace_out
)
||
exit
1
...
@@ -106,6 +131,13 @@ echo Testing hspace/text
...
@@ -106,6 +131,13 @@ echo Testing hspace/text
(
check_hspace_out
)
||
exit
1
(
check_hspace_out
)
||
exit
1
echo
Testing hspace/simu
echo
Testing hspace/simu
# ~6T disk space, 32G ram, 4 VCPUs
# ~6T disk space, 32G ram, 4 VCPUs
./hspace
--simu
=
10,6835937,32768,4
$TIER
-v
>
$HOUT
./hspace
$SIMU
$TIER
-v
>
$HOUT
(
check_hspace_out
)
||
exit
1
(
check_hspace_out
)
||
exit
1
# Wrong tiered spec input
!
./hspace
$SIMU
--tiered
1,2,3x
!
./hspace
$SIMU
--tiered
1,2,x
!
./hspace
$SIMU
--tiered
1,2
# Wrong simu spec
!
./hspace
--simu
=
1,2,x
echo
All OK
echo
All OK
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