Commit 8840de6f authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Test for hroller taking non-redundant instances into account



The example cluster consists of 6 nodes, each hosting 2 instances and
having capacity for 3. So, while the drbd-induced graph consists of
only insulated nodes, no more than two nodes can be rebooted at the
same time.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 23247a73
......@@ -1056,6 +1056,7 @@ TEST_FILES = \
test/data/htools/rapi/info.json \
test/data/htools/rapi/instances.json \
test/data/htools/rapi/nodes.json \
test/data/htools/hroller-nonredundant.data \
test/data/htools/hroller-online.data \
test/data/htools/unique-reboot-order.data \
test/hs/shelltests/htools-balancing.test \
......
group-01|fake-uuid-01|preferred|
node-01-000|91552|0|91424|3100|1052|16|M|fake-uuid-01|1
node-01-001|91552|0|91424|3100|1052|16|N|fake-uuid-01|1
node-01-002|91552|0|91424|3100|1052|16|N|fake-uuid-01|1
node-01-003|91552|0|91424|3100|1052|16|N|fake-uuid-01|1
node-01-004|91552|0|91424|3100|1052|16|N|fake-uuid-01|1
node-01-005|91552|0|91424|3100|1052|16|N|fake-uuid-01|1
inst-00|128|1024|1|running|Y|node-01-000||plain||1
inst-01|128|1024|1|running|Y|node-01-000||plain||1
inst-10|128|1024|1|running|Y|node-01-001||plain||1
inst-11|128|1024|1|running|Y|node-01-001||plain||1
inst-20|128|1024|1|running|Y|node-01-002||plain||1
inst-21|128|1024|1|running|Y|node-01-002||plain||1
inst-30|128|1024|1|running|Y|node-01-003||plain||1
inst-31|128|1024|1|running|Y|node-01-003||plain||1
inst-40|128|1024|1|running|Y|node-01-004||plain||1
inst-41|128|1024|1|running|Y|node-01-004||plain||1
inst-50|128|1024|1|running|Y|node-01-005||plain||1
inst-51|128|1024|1|running|Y|node-01-005||plain||1
|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|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
......@@ -34,3 +34,18 @@ node-01-002
node-01-003/
>>>= 0
./test/hs/hroller --no-headers -t $TESTDATA_DIR/hroller-nonredundant.data
>>>/^node-01-00.,node-01-00.
node-01-00.,node-01-00.
node-01-00.,node-01-000$/
>>>= 0
./test/hs/hroller --skip-non-redundant -t $TESTDATA_DIR/hroller-nonredundant.data
>>>2
Error: Cannot create node graph
>>>=1
./test/hs/hroller --no-headers --ignore-non-redundant -t $TESTDATA_DIR/hroller-nonredundant.data
>>>/^node-01-00.,node-01-00.,node-01-00.,node-01-00.,node-01-00.,node-01-000$/
>>>= 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