summaryrefslogtreecommitdiffstats
path: root/cns-libs
Commit message (Collapse)AuthorAgeFilesLines
...
* [CNS-1040] Resize PVC exceeding available free spaceValerii Ponomarov2018-10-241-0/+68
| | | | | | | Make sure that after failed attempt of PVC resize application POD continues to work and we are able to write data. Change-Id: I1dda1e4698ca4e569aa67740c2e9a5dca9a4e7bf
* CNS-439: adding heketi_down_pvc_delete caseApeksha D Khakharia2018-10-241-4/+8
| | | | | Change-Id: Id3b679cf3193b36bfd10fc498fb0ba930c5d2536 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* Fix all existing pep8 errorsValerii Ponomarov2018-10-234-39/+40
| | | | Change-Id: I97c949614ca70ea3e732c8c2ca70022d062ad04c
* Merge "[CNS-550] Try to create block volume exceeding free space"Valerii Ponomarov2018-10-221-2/+2
|\
| * [CNS-550] Try to create block volume exceeding free spaceValerii Ponomarov2018-10-181-2/+2
| | | | | | | | | | | | | | Validate behaviour of the system when we try to create block volume of size bigger than we have available free space. Change-Id: I754e09f7fc27ce9b7ac2b01dda163ce20573e963
* | Merge "CNS: adding libraries and 2 testcases for pv resize"Valerii Ponomarov2018-10-184-6/+378
|\ \ | |/ |/|
| * CNS: adding libraries and 2 testcases for pv resizeApeksha D Khakharia2018-10-184-6/+378
| | | | | | | | | | Change-Id: Idae22a28e4da867fd0567cbec49760d6f3a374f6 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* | cnslibs:heketi_ops: remove dead code in heketi_volume_create()Michael Adam2018-10-151-1/+0
|/ | | | | Change-Id: Ic363aed46b73326bdbbffd85b077a13c92501f55 Signed-off-by: Michael Adam <madam@redhat.com>
* CNS: moving libraries from dynamic_provsioning.py to openshift_ops.pyApeksha D Khakharia2018-10-102-463/+169
| | | | | Change-Id: I84b0399bad021fed29044c1946fdf27cccc2b6c8 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* Refactor 'test_dynamic_provisioning_block_p0_cases' moduleValerii Ponomarov2018-10-041-5/+30
| | | | | | | | | | | Improvements: - Stop using 'create_mongodb_pod' function, it is replaced with lightweight analog, which works ok on OCP3.11 - Pick up Glusterfs POD for recreation intelligently in 'gluster POD failure' test case. - Create secrets and storage classes from CLI, not using files. Change-Id: I28d819574533573e5f397e2d2db6f0433a59eb99
* Refactor 'test_dynamic_provisioning_p0_cases' moduleValerii Ponomarov2018-10-041-0/+60
| | | | | | | | | | | Improvements: - Stop using 'create_mongodb_pod' function, it is replaced with lightweight analog, which works ok on OCP3.11 - Pick up Glusterfs POD for recreation intelligently in 'gluster POD failure' test case. - Create secrets and storage classes from CLI, not using files. Change-Id: I26ba5046014b84caacbf9ab94a2509b4324e112f
* Revert "[CNS-1393][CNS-1394][CNS-1395] Restart glusterfs services test cases"vamahaja2018-10-011-44/+0
| | | | This reverts commit 014521179de579dc4744ab36efc0c2f8881e2f3c.
* [CNS-1393][CNS-1394][CNS-1395] Restart glusterfs services test casesvamahaja2018-09-301-0/+44
| | | | Change-Id: I0d2de16928de8a533745876094c673152012d812
* [CNS-945] Add arbiter test caseValerii Ponomarov2018-09-242-0/+40
| | | | | | Where we create POD with mounted arbiter volume and write data to it. Change-Id: I3a757f7fd71a0fd3f9f7d3cea463bbba5e399ec4
* Enhance 'oc_create_app_dc_with_io' functionValerii Ponomarov2018-09-211-3/+5
| | | | | | | | | | | | | List of enhancements: - Add handler for SIGTERM, which allows us to stop POD execution gracefully instead of timing out for grace period and killing it. - Use separate data file name for each of the PODs based on their unique names. It is much more useful approach when we create more than 1 POD in a DC. Without it we write to one single file with locks, with this change we write data to different files by each POD in parallel. Change-Id: If4bba1c017df1cf3240896522720fa08d5cf138b
* Merge "Added library for scalling jenkins"Valerii Ponomarov2018-09-2014-0/+876
|\
| * Added library for scalling jenkinsvamahaja2018-09-2014-0/+876
| | | | | | | | | | Change-Id: I49932f43ac4e41f06c559d1d18d142b8a084278e Signed-off-by: vamahaja <vamahaja@redhat.com>
* | Refactor 'test_disabling_device' test moduleValerii Ponomarov2018-09-171-22/+22
|/ | | | | | | | The single test in this module passes only in small amount of Heketi cluster states. So, refactor it completely to be reliable making it fail only on proper errors. Change-Id: I29251d4265ec5916d41bd3d69e21492f89097337
* [CNS-944] Add test with arbiter volume creationValerii Ponomarov2018-09-103-1/+62
| | | | Change-Id: I257f3e6a7389c9f15a4388c241e787782c186d14
* CNS: adding testcases for storage classApeksha D Khakharia2018-09-062-3/+7
| | | | | | | CNS-708,709,713,714,715 Change-Id: I61965e6d8b17b4bb49b10ebe26140945da9c4576 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* Merge "Update waiter for resource absence"Valerii Ponomarov2018-08-311-2/+10
|\
| * Update waiter for resource absenceValerii Ponomarov2018-08-271-2/+10
| | | | | | | | | | | | | | | | With additional logic for PVC deletion. Make it also wait for deletion of PVC's undelying PV. Doing so, we wait for deletion of volume from storage backend, Change-Id: I2aab7ebb7924968a2d1825056d5747df5b816cd7
* | Merge "Fix pep8 issues in cns_baseclass.py"Krishnaram Karthick Ramdoss2018-08-291-8/+8
|\ \
| * | Fix pep8 issues in cns_baseclass.pyValerii Ponomarov2018-08-011-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing not used imports and aligning code to satisfy 79 symbols per line. all the pep8 errors and warnings can be seen using following command: $ tox -e pep8 Change-Id: I409ce3fb547ed8891063f59d9218d8507e7bf6fc
* | | Add libraries for arbiternitin goyal2018-08-271-0/+157
| |/ |/| | | | | | | | | | | Which allow to set and remove tags on Heketi node and devices. Change-Id: Iaca652b059e58951f20bc975bf5724f6a5d0ca0e Signed-off-by: nitin goyal <nigoyal@redhat.com>
* | Add new library for creation of DC with app PODsValerii Ponomarov2018-08-231-0/+65
| | | | | | | | | | | | | | | | | | | | Constant I\O will run on its PODs. PODs are based on lightweight image called "cirros", which weighs about 10Mb. I\O will run on the mounted PV from PVC we specified in function arguments. Reuse this new function in couple of tests to show that it works. Change-Id: I7ae6c252a35f566ec674c8f8c17847fc37b554b8
* | Fix 'get_ocp_gluster_pod_names' function for compatibility with OCP3.11Valerii Ponomarov2018-08-231-1/+1
| | | | | | | | | | | | | | | | In OCP3.11 we get additional field for "oc get pods -o wide" command, so, update regex pattern to support new approach keeping compatibility with OCP3.10- versions. Change-Id: Ib16cdc1f584702cf829d5fc50e6dd87ef290e089
* | CNS: fix scale_pod_wait libraryApeksha D Khakharia2018-08-081-6/+8
| | | | | | | | | | Change-Id: I52cb4e6360676db1b75764ec314ec53c017ae8d2 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* | CNS: new library - heketi-scale-pod, pod-state-readyApeksha D Khakharia2018-08-062-42/+114
|/ | | | | Change-Id: I97eb3ae1d0af48d405a0187fe585e2732658f809 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* Merge "Refactor 'heketi_node_list' function"Krishnaram Karthick Ramdoss2018-07-271-42/+26
|\
| * Refactor 'heketi_node_list' functionValerii Ponomarov2018-07-191-42/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do following improvements to this function: - Remove support of python Heketi client, because it is dead code. It is dead code, because all of the tests which use this function, explicitly depend on the CLI output, not being compatible with it. - Remove useless 'json' arg, as CLI client does not support it for 'node list' command. - Parse list of node IDs in it, not delegating this to the consumer. - Raise exception in case we failed to get list of nodes And, of course, update all the places where this function is used. Making those places use less code compared to previous variant. Change-Id: I3f1ffe6082541e63dc3d638c19c54086aa12580f
* | [CNS-533] Add test for glusterblock logs verificationValerii Ponomarov2018-07-263-8/+175
| | | | | | | | | | | | | | | | | | | | | | Also, 3 new library functions for: - secret creation - storage class creation - pvc creation Which use "stdin" creation approach without files. Change-Id: Ifba768deba11048ede207d72af4d480898e8f5fc
* | Merge "Speed up execution of the 'edit_iptables_cns' function"Krishnaram Karthick Ramdoss2018-07-251-24/+17
|\ \ | |/ |/|
| * Speed up execution of the 'edit_iptables_cns' functionValerii Ponomarov2018-05-301-24/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One single run of this func, depending on the size of iptables config file on remote machine, could take minute or more for execution. It is completely unacceptable just for updating one single file. So, replace inline change of remote file with simple single operation of write to it with whole set of needed inner data. Having cluster of 2 nodes and trying to run tests which have this func in its 'setUpClass' method, we could wait up to the 5 minutes just to reach execution of first test. With growth of amount of cluster nodes this waiting time would only lineary increase. Change-Id: Ief0b4d3b879ddc9f65557df54beddbb51bc28ba5
* | CNS: fixing pod status libApeksha D Khakharia2018-06-291-9/+14
|/ | | | | Change-Id: Ic4ebb29be6070e982c53cfa63730e6dc4d955711 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* Fix broken dynamic_provisioning testsValerii Ponomarov2018-05-103-20/+42
| | | | | | | | Fix 2 autotests, remove skip decorator for them. And rework logic of mongodb template uploading for mongodb pod, so it takes couple of seconds instead of minutes. Change-Id: Ib2b09364ae435b9784b76c2f2581c197128f9649
* Merge "CNS: adding testcase and library for volnameprefix"Krishnaram Karthick Ramdoss2018-05-102-1/+51
|\
| * CNS: adding testcase and library for volnameprefixApeksha D Khakharia2018-05-082-1/+51
| | | | | | | | | | Change-Id: I84968bcfe19aa8af73f185be178079a8373915b3 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* | Add sample files to 'cnslibs' packageValerii Ponomarov2018-05-032-0/+2
|/ | | | | | | | | | With this change we do not face 'No such file or directory' error anymore running tests using 'cnslibs' installed in system. Without it we can run tests not facing such error only using 'tox'. To have it applied we need to reinstall the 'cnslibs' package. Change-Id: Ibf16ef6354210c4356e0c25f16582d0e73e0df13
* Merge "Fix calculation of the path to the template files"Krishnaram Karthick Ramdoss2018-05-021-10/+17
|\
| * Fix calculation of the path to the template filesValerii Ponomarov2018-04-041-10/+17
| | | | | | | | | | | | | | | | | | For the moment, CNS tests work only if we run tests from one concrete directory, and it is not the root dir for tests. So, calculate it safely and use safer variant for picking up the template files avoiding false "Not Found" errors. Change-Id: I7fbe90328550e0ce9f45d8eed228e7ed34f3a5ae
* | Fix picking up of the heketi serviceValerii Ponomarov2018-04-051-0/+8
|/ | | | | | | | | | Doing 2 following things: - Add 'heketi_service_name' config option to define the name of Heketi service in OCP. Without it we use hardcoded name 'heketi' which can be different on different setups. - Add switching to the CNS project for CNS tests. Change-Id: Iad308db7a1d63fc64ddd3f5b99823917b99c0706
* CNS : fixing name errorsApeksha D Khakharia2018-03-051-8/+1
| | | | | Change-Id: I356b35bcdce31f82734eb6d32824944cdb55aac6 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* CNS: heketi_url changeApeksha D Khakharia2018-02-212-22/+46
| | | | | Change-Id: I927166d4649a5318cea221219d471534bd258545 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* Add support of heketi_cli_user and heketi_cli_keyValerii Ponomarov2018-02-203-57/+131
| | | | | | | | | | | | Just define following config options: cns: heketi_config: heketi_cli_user: 'admin' heketi_cli_key: 'some_secret_admin_key' To make heketi tests use specific creds for auth. Change-Id: I60f6d6e3922de6602d8fd39656132a23f18ffc8c
* CNS: removing the mpathconf from masternodeApeksha D Khakharia2018-01-311-3/+3
| | | | | Change-Id: Ibfd065dcd03478f49a324798b08e2ae37da1836c Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* Merge "CNS: adding libraries for dynamic provisioning"Krishnaram Karthick Ramdoss2018-01-316-0/+628
|\
| * CNS: adding libraries for dynamic provisioningApeksha D Khakharia2018-01-306-0/+628
| | | | | | | | | | Change-Id: I0023dae5b4628b30b5434b0e10dc519a227fd3aa Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* | Merge "CNS: adding CNS base class"Krishnaram Karthick Ramdoss2018-01-305-1/+903
|\ \
| * | CNS: adding CNS base classApeksha D Khakharia2018-01-295-1/+903
| |/ | | | | | | | | Change-Id: Ieb03c52c7e8db9f37fe8f71692e5e0617a73a4c8 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>