A bug in test_create_multiple was fixed by this patch [1]. As the test
is part of the interop guidelines we should include this fix in
refstack-client.
[1] https://review.opendev.org/c/openstack/tempest/+/875751
Depends-On: Ie127c2ed159da8a6bc780919cdd4def44e457efb
Change-Id: Icfc4c4f270ee559128b165ffa032be0460294d48
Refstack-client is dropping support of python2 and also all python3
versions above python3.8
Changes:
-requirements.txt - added license on python-subunit
-setup.cfg - removed python2 and python3 versions below python3.8
- added python3.10
-setup_env - removed all python2 mentions
- python3 min version set to 3.8.0
- added parameter l which will force installation of
python into ${WORKDIR}/.localpython
-tox.ini - removed py27 from envlist, added py38
Change-Id: I6500ed950cb9bc07d87370940b4752e686712c14
When '-p 3' option is used, the setup_env script checks whether
there is 'python3' installed on the system. If it is, then python
3.8.10 is not installed by the script and whatever version that is
pointed to by the 'python3' command is used.
This is an issue as the setup_env script help message states that
python 3.8.10 is used for the '-p 3' option.
This patch fixes the issue by ensuring that PY_VERSION == "3.8.10"
when '-p 3' is utilized and by checking the exact version of the
installed python on the system.
Change-Id: Ic4e32ca84f4c7bf63ae0a1deb11c1b4cb44166d8
The commit updates tempest version and removes Ussuri and Train jobs
as those aren't supported by the community anymore.
The patch also updates old openstack.org links.
Depends-On: https://review.opendev.org/c/openinfra/ansible-role-refstack-client/+/854211
Change-Id: Idf69f02ba844bdeea21ec744ec41ca78bbd1907d
Setup_env script is installing python-dev package
via apt-get even if PY_VERSION is set to 3.
This patch is adding same conditional as centos like
OSes.
Change-Id: Ib2890e4f260445e392d0ec25eb16421595d2e031
Let's use UPPER_CONSTRAINTS_FILE when installing plugins
by setup_env. The UPPER_CONSTRAINTS_FILE is set to
https://releases.openstack.org/constraints/upper/master
Using a constraint file is safer in general - it will shield
us from too recent releases of the dependencies (direct and
indirect ones as well).
Change-Id: Iea2127f53c0fb242f94e586983d28ce015221bb5
The removal of the dowloaded .tar.gz file is happening
on line 188 which makes the second removal of the .tar.gz
file redundant - the second call was also not matching the
name of the file.
Change-Id: Ia86d8ad368336e1af6ab4838510dcad453e12059
Let's use UPPER_CONSTRAINTS_FILE when installing dependencies
by setup_env. The UPPER_CONSTRAINTS_FILE is set to
https://releases.openstack.org/constraints/upper/master
Using a constraint file is safer in general - it will shield
us from too recent releases of the dependencies (direct and
indirect ones as well).
Change-Id: I4a8a9647b7a78302009e3b6d60462d3c8d438cd8
The currently used tempest tag points to the version of tempest that
causes failure of some object_storage tests. The failure occurs when
swift is used on ceph. In such a case tempest expects that swift's
API endpoint for listing active capabilities is at /info when
actually the correct endpoint is /swift/info. This issue fixes
commit [1] that should therefore be used as a new default
tempest tag.
[1] https://review.opendev.org/c/openstack/tempest/+/692375
Change-Id: Id213499a54d793fab198a9bc2d96dd4cc3c89ce6
In order to support manila_tempest_plugin tests which are a part
of share file system target program we need to update tempest's
tag to the commit when a workaround to handle skip exception
was added [1]. Without the change some of the manila_tempest_plugin
tests in share file system program are failing because tests skips
are treated as errors.
[1] https://review.opendev.org/c/openstack/tempest/+/687999
Change-Id: I692ac5749da553435e8d04f8179aa6151038b1f4
Let's update the default's tempest tag one month more so that
tempest contains follow_redirects parameter [1] in its RestClient
needed to run dns add-on tests. Without the change some of the
designate_tempest_plugin tests were failing with TypeError:
__init__() got an unexpected keyword argument 'follow_redirects'
[1] https://review.opendev.org/c/openstack/tempest/+/580146
Change-Id: I5fde40ff2ed3e6e258a18ba431ab9aef2009c891
Interop repos are going under rename from
openstack namespace to osf namespace (Depends-On),
which need update the zuul job to start using the
new location.
Update .gitreview as well.
Disable py27 and py35 jobs, they don't work anymore as is.
Depends-On: https://review.opendev.org/#/c/734669/
Change-Id: Ib6871eaf0735e756f051d14513869fbe7cc6e826
Since some time RedHat based OS are moving from yum to dnf. Extend check
of the supported underlying package manager to add "dnf" command
(interface is same as yum).
Change-Id: I5041d32be58a591db7eda7747ba2173527dffbf2
As setuptools has dropped support for python2 and python2 has reached
EOL 1st Jan 2020, this patch changes default python for preparing an
env to 3.6.0.
Change-Id: Id00ee1265048425e29de70aee65c70a1d5cf9264
This updates the virtualenv release to the latest current which allows
setup_env to complete without error when setuptools 45.0.0 is present
in the venv
Change-Id: I2138409d2adce578764781a1ba481fcbc319c451
Closes-Bug: 1859633
It seems that newer yum will not install all packages provided if one of
them is not found.
setup_env script installs for example python-devel and python3-devel
where one of them is for installation with python2 and the other
for python3.
In order to avoid situations when required packages are not installed
because one of the packages is not available, the patch adds logic
which will install deps based on the python version.
Change-Id: Ib119b283fac3cda340813f48b10c0a3cc4573891
The review adds logic which will choose python3 by default. If there is
no python3 it will fall back to python2.
Change-Id: If6dd7e7e3b09f20caf73ccdd36ac55220b13c129
The review:
* adds a python3 job in order to test the refstack-client with
python3 as well.
* adds a job which runs unit tests by python3.7
* changes default python3 (when -p 3 is specified) in setup_env script
to version 3.6.0
* converts downloaded list of tests from bytes to str in order to unify
the types used for python2 and python3 compatibility.
* edits -p argument in the setup_env script so that it also accepts a full
version of Python a user wants to run with, before there were 2 options:
* python2.7.8
* python3.6.0
* sets object-storage.operator_role to Member in tempest.conf in order to run
tempest.api.object_storage.test_container_services.ContainerTest tests
Change-Id: I961f0f093bd7d40fde7e448ea12ef9907c61d126
The role has been using python-tempestconf master branch when
gating refstack-client or python-tempestconf patches.
This patch adds a new argument to setup_env script which can
be used to specify a path to python-tempestconf source code.
This argument is used, when running the setup_env script from
the role, to point the script to the zuul source of
python-tempestconf code which contains the newest commits.
Change-Id: I65f9043a7bb0e6f045b6442679dd99dbd6aeb2de
Tempest has changed to use stestr instead of testr and testrepository
starting from 18.0.0,and the testr.conf was removed:
https://review.openstack.org/#/c/504345/
refstack-client will not able to run for tempest 18.0.0 as some commands
need the testr.conf in the path:
root@defcore:/home/defcore/refstack-client/refstack_client#
/home/defcore/refstack-client/.tempest/tools/with_venv.sh testr
list-tests
No .testr.conf config file
Tempest Commit SHA: 8316f962c52b01edc5be466b18e54904e2a1248a pointing
to tempest 19.0.0
Install tempest from master
Updated Guidelines to match 2018.02
Change-Id: Ic796cc7ad48037e64a4437d4834051c7fa7cbda1
Closes-Bug: #1765609
Usage: $ refstack-client config --use-test-accounts <path to test
accounts file>
If not accounts.yaml is passed then:
$ refstack-client config
It will generate accounts.yaml and tempest.conf in etc folder
* It adds support for the above command
* Added zuul based devstack job to run the same
* let setup_env handles the installation of tempestconf
* updated git url for tempest
* It also generates accounts.yaml if no account file is
passed
* we can --overrides flag to overrides the tempest.conf
value.
* volume-feature-enabled.api_v2=True is added as default
in overrides as it is deprecated in Rocky cycle but needed
for interop tests.
Depends-On: https://review.openstack.org/589260
Story: 2001696
Task: 19758
Change-Id: I9cabfc52672e7a8a54792ca9d867c62babf12cb7
* Use latest pbr >= 2.0.0
* Removed gitpython as it is not used within the code
* switched to refstack-client binary in README.rst
* Removed unwanted stuff from setup.py as those are already in setup.cfg
* use pip install -e . to auto install dependencies from requirements.txt
as well as package.
Change-Id: Ia0b1b0a598c48200dc91cc08af9bd78d5685091e
Prerequisites:
Linux host with Docker installed.
Usage:
./docker/env_build - script removes previous container if eny and builds
an updated `refstack-client` image
./docker/env_up - script setups environment in container if is the first run
and joins to shell in this container
Basic usage example:
1) Checkout repository
2) Run ./docker/env_build.sh
3) Run ./docker/env_up.sh
...
You will get Bash console in the prepared dockerized environment.
4) Run ./docker/env_up.sh to get back to shell in the env
5) Run ./docker/env_build.sh to rebuild image and spin a new env
container.
NOTE: These scripts are safe to run locally.
Change-Id: I51e34a5d130d9595ead948f7ddb0db840527a797
Current Tempest version is from a June 17, 2016 SHA. This patch
updates default Tempest to the latest Tempest tag (14.0.0).
Change-Id: Ie2da198cb1dc130380b31347cc6a4273437aea91
If refstack-client is cloned to a place in the filesystem with
a pretty long path, such that the path to pip in the virtualenv
exceeds about 128 characters (with the #! in the shebang line)
then setup_env will fail because the path to the interpreter
gets truncated. This is a known issue with pip due to a kernel
limitation on the size of the shebang line.
Change-Id: Ie2cce5647960c45032c03f008501b8f87c0991cd
Closes-Bug: #1643046
The VENV_VERSION.tar.gz is left in the folder
causing future runs to redownload it with an added
incremental number. Also, by not removing it, we can
accidentaly add it to the repo since it's not ignored
by git.
Change-Id: If79472121ab9cef0e5c59e41f3cf02d75092cc75
Recently, pip install Tempest required packages results in
"Could not find .egg-info directory" errors for a number of the
pacakages (wrapt, positional ..). This patch upgrades "virtualenv"
to version 15.0.3 which includes newer "setuptools" and "pip" that
would fix the .egg-info errors.
Change-Id: I098df3e8118782713e930fbd4c52a904c96045bc
Added libyaml to the dependencies. It is needed by PyYAML
to optimize the yaml parsing. It is much faster then the
pure Python implementation.
Change-Id: I8b3f3861b2d3ec1db2d1404b7fafedfaf27c5420
Update default Tempest version to pick up Tempest commit [1] which
includes fixes for testing of environment when ip_version_for_ssh
in the [validation] section is set to 6.
[1] https://review.openstack.org/#/c/330790/
Change-Id: If4c55b518e27bfbfcbcf828a5f4483a0795eb53f
DefCore updated test procedures[1] recommends RefStack testing
should be run with a single non-admin OpenStack user. RefStack
default Tempest version is updated to pick up Tempest patch[2]
which fixes some test failures caused by the second user
credential requirement.
[1] https://review.openstack.org/#/c/313669/
[2] https://review.openstack.org/#/c/283819/
Co-Authored-By: Catherine Diep <cdiep@us.ibm.com>
Change-Id: I1f21e7d76c754bc675b21eda9970aab81e7eb8d7
Update to use Tempest SHA: 09a60155435cfb8bfd1edb6eab3d4bec30515b8f
which is Tempest tag 10.0.0 (March 2, 2016).
Note: There are many updates in the tempest.conf file since the
last default Tempest used by RefStack. Appropriate updates in the
config file should be made before any attempt to run test.
Change-Id: I9c685153ff83a5728c4e42fa667e0c730366bf22
Although refstack-client does install a default Tempest check
out version (the current version is SHA [1]), refstack-client
has also offered options for user to install other versions of
Tempest if needed. However, the "test_index_no_params" test in
Tempest was recently renamed to "test_list_no_params" in patch
[2] which was merged on Sept 16, 2015. As such, test results
collected with any version of Tempest that's later than [3] will
never be able to obtain a pass status for the
"test_index_no_params" test case which is included in the Board
approved 2015.07 guideline. For tests run against 2015.07, it
is important that users use a version of Tempest that doesn't
include the name change.
In order to allow for users to get a verison of Tempest that
includes recent Tempest fixes, refStack-client will be updated
its default Tempest version to [4] which is the most recent
version that doesn't include the name change.
More information about the test name change discussion can be
found in [5].
[1] ffe09dd61170bfccf7d60ef9c8eba2883ab6c148 (July 16, 2015)
[2] https://review.openstack.org/#/c/223796/
[3] eb9941ba06d87b3fb458ce472cae4c594ad8c0cf
[4] 551e1a9701e7e2b3edf6d49a2eaa62b7ab2435ad (September 11, 22015)
[5] https://review.openstack.org/#/c/229177/
Change-Id: I34e73a20e8129ac7e8bcd2a6b47c1b3591b37838