summaryrefslogtreecommitdiffstats
path: root/tests/functional/afr/test_client_side_quorum.py
Commit message (Collapse)AuthorAgeFilesLines
* Adding test case : test_client_side_quorum_with_fixed_for_cross3Vijay Avuthu2018-05-111-0/+651
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Description: Test Script to verify the Client Side Quorum with fixed for cross 3 volume * Disable self heal daemom * set cluster.quorum-type to fixed. * start I/O( write and read )from the mount point - must succeed * Bring down brick1 * start I/0 ( write and read ) - must succeed * Bring down brick2 * start I/0 ( write and read ) - must succeed * set the cluster.quorum-count to 1 * start I/0 ( write and read ) - must succeed * set the cluster.quorum-count to 2 * start I/0 ( write and read ) - read must pass, write will fail * bring back the brick1 online * start I/0 ( write and read ) - must succeed * Bring back brick2 online * start I/0 ( write and read ) - must succeed * set cluster.quorum-type to auto * start I/0 ( write and read ) - must succeed * Bring down brick1 and brick2 * start I/0 ( write and read ) - read must pass, write will fail * set the cluster.quorum-count to 1 * start I/0 ( write and read ) - read must pass, write will fail * set the cluster.quorum-count to 3 * start I/0 ( write and read ) - read must pass, write will fail * set the quorum-type to none * start I/0 ( write and read ) - must succeed Change-Id: Ic159aee3ca80f6a584a46e2ac7986f4007346968 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Adding test case : test_client_side_quorum_with_fixed_for_cross2Vijay Avuthu2018-05-041-1/+497
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Description: Test Script to verify the Client Side Quorum with fixed for cross 2 volume * Disable self heal daemom * set cluster.quorum-type to fixed. * start I/O( write and read )from the mount point - must succeed * Bring down brick1 * start I/0 ( write and read ) - must succeed * set the cluster.quorum-count to 1 * start I/0 ( write and read ) - must succeed * set the cluster.quorum-count to 2 * start I/0 ( write and read ) - read must pass, write will fail * bring back the brick1 online * start I/0 ( write and read ) - must succeed * Bring down brick2 * start I/0 ( write and read ) - read must pass, write will fail * set the cluster.quorum-count to 1 * start I/0 ( write and read ) - must succeed * cluster.quorum-count back to 2 and cluster.quorum-type to auto * start I/0 ( write and read ) - must succeed * Bring back brick2 online * Bring down brick1 * start I/0 ( write and read ) - read must pass, write will fail * set the quorum-type to none * start I/0 ( write and read ) - must succeed Change-Id: I415aba5db211607476fd7345c8ca6f4d49373402 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Adding test case test_client_side_quorum_with_auto_option_overwrite_fixedVijay Avuthu2018-05-021-2/+152
| | | | | | | | | | | | | | | | | | Description: Test Script to verify the Client Side Quorum with auto option * check the default value of cluster.quorum-type * try to set any junk value to cluster.quorum-type other than {none,auto,fixed} * check the default value of cluster.quorum-count * set cluster.quorum-type to fixed and cluster.quorum-count to 1 * start I/O from the mount point * kill 2 of the brick process from the each replica set. * set cluster.quorum-type to auto Change-Id: I102373d1a53635563909e4fb80a01d98c24d3355 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Fix pylint failures on masterNigel Babu2018-04-171-53/+50
| | | | Change-Id: I43a5b87c4acfd3df9483ca869d926714325ae1b9
* Test client side quorum with auto option for a x2 volume and client quorum ↵Vitalii Koriakov2018-03-281-0/+285
| | | | | | | as auto first brick must be up to have a rw filesystem in a x2 volume Change-Id: I98b0808070e6d254b1deeb1a3a744d19adccbf03 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Fix up coding style issues in testsNigel Babu2018-03-271-84/+74
| | | | Change-Id: I14609030983d4485dbce5a4ffed1e0353e3d1bc7
* Test client side quorum option as auto should be local to volume and not ↵Vitalii Koriakov2018-02-161-3/+369
| | | | | | | global to whole cluster Change-Id: I9cd8ae1f490bc870540657b4f309197f8cee737e Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Adding test case test_client_side_quorum_with_fixed_validate_max_bricksVijay Avuthu2018-02-021-0/+50
| | | | | | | | | | | | | | | Description: Test Script with Client Side Quorum with fixed should validate maximum number of bricks to accept * set cluster quorum to fixed * set cluster.quorum-count to higher number which is greater than number of replicas in a sub-voulme * Above step should fail Change-Id: I83952a07d36f5f890f3649a691afad2d0ccf037f Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
* Adding Client Side Quorum Test CaseVijay Avuthu2018-02-011-0/+294
Change-Id: I73512dde33207295fa954a3b3949f653f03f23c0 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>