| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Create storage class one for file and one for block volumes with invalid
clusterid. Create PVC from those SC's and it should not go in bound state
Change-Id: I73848a4e213cc34e374eddbe0eb27d3e35e27d71
|
|
|
|
|
|
|
| |
Restructure initiator_side_failures and make another function out of it
which can be used for verification of iscsi and multipath at many places
Change-Id: I6bc4b9e7679bee413d726be426df5796eaf97fc8
|
|
|
|
|
|
|
| |
Sometimes grep cmd shows '--' symbol. Which is breaking code. So changed
the code to exclude '--' via grep cmd.
Change-Id: I3ef903e19196b2d0d70e074a676881725240983b
|
|
|
|
|
|
|
| |
Ansible will use this file and fail if it is absent.
So, create empty SSH config file if it is absent.
Change-Id: I86f424c30229e72eaf2e6a50a194988d5d6ac528
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It will allow us to recreate SSH connections when it is broken.
Also, do following additional things:
- Fix 'podcmd' module, where 'user' argument for 'g.run' is missing in it's
wrapper.
- Use "g.log.error" command to log errors when they appear inside of
the 'cmd_run' func.
- Delete several unused commands, instead of fixing them.
- Update several test cases's logic due to the changes in the libraries.
Change-Id: I908e5adcff739b6ab3a4aefaebfe46abdee22655
|
|
|
|
|
|
|
|
|
|
| |
It happens, that saved SSH connection gets corrupted and we get
errors trying to run commands on remote machines.
So, to avoid such problem, monkey-patch Glusto's special method
for getting SSH connections with ourselves-crafted method
which recreates SSH connection in case it is broken.
Change-Id: Iee69d21f3e23541480653205d86fefef2d842d34
|
|
|
|
| |
Change-Id: I5cada2a8dff40516310de38e23b98de2a64efc11
|
|
|
|
|
|
|
|
|
|
|
|
| |
It was broken it 2 places:
- It is first tc in the 'resize' test suite, which runs right after
OCP API restart. And it happens to fail to talk to the OCP API.
So, fix it by adding API service waiter in place where we restart it.
- In this tc we delete huge volume which consumes almost whole disk
space. And happens that this operation takes up to the 6 minutes.
But we were waiting only for 5 minutes. So, just increase timeout.
Change-Id: Ic6ada67b96ac8a37d13f57c0576e862226517b0d
|
|
|
|
|
|
|
| |
Instead of crafting it manually. It allows us to use both approaches
from 'openshift-ansible' lib for naming of this dc - old and new ones.
Change-Id: Iac4513a50de51aefd401d2af4c798366ec10b02a
|
|
|
|
|
|
|
|
|
| |
Now, this function hides info about the real problem which caused error
So, make it raise exceptions in place with info about error for ease of
debugging.
Also, fix it's usage providing mpath always.
Change-Id: I8cbc62a12f3999e3d64fb6b504865f30b1602cf1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With this playbook it is now possible to generate config file
for automated test cases.
Example of it's usage:
$ tox -e ocp3.11 -- ansible-playbook -i
ocp-master-node-hostname-or-ip, \
playbooks/generate-tests-config.yaml \
-e output_filepath=foo-tests-config.yaml \
-e additional_devices=/dev/sdf
Change-Id: I53df756deb7c1a01ea47db2a9328b567b5a1ebaf
|
|
|
|
| |
Change-Id: I19d737f8cfef569897ec6ece1389c1849538e0df
|
|
|
|
|
|
|
| |
It happens that we get "No ssh connection" errors from time to time.
So, avoid such errors recreating SSH connections if such error appears.
Change-Id: Idc71c4ceece6b3040c396b25da1deadcefd29b60
|
|
|
|
|
|
|
| |
This TC verify the expanshion of BHV and after expanding volume verify
that space is usable.
Change-Id: I2621aedc1cbddcad374fe52013aba2d48acfd1e0
|
|
|
|
|
|
|
| |
Before, it was hardcoded. So, fix it by reading those values
dynamically.
Change-Id: Ibab2de8b4f349db4ad6f4bb1afeddc79af444c53
|
|
|
|
|
|
|
| |
The purpose of TCs is to validate that block device size cannot be more
than the block hosting volume.
Change-Id: I35aac44bdc2b3e72f1de9ab167e1468ece932f14
|
|
|
|
|
|
|
| |
"test_pvc_deletion_while_pod_is_running" test case is not supported
on OCP 3.9. Added skip statement for OCP 3.9
Change-Id: I5af35145c35371e7eed37d78c2fb9ce23dc9ffa6
|
|
|
|
| |
Change-Id: I802a7438f531c709f0da3a8635b192e26bc883b4
|
|
|
|
|
|
|
| |
Replace usage of "types.StringTypes" with "six.string_types",
because the latter one is compatible with both - py2 and py3.
Change-Id: Ie8f9495914fca527da086af0915130470e3fd3e0
|
|
|
|
|
|
|
| |
As part of the fix we are fixing "AttributeError: 'str' object has
no attribute 'append'" in 'get_events' func
Change-Id: Ica2489e2d48f9ec8065fe0863b6c5d1633e93860
|
|
|
|
|
|
|
| |
Project has lots of inconsistencies with OCP3.6 and 3.7
So, fix it.
Change-Id: I8d38773637b779e1c2e1631568f100c1ab1fdd50
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Required steps to run test cases using py3:
1) Install py3
2) Install 'tox' package using "pip3"
3) Run test cases using tox package installed via pip3
Note that full py3 support is not tested yet. It only allows you to run
it on py3 not providing any guarantees.
Example:
$ python3 -m tox -e functional3 -- \
glusto -c /path/to/the/config/file.yaml \
'--pytest=-v -rsx tests -k test_glusterblock_logs'
Change-Id: I610faac0b75364c401734b6f892649893ca2320e
|
|
|
|
|
|
|
| |
Verify that when heketi is down PVC expansion should not work.
Bring heketi up and running, when heketi is up expansion should work.
Change-Id: I4303a82581a91db220ff226f53dea7dc49d22d93
|
|
|
|
| |
Change-Id: I1d9c7e14525ad8de35bfa7be8fffc533c010248b
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
By doing following changes:
- Fix the deployment logic using separate set of vars for
installation of OCP3.6 and 3.7, which were broken by the too new
config options, which started being supported only since OCP3.9.
- Add waiters for oc services after nodes reboot.
- Do not update docker for OCP3.6 and 3.7 versions. Because,
docker version should be fixed for it.
- Add all cluster nodes to the 'OSEv3' Ansible host group,
because it is required in some places.
- Do not specify 'openshift_use_crio' option for all OCP versions
except OCP3.11 for 2 reasons:
-- It is supported only for this OCP version
-- Other versions try to run some CRI-O plays just having this option
defined. In other words - avoid bugs.
Change-Id: I7ab3db30a828f0e965c907282a54b2ae9aead00a
|
|
|
|
|
|
|
| |
Check if volume name is combination of string 'vol_' and volume id
and check volume is present in heketidb and gluster cluster.
Change-Id: I755a6447fe653a4ba148798f4c0317aa08a4a4eb
|
|
|
|
|
|
|
|
| |
BZ-1632873 was fixed, hence, unskip test cases which were
skipped due to this BZ. Also, make it run only on containerized
Gluster clusters.
Change-Id: Iee49a303c4f191652d1c94c18e830e6d2fb4e381
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It happens, that Heketi commands hang.
So, to avoid cancelling of whole test runs, add
timeouts for Heketi commands.
By default, timeout is 120 sec (2 min).
If it is needed to change default value, then
define following config option:
common:
heketi_command_timeout: 180
Change-Id: I79f33daa05bde9a37245e94e66042944c6cd9242
|
|
|
|
|
|
| |
Because BZ-1609703 was fixed.
Change-Id: I86e7690e8a190d9f913fb0140780a0bcbcce1e72
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move all the files of 'cns-libs/cnslibs/common' dir
to the 'openshift-storage-libs/openshiftstoragelibs',
because 'common' is the only dir there, which doesn't really makes sense.
And "cns" is old project name, so, replace it with
"openshift-storage-libs".
Also, fix all the imports of these libs.
Change-Id: Ife00a73554e73b21b214b15016b0c8dbbf423446
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For case when it is needed to provide info for bugreport
or debug in general.
It can be run anytime, separately from the deployment logic.
Example command for running this new playbook:
$ tox -e ocp3.11 -- ansible-playbook -i 127.0.0.1, \
playbooks/gather_logs.yaml \
-e config_filepath=/path/to/the/cns-automation-config.yaml \
-e output_artifacts_dir=../cluster_logs_ocp310_ocs311/
NOTE: 'tox -e ocp3.11' can be omitted only in case you enable
'yedit' (yaml edit) module by other means.
Change-Id: Icb6bf442c07d8d949c930747e8131231a2ff112c
|
|
|
|
|
|
|
|
|
|
| |
To enable or disable CRI-O just define following option:
openshift_use_crio = true/false
In the "ocp-on-vmware.ini" config file.
Change-Id: Ibd3843d8aa13bfacb0d927142786dc5599e65315
|
|
|
|
|
|
|
|
| |
When VMWare hypervisor is under heavy load,
node boot up may be slower than 3 minutes.
So, increase timeout from 3 to the 6 minutes.
Change-Id: I27f0166d6c4221f7a647d55df704f429bf9d6dcc
|
|
|
|
|
|
|
|
| |
As of now, it raises exception when our command doesn't fail, but has
empty output. It is bug.
So, fix it by checking only return code being non-zero.
Change-Id: I6c029e17220d6ae7eb184348d84c189ba03274c8
|
|
|
|
| |
Change-Id: Ib596c79ea3e7c3dd6c83c533e708313f3c4ecc2f
|
|
|
|
| |
Change-Id: If79bab256041a75b6388bdabd9ed0aec56d0340f
|
|
|
|
|
|
|
| |
"wait_for_pod_be_ready" and "enable_pvc_resize" hide errors details
when errors appear. So, fix it by printing full error info.
Change-Id: I250ff723c0453fd487f8c1810cdd2c1d7d2ec16f
|
|
|
|
|
|
|
|
| |
Rename test module to remove P0 from its name.
Which will let us comsume same files for adding other priority test
cases as well.
Change-Id: I66cbb34ba7ecee1130b7d55952310955a9fe8722
|
|
|
|
|
|
|
|
|
|
| |
Move all the files of 'tests/functional/common/' dir
to the 'tests/functional/', because 'common' is the only
dir there, which doesn't really makes sense.
Do the same about 'tests/functional/common/heketi/heketi_tests'
and 'tests/functional/common/heketi/'.
Change-Id: I1fa55e2e7bf09e9b9115629b06e1fd160e291a36
|
|
|
|
|
|
|
| |
Add 2 test cases, where one verifies creation of an app pod on the
Gluster node and another on the separate node
Change-Id: I99dfc5db7fa74d0f69115cfed470f72e66b1a256
|
|
|
|
| |
Change-Id: I519ce5c26f7bd6480a48512744626ba812524413
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Following modules:
- deployment/playbooks/library/vmware_folder.py
- deployment/playbooks/library/vmware_resource_pool.py
Were broken by '2035d7e6' commit with pep8 fixes.
It was broken due to the change of the import module logic which led to
the absence of required modules imports.
So, fix it by using 'expected' import approach - importing
functions directly, not modules.
Change-Id: Ib1f9db410a8aa0171fea0e7017e29148167baf65
|
|
|
|
| |
Change-Id: I95154066af3e574059199ced18239f7e34c95335
|
|
|
|
|
|
|
| |
Changing assertion logic. Now, instead of checking fstab file,
we check brick paths presence on Gluster PODs and nodes.
Change-Id: I00ed0cb5ef18b67ad0f112276120624c0c0b0763
|
|
|
|
|
|
|
| |
In case of error on CRS node we get incorrect error message.
Instead of command error we get another kind of an error.
Change-Id: Ibfd21d518c220951a981f23daa5d32b1963061f2
|
|
|
|
|
|
|
|
|
|
|
|
| |
Right now, we use single prefix for all the test cases of
'test_gluster_services_restart' python test module.
It is fragile approach, because if first test fails to delete
heketi or gluster volume, then all other test cases fail too,
but should not do it.
So, use unique prefixes for each of the test cases in this module,
to make failure be unique per test.
Change-Id: I1cc68ffc0553f79d0b0623335a2aaf985feabade
|
|
|
|
|
|
|
| |
User's home dir in CRS logic was hardcoded as "root".
So, fix it by calculating home dir of the current user.
Change-Id: Ib586fa605390126eb3a2efaf8c93856e52676aaf
|
|
|
|
|
|
|
|
|
|
|
| |
Renamed cns_baseclass.py to baseclass.py with updated BaseClass.
Merged HeketiBaseClass to BaseClass with appropriate changes.
Updated delete_volumes and delete_block_volumes methods used in
test case method with heketi_delete_volume and heketi_blockvolume-
delete.
Change-Id: I8f623f1692cd863dc8ff041f7e8525ee0dc84f7b
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before, 'heketi_version.py' module didn't consider version of the
'heketi server' package on the Heketi POD. But it is more valueable than
depend on the client only. So, make all the requested version
comparisons be applied to the server's version.
Interaction with the module's logic stays the same, just one behavioral
thing changes: now, if client version is older than server's one, we
raise exception.
Change-Id: I317102556d4a5f51607c3b9da93da0d4a3b74f7f
|
|
|
|
|
|
| |
To let system services start up in time.
Change-Id: I4b4781119656c9fdc75017a28c80c20bdd0eae21
|