Skip to content
Snippets Groups Projects
Commit 2a1737eb authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Add a test for online rolling reboot scheduling


In the example configuration, the graph constructed by just connecting
primary and secondary instances is two-colorable. However, when taking
conflicting locations of secondary nodes into account, three reboot
groups are needed. Moreover, these reboot groups are not subordinated
to any two-coloring of the first-mentioned graph.

Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
parent 8d38fb72
No related branches found
No related tags found
No related merge requests found
...@@ -1028,6 +1028,7 @@ TEST_FILES = \ ...@@ -1028,6 +1028,7 @@ TEST_FILES = \
test/data/htools/rapi/info.json \ test/data/htools/rapi/info.json \
test/data/htools/rapi/instances.json \ test/data/htools/rapi/instances.json \
test/data/htools/rapi/nodes.json \ test/data/htools/rapi/nodes.json \
test/data/htools/hroller-online.data \
test/data/htools/unique-reboot-order.data \ test/data/htools/unique-reboot-order.data \
test/hs/shelltests/htools-balancing.test \ test/hs/shelltests/htools-balancing.test \
test/hs/shelltests/htools-basic.test \ test/hs/shelltests/htools-basic.test \
......
group-01|fake-uuid-01|preferred|
node-01-001|91552|0|91424|953674|953674|16|N|fake-uuid-01|1
node-01-002|91552|0|91296|953674|953674|16|N|fake-uuid-01|1
node-01-003|91552|0|91296|953674|953674|16|M|fake-uuid-01|1
node-01-004|91552|0|91296|953674|953674|16|N|fake-uuid-01|1
new-0|128|1152|1|running|Y|node-01-001|node-01-002|drbd||1
new-1|128|1152|1|running|Y|node-01-003|node-01-002|drbd||1
new-2|128|1152|1|running|Y|node-01-004|node-01-003|drbd||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
...@@ -22,3 +22,15 @@ node-01-001 ...@@ -22,3 +22,15 @@ node-01-001
./test/hs/hroller --node-tags=blue --no-headers -t $TESTDATA_DIR/multiple-tags.data ./test/hs/hroller --node-tags=blue --no-headers -t $TESTDATA_DIR/multiple-tags.data
>>>/^node-01-00.,node-01-00.,node-01-00.$/ >>>/^node-01-00.,node-01-00.,node-01-00.$/
>>>= 0 >>>= 0
./test/hs/hroller --no-headers --offline-maintenance -t $TESTDATA_DIR/hroller-online.data
>>>/node-01-00.,node-01-00.
node-01-001,node-01-003/
>>>= 0
./test/hs/hroller --no-headers -t $TESTDATA_DIR/hroller-online.data
>>>/node-01-00.,node-01-00.
node-01-002
node-01-003/
>>>= 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment