| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
As per documenton [1], 'yaml.load(raw_data)' is deprecated and
suggested to use parameter 'Loader=yaml.FullLoader'. Fix such
instances of yaml.load in functions - oc_get_yaml, get_events
and enable_pvc_resize
[1] 'https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation'
Change-Id: I1fc5544f6f7f12b55e420486b4460f26db214139
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
'get_block_hosting_volume_list' will get failed in case user pass
'json=True' value as this function works on raw output of
'heketi_volume_list'. Add code to pop 'json' param in case user
pass 'json=True' value.
Change-Id: Iad053762fd1fa0c25bc4d01c038d20450e29676c
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
|
|
|
| |
Test case to validate metrics
add config data for metrics
add config data of registry namespace to validate metrics
Change-Id: I4886482ee33847f506ad898d4a313df866d0348c
|
|
|
|
|
|
|
|
|
|
| |
Provisioner name has been changed in "get_gluster_host_ips_by_pvc_name"
of openshift-storage-libs/openshiftstoragelibs/openshift_ops.py
module, since from OCS3.11.4 glusterblock storage class provisioner
name has been changed from gluster.org/glusterblock to gluster.org/
glusterblock-glusterfs
Change-Id: I2549b44e91a0f08384693cd55aea751acda458dd
|
|
|
|
|
|
|
|
|
| |
which completely duplicates "test_to_create_and_delete_dist_rep_vol"
in 'test_create_distributed_replica_heketi_volume.py' test module &
fix cleanup code for create_heketi_volume_with_name_and_wait in
openshift-storage-libs/openshiftstoragelibs/baseclass.py module.
Change-Id: I9b3dea28e6330e52caab09311e20b65dd48491b9
|
|
|
|
| |
Change-Id: I6c517278c3f8bf6f374ab60bc27768e503161278
|
|
|
|
|
|
|
| |
Add new TC remove or delete node from heketi, and verify gluster
peer status, bricks on the new node and heal info.
Change-Id: If4b6006a4a58fd581ac9851b377a82f69ce0f30f
|
|
|
|
|
|
|
| |
Add new TC heketi volume creation of size greater than the device size
and verify backup-volfile-servers, replicacount, brickscount etc.
Change-Id: I87cbf0e1d8326ad077f02cf465105aca3f8bdde7
|
|
|
|
|
|
|
|
|
|
| |
We try to distinguish strings from other iterable object types in
several our library functions and now it is not compatible with py3.
The problem is that in py2 strings don't have "__iter__" method,
but it exists in case of py3.
So, fix it by using py2/3 compatible check for string types.
Change-Id: I3f833b5e79f1563a3ae6a2bb9ae43d8919d82c30
|
|
|
|
|
|
|
| |
The purpose of this test case is to confirm that provisioning succeeds
if at least 3 nodes are UP in a CNS cluster with nodes >3.
Change-Id: I7fc1f851114d921f65e819db23502776526e6827
|
|
|
|
|
|
|
|
| |
Create network failure while deleting PVC's
Network side failure is introduced by opening and closing the ports
related to gluster-blockd.
Change-Id: Id3a749aa1a051bbce99b85046fa0a79831e85dd5
|
|
|
|
|
|
|
| |
Fix the library via adding cleanup power_on_vm which was missed during
library creation.
Change-Id: I6b2fe78378cac61cee5d630562c0ba7201bbaa4e
|
|
|
|
|
|
|
| |
Add new TC where we verify iscsi rediscovery is happening properly
on restart of initiator nodes when one gluster node is down.
Change-Id: I515bb27d43843f7c19c4a12b6531a212e9c3285a
|
|
|
|
|
|
|
| |
Add new TC where it will verify PID's of gluster volumes are same when
volume options value is different.
Change-Id: Ie0cae1ad3fdfd35e4c0e7f01e3a048b62b185369
|
|
|
|
|
|
|
|
| |
Move 'topology_volumes_with_bricks' func to the "heketi_ops" module
to be able to use it in other test cases.
Change-Id: I7cca884a4f3fb34ec15bb947d3c39d9226e294d0
Signed-off-by: Sri Vignesh <sselvan@redhat.com>
|
|
|
|
|
|
|
| |
Confirm no inconsistencies occur in targetcli when block
devices are created with one block hosting volume down.
Change-Id: I2a755ef2a88c6e6ca5326be3787ac07c0fb7db26
|
|
|
|
|
|
|
|
|
|
| |
Fix consists of -
- Remove steps for add device validation.
- Add steps for gluser peer status validation.
- Add steps for endpoints validation.
Change-Id: I773a883b1ea8bb2bc93660db3459fd864fcd1317
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
| |
Change-Id: I78eb0975c60d1c16b05914bed74b6f942dd0335e
|
|
|
|
|
| |
Change-Id: I4a2ac7b819929c2de6c8ea5520257800d2e134cc
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
|
|
|
| |
Create network side failure by opening and closing the ports
related to gluster-blockd during creation of the PVC's,
Verify PVC's are bound and validate multipath.
Change-Id: Ibc53a13e2abb8674661da83d5881a13bbb2ad7fb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In OCS 3.11.4 was changed the approach for 'provisioners' in storage
classes due to the BugZilla bugs [1] and [2].
So, change the approach for getting 'provisioner' value in this project
making it be autocalculated based on the data taken from the
block provisioner pod, which is located in the working namespace.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1732787
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1738394
Change-Id: Ic1037038e39abba2b2a1ad6dc3ddbfe42473cb88
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Define 'check_heketi_db_inconsistencies' config option setting
there 'False' or 'True' values. Default value is 'True'.
If heketi client doesn't support the 'heketi db check' feature, then
'heketi db check' just won't be performed.
Change-Id: I7faff35b15e40d864c0377ae7fee154e217d8eae
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change required due to -
1. Get block volume by prefix is common step which is used
in two places for now and will be used in other places
too.
2. Hence add library "heketi_blockvolume_list_by_name_prefix"
in heketi_ops.py.
3. And use added library and update code from class
"GlusterStabilityTestSetup" and "TestGlusterBlockStability".
Change-Id: I9e60d58d5c84380104081335745270b3d21ff071
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
| |
Change-Id: I22410ad8c81ca71ac9c2cbaddd66f086abcdf3c5
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
| |
Change-Id: I1055b232711c95fdbf89ba9fe8b9d61a561fbcd5
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
| |
Change-Id: I96759bbcd74cad7755c99255b4b96261133d5adc
|
|
|
|
|
|
|
|
|
| |
As of now user can only pass dc name as argument
to validate iscsi and multipath session, with this
support user can also pass pod name by specifying
rtype=pod
Change-Id: Iecc86edc2a2239fc05535f0e4f7e9ae93d5e76f5
|
|
|
|
|
|
|
|
|
|
| |
Create 8 Block PVC and wait for them to get bound. Delete created
PVC's and create 8 more PVC's simultaneously. Kill the tcmu-runner
service while PVC creation and deletion is in the progress. Restart
all the services related to block volumes and verify all pending
operations are completed sucessfully.
Change-Id: I0cb4cd29b92233a65be93f4b96f1a9a0cb8bed9f
|
|
|
|
|
|
|
|
| |
Add library to check db results
Validate count of volumes of heketi and db are same
Change-Id: I6e75f2d8d5f19a94c1dced5a07f9c948b4de9ef4
Signed-off-by: Sri Vignesh <sselvan@redhat.com>
|
|
|
|
| |
Change-Id: I46ad6aefd3c699b4ce7807db89c2016791a48e05
|
|
|
|
|
|
|
|
| |
Add new function called 'wait_for_pvcs_be_bound', which allows us
to wait for 'Bound' state of multiple PVCs using single timeout.
Also, reuse this new function in the baseclass.py
Change-Id: Ia3809d322925b90fdef984db59b3e9e83a82abc7
|
|
|
|
|
|
| |
Change the 'cluster' to 'clusters' in kwargs description.
Change-Id: Iac9170d0549adc6bb5b76f5772de47d1db083951
|
|
|
|
|
|
|
| |
Remove json description from heketi_device_add library as it is not
supported.
Change-Id: If3121294dc9456587af36d65726842f399730a9b
|
|
|
|
|
|
| |
This reverts commit 046244942f7ad3f5f24b675dfa299ad955f1412f.
Change-Id: I1f49d613af3dd236bf4113db757cbf9ce752e973
|
|
|
|
|
|
|
|
|
|
| |
Add new function called 'wait_for_resources_absence',
which allows us to wait for absense of multiple resources
using single timeout.
Also, reuse this new function in the baseclass.py for PVC/PV
removal waitings.
Change-Id: I6e3daae012199e50d3aeb68b697cfae801b0b49b
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix consists of -
- Use "**kwargs" approach in the "heketi_node_list"
function as it is done in lots of other functions.
- Parse the CLI output in the "heketi_node_list" function
using regex instead of the splitting and stripping strings.
- Combine test cases related to the same feature into one
module - test_heketi_node_operations.py
- Remove redundant checks which already exist in common
libraries.
- Remove unnecessary logging.
Change-Id: I815ddfbbacb765140229e7630ec87a6bbaa6255b
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
| |
Change-Id: I4a6fd02f5713b4e86a9d70cdaffd3ca9369932f4
|
|
|
|
|
|
|
| |
Add new TC verify PVC's create and delete fails while gluster-blockd
and tcmu-runner services are down on one node.
Change-Id: I5acbcfd6c9a227c0cce21c62f5e162caf970aa22
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix consists of 2 parts:
- Calculate correctly left time for waiting in
'scale_dcs_pod_amount_and_wait' function. Before, it had bug,
where we were waiting less time than requested. And it led to the
unexpected timeout errors.
Example: it could fail waiting only 180sec having 600sec as real
timeout.
- Reset 'attempts' on the instantiated 'waiter's to avoid
redundant waiting reusing the single waiter instance.
Example. On deletion of 20 PVCs we save about 1,5 minutes.
In whole test suite we create much more PVCs than 20.
Change-Id: I5d06a63dd0c2c5bd67fdb09fef87948d65e6bf22
|
|
|
|
|
|
| |
As part of the fix loaded the output into json which was missed.
Change-Id: Ia3d07f768362232ec2b34641be1a6ae4c4eec399
|
|
|
|
|
|
|
|
|
|
| |
Add 10 test cases for testing Heketi zones feature.
To make all the Heketi zones test cases run in the single suite using the same
cluster set 'common.allow_heketi_zones_update' config option to "True" value.
By default it is set to "False" and only small set of test cases can run
having such value.
Change-Id: I69a1f7c96c9f52a06134e715e113ccd9b06764e6
|
|
|
|
|
|
|
|
|
|
|
| |
In test case when we use large disk size, heketi takes time to create
volume and due to timeout it gives error.
Add fix in such test cases to check if volume created after getting
an exception, get details of such volumes or raise exception in case
it fails to create volume.
Change-Id: I1c23a8c6558c23edf8947771e4f41a4bd3ffd66a
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Gluster block test cases failed with error "self.node" variable not found
as self.node variable is not created in "GlusterStabilityTestSetup" class.
Fixed change in baseclass.py by using variable "self.ocp_client[0]".
Change-Id: I2affabbb626b7e266a9bb243d3ec249229ec9670
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
"get_ocp_gluster_pod_details" library gives error
"IndexError: list index out of range" in case of
independent mode setup as "get_custom_resource"
returns "[[]]" which in not none.
Added fix to check if any element present in list.
Change-Id: Iffd081f835ffaf9cb50c020cd297444ea2678950
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
| |
Change-Id: If30737958bc667264fc01fe81d411f406b501918
|
|
|
|
|
| |
Change-Id: I5886680a0d5666c68c677893e0fb327be0e80760
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
|
|
|
| |
Move get_block_hosting_volume_by_pvc_name from
test_restart_gluster_services to baseclass to
be able to reuse it in other test modules.
Change-Id: I65847792601b422293d4baed2ccade664ad7e54b
|
|
|
|
|
|
|
| |
Add new TC where we verify rediscovery of iscsi paths
which happen after abrupt reboot of initiator node.
Change-Id: I841e875881c47f8215d48821cd76c0399d43badc
|
|
|
|
|
|
|
| |
Added Error msg in GlusterBlockBaseClass for better visibility in case
of failures or debugging purpose.
Change-Id: Ia92cd6f6129cb5aa55f6f8e807ef056e54691956
|
|
|
|
|
|
| |
Changed the description of libraries in gluster_ops where it was wrong.
Change-Id: I8ea9ec4ff1f28250d4544d6329b386271cf1e551
|