Commit 25b2392b authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Add an hsqueeze test for drbd instances



In this example, there are two drbd instances, rendering a total of
four nodes ineligible for being offlined. Additionally, the master
may not be offlined either, leaving a single candidate.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 2a58a7b1
......@@ -1271,6 +1271,7 @@ TEST_FILES = \
test/data/htools/hroller-nodegroups.data \
test/data/htools/hroller-nonredundant.data \
test/data/htools/hroller-online.data \
test/data/htools/hsqueeze-mixed-instances.data \
test/data/htools/hsqueeze-overutilized.data \
test/data/htools/hsqueeze-underutilized.data \
test/data/htools/unique-reboot-order.data \
......
group-01|fake-uuid-01|preferred|
node-01-000|639|0|512|1052|1052|9|M|fake-uuid-01|1
node-01-001|639|0|512|1052|1052|9|N|fake-uuid-01|1
node-01-002|639|0|385|1052|28|9|N|fake-uuid-01|1
node-01-003|639|0|512|1052|28|9|N|fake-uuid-01|1
node-01-004|639|0|385|1052|28|9|N|fake-uuid-01|1
node-01-005|639|0|512|1052|28|9|N|fake-uuid-01|1
inst-00|127|0|1|running|Y|node-01-000||ext||1
inst-10|127|0|1|running|Y|node-01-001||ext||1
inst-2-3|127|1024|1|running|Y|node-01-002|node-01-003|drbd||1
inst-4-5|127|1024|1|running|Y|node-01-004|node-01-005|drbd||1
|127,1,0,0,1,1|127,1,0,1,1,1;256,1,0,0,2,2|ext|1.0|32.0
......@@ -54,3 +54,13 @@ node-01-00[2456]$/
./test/hs/hsqueeze -v -t $TESTDATA_DIR/hsqueeze-overutilized.data --minimal-resources=4.0 --target-resources=5.0
>>>/will not yield enough capacity/
>>>= 0
./test/hs/hsqueeze -t $TESTDATA_DIR/hsqueeze-mixed-instances.data --no-headers
>>>
node-01-001
>>>= 0
./test/hs/hsqueeze -t $TESTDATA_DIR/hsqueeze-mixed-instances.data -v
>>>/Offline candidates: node-01-001
/
>>>= 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