Commit 200b985c authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Verify independence of allocation



Verify that the results of allocation do not depend on the
presence of an overfull group, if the option --independent-groups
is given.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
parent 15752d81
......@@ -1234,6 +1234,8 @@ TEST_FILES = \
test/data/htools/hbal-evac.data \
test/data/htools/hbal-excl-tags.data \
test/data/htools/hbal-split-insts.data \
test/data/htools/hspace-groups-one.data \
test/data/htools/hspace-groups-two.data \
test/data/htools/hspace-tiered-dualspec-exclusive.data \
test/data/htools/hspace-tiered-dualspec.data \
test/data/htools/hspace-tiered-exclusive.data \
......
group-01|fake-uuid-01|preferred||
node-01-001|2049|0|1|3073|1|16|N|fake-uuid-01|1||N|0|1
node-01-002|2049|0|1025|3073|1|16|N|fake-uuid-01|1||N|0|1
node-02-001|2049|0|2049|2049|2049|16|N|fake-uuid-01|1||N|0|1
node-02-002|2049|0|2049|2049|2049|16|N|fake-uuid-01|1||N|0|1
old-0|1024|1024|1|running|Y|node-01-001|node-01-002|drbd||1|1
old-1|1024|1024|1|running|Y|node-01-002|node-01-001|drbd||1|1
old-2|1024|1024|1|running|Y|node-01-001|node-01-002|drbd||1|1
|1024,1,1024,1,1,1|1024,1,1024,1,1,1;2048,8,2048,16,8,12|drbd|4.0|32.0
group-01|128,1,1024,1,1,1|128,1,1024,1,1,1;32768,8,1048576,16,8,12|diskless,file,sharedfile,plain,blockdev,drbd,rbd,ext|4.0|32.0
group-01|fake-uuid-01|preferred||
group-02|fake-uuid-02|preferred||
node-01-001|2049|0|1|3073|1|16|N|fake-uuid-01|1||N|0|1
node-01-002|2049|0|1025|3073|1|16|N|fake-uuid-01|1||N|0|1
node-02-001|2049|0|2049|2049|2049|16|N|fake-uuid-02|1||N|0|1
node-02-002|2049|0|2049|2049|2049|16|N|fake-uuid-02|1||N|0|1
old-0|1024|1024|1|running|Y|node-01-001|node-01-002|drbd||1|1
old-1|1024|1024|1|running|Y|node-01-002|node-01-001|drbd||1|1
old-2|1024|1024|1|running|Y|node-01-001|node-01-002|drbd||1|1
|1024,1,1024,1,1,1|1024,1,1024,1,1,1;2048,8,2048,16,8,12|drbd|4.0|32.0
group-01|128,1,1024,1,1,1|128,1,1024,1,1,1;32768,8,1048576,16,8,12|diskless,file,sharedfile,plain,blockdev,drbd,rbd,ext|4.0|32.0
group-02|128,1,1024,1,1,1|128,1,1024,1,1,1;32768,8,1048576,16,8,12|diskless,file,sharedfile,plain,blockdev,drbd,rbd,ext|4.0|32.0
......@@ -56,3 +56,20 @@
# VCPU-dominated allocation
./test/hs/hspace --machine-readable -t $TESTDATA_DIR/hspace-tiered-vcpu.data > $T/capacity && sh -c ". $T/capacity && test \"\${HTS_TSPEC}\" = '32768,65536,4,12=4 32768,65536,2,12=2' && test \"\${HTS_ALLOC_INSTANCES}\" = 10"
>>>=0
# Presence of overfull group
./test/hs/hspace -t $TESTDATA_DIR/hspace-groups-one.data
>>>/0 instances allocated/
>>>=0
./test/hs/hspace --independent-groups -t $TESTDATA_DIR/hspace-groups-one.data
>>>/0 instances allocated/
>>>=0
./test/hs/hspace -t $TESTDATA_DIR/hspace-groups-two.data
>>>/0 instances allocated/
>>>=0
./test/hs/hspace --independent-groups -t $TESTDATA_DIR/hspace-groups-two.data
>>>/2 instances allocated/
>>>=0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment