gluster / glusto-tests

Functional test framework for glusterfs.
GNU General Public License v3.0
19 stars 43 forks source link

[Test]: Add tc to check gluster operations after removing firewall #58

Closed nik-redhat closed 3 years ago

nik-redhat commented 3 years ago

Test Steps:

  1. Add firewall services to the zones on 2 nodes
  2. Create a cluster using the 2 nodes
  3. Check peer status on both the nodes
  4. Remove firewall services from both the nodes
  5. Check peer status on both the nodes
  6. Create a distribute volume using both the node bricks and start it
  7. Mount the volume on different node, it should fail
  8. Cleanup the volume, Detach the node and try to probe again
  9. Check peer status
  10. Remove firewall services permanently and reload firewall
  11. Check peer status
  12. Create a distribute volume using both the node bricks and start it
  13. Mount the volume on different node, it should fail

Note to reviewers: Modified a few steps as per the working of the test case.

Signed-off-by: nik-redhat nladha@redhat.com

nik-redhat commented 3 years ago
pytest: -v -s -x tests/functional/glusterd/test_gluster_operations_after_removing_firewall.py
================================================================= test session starts ==================================================================
platform linux2 -- Python 2.7.5, pytest-4.6.11, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python
cachedir: .pytest_cache
rootdir: /home/nladha/glusto-tests
collected 1 item                                                                                                                                       

tests/functional/glusterd/test_gluster_operations_after_removing_firewall.py::TestGlusterOperationsAfterRemovingFirewall::test_gluster_operation_after_removing_firewall PASSED

============================================================== 1 passed in 37.77 seconds ===============================================================

Verified: +1

nik-redhat commented 3 years ago

@kshithijiyer @aloganat @milindw96 @pranavprakash20 @balakreddy @leelavg could you all please review the PR.

leelavg commented 3 years ago

@nik-redhat as discussed offline, please add the result here after running the test in provided setup.

nik-redhat commented 3 years ago
pytest: -v -s -x tests/functional/glusterd/test_gluster_operations_after_removing_firewall.py
=============================================================================================== test session starts ===============================================================================================
platform linux2 -- Python 2.7.5, pytest-4.6.11, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python
cachedir: .pytest_cache
rootdir: /home/nladha/glusto-tests
collected 1 item                                                                                                                                                                                                  

tests/functional/glusterd/test_gluster_operations_after_removing_firewall.py::TestGlusterOperationsAfterRemovingFirewall::test_gluster_operation_after_removing_firewall PASSED

============================================================================================ 1 passed in 39.06 seconds ============================================================================================
Ending glusto via main()

Verified: +1