]> git.proxmox.com Git - pve-ha-manager.git/commit
test/sim: allow to simulate cfs failures
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Nov 2017 10:53:06 +0000 (11:53 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 30 Jan 2018 08:31:03 +0000 (09:31 +0100)
commitba2a45cd9d39116044fef403e09c97d58ea15f4c
treec59e31475b08046b3861917fa5db1e391f997fe8
parent3166752f13ae02f031b13f3f79d3e80b30ddea3a
test/sim: allow to simulate cfs failures

Add simulated hardware commands for the cluster file system.

This allows to tell the regression test or simulator system that a
certain nodes calls to methods accessing the CFS should fail, i.e.,
die.
With this we can cover a situation which mainly happen during a
cluster file system update.

For now allow to define if the CFS is read-/writeable (state rw) and
if updates of the CFS (state update) should work or fail.

Add 'can read/write' assertions all over the relevant methods.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
src/PVE/HA/Sim/Env.pm
src/PVE/HA/Sim/Hardware.pm
src/test/test-cfs-unavailable1/README [new file with mode: 0644]
src/test/test-cfs-unavailable1/cmdlist [new file with mode: 0644]
src/test/test-cfs-unavailable1/hardware_status [new file with mode: 0644]
src/test/test-cfs-unavailable1/manager_status [new file with mode: 0644]
src/test/test-cfs-unavailable1/service_config [new file with mode: 0644]