Commit 3daaae2f authored by Oleg Ponomarev's avatar Oleg Ponomarev Committed by Klaus Aehlig

Add test for the common-failure exclusion tags

Initial configuration contains the situation in which two DNS providers
are located on the nodes sharing the same power source. Hbal should
optimize this placement by simple failover.
Signed-off-by: default avatarOleg Ponomarev <onponomarev@gmail.com>
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 607647bd
......@@ -1711,6 +1711,7 @@ TEST_FILES = \
test/data/htools/hbal-excl-tags.data \
test/data/htools/hbal-forth.data \
test/data/htools/hbal-location-1.data \
test/data/htools/hbal-location-exclusion.data \
test/data/htools/hbal-migration-1.data \
test/data/htools/hbal-migration-2.data \
test/data/htools/hbal-migration-3.data \
......
group-01|fake-uuid-01|preferred||
node-1|16384|0|15360|409600|358400|16|N|fake-uuid-01|1|power:a
node-2|16384|0|15360|409600|358400|16|N|fake-uuid-01|1|power:a
node-3|16384|0|16384|409600|358400|16|N|fake-uuid-01|1|power:b
node-4|16384|0|16384|409600|358400|1|N|fake-uuid-01|1|power:b
inst01|1024|51200|1|running|Y|node-1|node-3|drbd|service-group:dns|1
inst02|1024|51200|1|running|Y|node-2|node-4|drbd|service-group:dns|1
htools:nlocation:power
htools:iextags:service-group
......@@ -59,6 +59,15 @@
>>>/Solution length=[1-9]/
>>>= 0
./test/hs/hbal --print-nodes=name,pcnt -t $TESTDATA_DIR/hbal-location-exclusion.data
>>>2/Final cluster status:
Name pcnt
node-1 0
node-2 1
node-3 1
node-4 0/
>>>= 0
./test/hs/hbal -t $TESTDATA_DIR/shared-n1-failure.data --ignore-dynu
>>>/Cluster is already well balanced/
>>>= 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