| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
Change-Id: I9ab3c6bea56a02f76ce818ee095ffe4afc0e64c0
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
|
|
|
| |
Trying to create pvc with defined arbiter file size and
verifying that when we are expanding volume it is expanding
according to avg file size
Change-Id: I5c39339f70702bf685c237ae16e21f54384e51db
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This test case talks to the Gluster PODs directly. It is not
compatible with Standalone Gluster clusters.
So, fix this test by reusing special common function,
which allows us to abstract from Gluster cluster deployment type.
Change-Id: Ib131984ac0a4623d1d847f9961be26da573d8513
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This test case expects that Gluster cluster has the same amount of
volumes as Heketi does. But, it is wrong expectation.
We may either create gluster volumes without Heketi or have
mismatches after some other Heketi failures.
So, fix this test case by comparing starting and resulting amount of
volumes in Gluster and Heketi.
Change-Id: I322c922fbdf102ccc5fb9f2145eef7b3f1d1a80a
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
For the moment, we have 3 different test cases which use
'additional_devices' config option. All of them will fail in case
of specific structure of config.
So, make those test cases be smart enough to understand absence of
such option data and skip test cases with useful info about it.
Change-Id: Id31de7e20188041d2148edf37b3f8c95645c5e52
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Removing this code as it is in additional library file, requires to
pass config through config file and requires to upload the scripts.
Also it contains hardcoded credentials.
Will add new function in openshift_ops.py library similar to
"oc_create_app_dc_with_io" with new updated template.
Change-Id: I7cfce3fe23b222d40bff1c829afa97f2ffcb621d
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|/
|
|
|
|
|
|
| |
In this tc we filter pod by dc name with hard-coded project name.
It is completely incorrect approach.
So, fix it by getting project name from config.
Change-Id: I062bc22c9cbf22bbb101a48bad94d0540a3c4bb8
|
|\ |
|
| |
| |
| |
| |
| | |
Change-Id: I2379043b771cc654eb227d457223b3a24434fd21
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This test case has fragile logic. It doesn't assume
we expect new block hosting volumes to be created when we calculate
the size for block volume.
So, fix it by doing 2 things:
- Use total block hosting volume size, not it's 'free space'.
- Get info of block hosting vol if block vol gets created unexpectedly,
and read it's size. If the size is bigger than block vol's size, then
pass the test.
Here, we assume that existing, during calculation,
block hosting volumes were not the biggest possible and
autocreation is enabled in addition to the presence of
the available size on the Heketi devices.
Change-Id: Ic7d5325b1144dce0e56999617f3c6d7c0829e42d
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Because it was very fragile and skipped due to bug.
So, after bug was fixed we need to enable it back.
But, also, considering it's stability, it required complete change of
logic. So, it is rewritten completely and moved to more appropriate
module where we have other test cases which perform device operations.
Change-Id: I1b8c18c8ea883f83861e81e97c534459d7588175
|
|\| | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It was skipped some time ago due to the bug. Now this bug is fixed.
So, we need to unskip it. So, do it, in addition to the required
refactor.
Change-Id: I7c426e9cd3dc38ed48e5b91870bc10bd63998694
|
|\| | |
| |_|/
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Current 'test_add_device_heketi_cli' [CNS-877] tc completely duplicates
another existing tc - 'test_device_remove_operation' [CNS-766].
Being, on it's turn, very fragile and requiring refactor.
So, remove this test as it makes no sense neither to keep it skipped nor
to refactor it.
Change-Id: I40cf7b3d015d1345f0ac2a89569dd64cd67711d3
|
|\ \ \
| |/ /
|/| | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In some rare cases we get following error trying to create distributed
volume:
- Insufficient suitable allocatable extents for
logical volume tp_foo: 25344 more required.
So, fix such situation by catching exception with such message and
retrying with smaller volume size.
Change-Id: I015a4547347858cd8aff9e566e3dc662a94b6b83
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Doing following:
- Rename top-level config option group called 'cns' to the 'openshift'.
- Rename 'cns.setup.cns_project_name' option to the
'openshift.storage_project_name'.
- Rename 'scale' option to the 'openshift.scale'.
- Delete ''devices' and 'zone' options from 'gluster_servers' config
group.
- Delete 'cns.setup.cnd_username' option as unneeded.
- Delete 'cns.setup.cnd_password' option as unneeded.
- Delete 'oc_login' common function as unneeded after deletion of
'cns.setup.cnd_username' and 'cns.setup.cnd_password' options.
- Remove 'Cns' word from base classes.
- Keep backwards compatibility for old options to make transition be
smooth.
Change-Id: I04ddbbad5f64ffeac79a6744480d33a263d63001
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now, it is possible to run glustolibs commands
on both deployment types: containerized and standalone.
It is possible using 'auto_get_gluster_endpoint' as target for
lib function in addition to the '@podcmd.GlustoPod()' decorator.
Example:
"""
from glustolibs.gluster.volume_ops import get_volume_list
from cnslibs.common import heketi_libs
from cnslibs.common import podcmd
class TestExample(heketi_libs.HeketiBaseClass):
@podcmd.GlustoPod()
def test_get_vol_list_either_on_node_or_on_pod(self):
volumes = get_volume_list('auto_get_gluster_endpoint')
"""
Also, delete all the current usages of 'deployment_type' config option,
and delete the option as unneeded anymore.
Change-Id: I281f287c432a5a9efefda588be436ee285188697
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
This test is broken in several places.
So, fix it and also remove redundant steps.
Change-Id: I7a9f2c077dda35a8a477fa27882cddf79ec69ac5
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The function name was confusing because now we are verifying
functionality of node tags and device tags. So changing the name
Change-Id: I00a2a12cc8b74e5bf9b76018698738550ea0c613
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Removing several unused options and replacing couple of them
with built-in values.
Change-Id: I458f0eae6a68ddcb2711d454c81cdcee8142673a
|
|\ \ \ \
| |_|/ /
|/| | | |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Which uses improper vars in block of code where we disable
redundant nodes. It is just not executed in case we use
3-node Gluster cluster.
So, fix var usages making this test be compatible with 4+ node GLuster
clusters.
Change-Id: Id9ac9ae9b614c492c0f39573c0224378f887fee5
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
this test case is verifying that arbiter pvc expand is working
properly when tags are set on nodes and devices
Change-Id: I7118e5dd94856e36cdfa438f159a39604c50e7c0
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
With growth of amount of test cases and supported OpenShift versions we
need to perform more and more version comparisons.
So, this module is designed to ease such operations.
Usage example:
from cnslibs.common import openshift_version
version = openshift_version.get_openshift_version()
if '3.9' < version <= '3.11':
# Do stuff for OpenShift 3.11 or 3.10
elif version <= '3.9':
# Do stuff for OpenShift 3.9 or lower
else:
# Do stuff for higher versions than 3.11
Also, reuse it in all the existing places with version comparisons.
Change-Id: Ibc27eff20ed0dff80deca73d5d156e23bda57439
|
|/ /
| |
| |
| |
| |
| | |
Change-Id: I2fc6f2ee9dd0c38519ab560e9d1c1a9672940843
Signed-off-by: Saravanakumar Arumugam <sarumuga@redhat.com>
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
By doing following updates:
- Add and reuse lib function which calculates amount of Gluster
PODs or Gluster nodes.
- Make 'get_gluster_blockvol_info_by_pvc_name' lib func support
standalonge Gluster clusters in addition to the 'containerized' ones.
Change-Id: I6a12bb4c30b1e6f8698a614abefc248149773302
|
| | |
| | |
| | |
| | | |
Change-Id: I7d05c73f468634300ad8571fd9b1b4855adac632
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Doing following:
- Remove dead code with usage of Heketi python lib.
Because it is not used and not tested.
- Remove unused functions in general.
- Make existing functions raise exceptions with CLI error message
instead of returning 'False' boolean value hiding info about
original errors.
Change-Id: I1f0def567dd77425397ff2c8ba13f9c0640af5bc
|
| | |
| | |
| | |
| | | |
Change-Id: I8b62298b45f9e6af45dde60aae6c80c79d312dad
|
| |/
|/|
| |
| |
| |
| | |
Remove unused/dead code from base classes.
Change-Id: Ib355e0282541c60297c1b240f7ff8df3f06d9d69
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| | |
This project has lots of empty files and dirs in addition to
not usef files. So, remove all of it to improve navigation through
the project.
Change-Id: Ib8df2165640e0c59fcee9bb6909ec8c74cb9623f
|
| |
| |
| |
| |
| |
| |
| | |
this test case is verifying that arbiter pvc expand is working
properly
Change-Id: I52c52c9f299ef53c6c8618677d4f3425b5ba2051
|
|/
|
|
|
|
|
|
|
|
| |
Several existing arbiter test cases have common bug,
where we substitute incorrect value in error messages
and do it in duplicated code.
So, move that code to separate method,
reusing it in test cases and fix substitution error.
Change-Id: I7787515a4e0cd50c688034dbb41649d96605b2ae
|
|
|
|
|
| |
Change-Id: Ib7e3125e5120a91fe431816b33be4d4e6f15078e
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For the moment, most of the test cases and lib functions in
'openshift_ops' python module support only containerized
Gluster clusters. So, to be able to support standalone Gluster clusters
in addition to the containerized ones, add special function
which allows us to run shell commands on both types of Gluster clusters
autodetecting the type.
As an example, update one of the existing lib functions making
all the existing 'arbiter' test cases work in both cases.
Change-Id: Iad69d7dc692c87eb70ed5caf780cb688f274bf02
|
|\ |
|