Commit Graph

267 Commits

Author SHA1 Message Date
Martin Kopec b60a7e41f7 Include openstack-tox-py311 job
Getting rid of the antelope template and replacing it with the list
of the jobs instead - it's gonna be easier to add newer python
jobs as we won't have to check which ones are a part of a template
and which need to be added directly.

Change-Id: I37e72fda65ffc43ce90a6d5724628c405f13acdd
2023-09-19 21:47:42 +02:00
Roman Popelka adfd17a082 Add fips job
Depends-On: https://review.opendev.org/c/openinfra/ansible-role-refstack-client/+/881815
Change-Id: I94f86bc5b2fa7a1038cfa8705d8b7dec72e4fa7e
2023-06-28 18:48:48 +02:00
jskunda b41463f32c Update jobs for Bobcat development cycle
Adds an Antelope job as upstream has just released it and moved to
the Bobcat development cycle

Change-Id: Ifbdbe55e2309c4855cc5f069487739aa91ee2a89
Depends-On: https://review.opendev.org/c/openinfra/ansible-role-refstack-client/+/880868
2023-04-24 14:46:02 +02:00
Zuul 3f7a3edd1e Merge "Change checkout commit in setup_env" 2023-04-05 16:07:57 +00:00
Lukáš Piwowarski 846e3d2983 Change checkout commit in setup_env
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
2023-04-05 11:05:30 +02:00
Fabricio Aguiar 73abbe14eb
Fix openstackdocstheme deprecation warnings
closes OSP-20539

Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com>
Change-Id: Ib0912674b56b1899180c9139309722c773c74989
2023-03-16 15:38:36 +00:00
Zuul 43b6fd208b Merge "Stop to use the __future__ module." 2023-02-08 15:36:52 +00:00
Zuul f90090e0fa Merge "Use unittest.mock instead of mock" 2023-02-08 14:22:13 +00:00
Zuul 6d56d3372e Merge "Drop python2, python3.6 and 3.7 support" 2023-02-07 15:34:41 +00:00
Hervé Beraud dcd7fad34c Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: If7d749018d7a69906f7f4763b147f09cfadd6692
2023-02-07 12:25:40 +00:00
Hervé Beraud 4f5f86b89a Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I6c5343f2ee93ae89b9bd534620169572e63d2210
2023-02-07 09:56:23 +00:00
jskunda 54c74fb8e3 Drop python2, python3.6 and 3.7 support
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
2023-02-03 16:22:00 +01:00
Zuul 5c749a6aef Merge "Update jobs for Antelop development cycle" 2023-01-27 12:46:00 +00:00
jskunda 6d1cf30b59 Update jobs for Antelop development cycle
Adds a Zed job as the upstream has just released it and moved to
the Antelope development cycle

Change-Id: Ie05acda566a7ad0449a3e541dbe2fd1c63cbe250
2023-01-26 13:59:07 +01:00
Zuul 8e3718fd5a Merge "Remove support for identity section in tempest.conf" 2023-01-10 00:42:50 +00:00
Lukáš Piwowarski ee6161ddf7 Update link to the issues board
The link to the issues board should be updated as we use Taiga instead
of StoryBoard to track refstack related issues [1].

[1] https://tree.taiga.io/project/openstack-interop-working-group/issues

Change-Id: Ib1a3147cbf1268d9062f091f55a4c32eb8d2f535
2022-12-01 10:45:50 +01:00
Lukáš Piwowarski 92ae48007c Remove support for identity section in tempest.conf
Support for identity section in tempest.conf was deprecated 7 years ago
by the refstack-client [1].

This patch simply makes sure that the refstack-client ends with an error
and prints an error message when the user tries to use identity section
instead of accounts.yaml.

[1] https://review.opendev.org/c/openinfra/refstack-client/+/287540

Change-Id: I9e6cce47ffd4269fecdb3ad040d508acb1be671c
2022-11-30 15:44:14 +01:00
Lukáš Piwowarski 340344526b Fix parsing of tenant/project_name values
The parsing of tenant_name value from tempest.conf ends with an error as
the ConfigParser.get() function fails if a requested value is missing
in a config file.

This patch fixes the issue by using the fallback option of the
ConfigParser.get() function. Also, the unittest that checks the reading
of [identity] section from tempest.conf is fixed.

Change-Id: I9b3224f4ab8900a4954814844ef8c13e099ccae9
2022-10-21 15:11:37 +02:00
Lukáš Piwowarski 23d9f5d7df Fix the default version of Python for '-p 3' option
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
2022-10-07 13:08:41 +02:00
Martin Kopec df3ce16947 Update tempest version and drop U and T jobs
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
2022-08-23 16:18:31 +02:00
Martin Kopec eb3c6d4957 Update setup.cfg and tox.ini
Add Python 3.9 to the list of supported Pythons and replace
dashes (which are deprecated) with underscores.

Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I12cc6206ebfe06b7cf3a50ea59bf1b55a3ff7303
2022-05-10 20:56:51 +02:00
Martin Kopec d320c6c60a Update jobs for the new development cycle
This updates jobs for the Zed development cycle by adding a yoga
and a xena jobs.
This also bumps refstack-client's version in setup.cfg as we created
0.1.0 tag couple of weeks ago - the version there refers to a new
version (released in the future)

Depends-On: https://review.opendev.org/c/openinfra/ansible-role-refstack-client/+/836124
Change-Id: If9a7be2c0751ffef47f67a0d6937284a38566f68
2022-04-22 13:43:54 +02:00
Zuul 225c977a12 Merge "Run apt-get with DEBIAN_FRONTEND noninteractive" 2022-01-18 18:12:30 +00:00
Zuul e8ccb0a3ac Merge "Increase verbose level for not found tempest tests" 2022-01-18 15:01:42 +00:00
Martin Kopec e9af50764e Increase verbose level for not found tempest tests
This warning prints old tempest tests (which are marked
as aliases in the guidelines) most of the time.
The warning confuses users becuase it may suggest that
a relevant test is missing, however, that's not the case,
aliases aren't supposed to be found because they were
renamed.

Therefore this commit increases the verbose level needed
to trigger these warnings. From now on, the warnings won't
be printed by default, debug level of verbosity will be
required.

Change-Id: Ic0e590d54d76e2d5839ced3f513e8b2ded705e6f
2021-12-09 21:19:23 +00:00
Michal Arbet 34f4f209bc Run apt-get with DEBIAN_FRONTEND noninteractive
Change-Id: I8eb84c10ee3e42edd3df27a239c3e06d8bd48d86
2021-11-30 20:27:27 +01:00
Michal Arbet cbaaffce66 Do not install python-dev automatically in debian
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
2021-11-30 20:18:19 +01:00
Martin Kopec ffcdca681b Add contributing page and some updates
The commit adds contributing page for easier orientation
in our projects.

Change-Id: I1045f1940d5ead7b1dfdbf5ecaf09b9a38a4606e
2021-11-08 12:42:58 +00:00
Zuul ef6e804cca Merge "Revert "Temporarily disable most of the jobs"" 2021-10-25 09:39:55 +00:00
Martin Kopec e3e9372ef1 Revert "Temporarily disable most of the jobs"
This reverts commit 1c2f076100.

Reason for revert: Required fixes got merged.

Change-Id: Ic01e711bf5677950e782922a265a7702341565d1
2021-10-21 21:40:40 +00:00
Zuul 07a5b685e9 Merge "Use UPPER_CONSTRAINTS_FILE when installing plugins" 2021-10-21 21:38:44 +00:00
lpiwowar 36dd231968 Fix uploading of documentation to opendev.org
This patch makes sure that the promote pipeline uploads the
generated documentation to opendev.org. Previously the promote
pipeline called opendev-tox-docs job (this had no effect on
uploading of the documentation).

Change-Id: I026934236a376ed63c2bc5e9b25bb3baaa3f238b
2021-10-21 21:08:46 +00:00
Martin Kopec 71000ff2d5 Reflect osf/ to openinfra/ namespace rename
Lately osf/ namespace got renamed to openinfra/ [1], this commit
reflects this change within refstack-client's repo.

[1] https://review.opendev.org/c/openstack/project-config/+/808479

Change-Id: I629d84cc8eed63ef8f33d3e063a3c7dc763c1d37
2021-10-21 21:08:37 +00:00
Martin Kopec f3a704e136 Use UPPER_CONSTRAINTS_FILE when installing plugins
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
2021-10-21 21:07:48 +00:00
Martin Kopec 0fb2a056c9 Fix load() missing argument Loader
This patch replace yaml.load() by yaml.safe_load() which will
fix the TypeError our jobs currently face:
TypeError: load() missing 1 required positional argument: 'Loader'

Change-Id: I3d238eabf374be895782ebc9e4907db93157a5d4
2021-10-21 21:06:55 +00:00
Martin Kopec 1c2f076100 Temporarily disable most of the jobs
refstack jobs are broken and require a fix (see follow up patches)
on refstack-client side which can't be merged without a fix
on ansible-role-refstack-client.

python jobs are broken too and require a fix in refstack-client
(already proposed) which can't be merged without other mentioned
fixes.

This will be reverted as soon as the issue is resolved.

Change-Id: Ic00064ed0769aaad3730f1db6889ca180860370b
2021-10-21 19:29:12 +00:00
lpiwowar 9b8892c2dd Change documentation configuration
This patch makes sure that the html documentation is generated with
alabaster theme.

Change-Id: Id2f13d44100a1eeb97670ea49f600d29119258e9
2021-10-12 16:22:44 +02:00
lpiwowar 80549788ea Publish docs to docs.opendev.org
docs.opendev.org will provide easier access to the doc pages
in comparison to the Gitea (opening the doc files in the repo).

Change-Id: Ib3ee1c006eca682823bd7f2920bf85ad2ce24fd8
2021-10-12 16:22:38 +02:00
Martin Kopec 08a64544e1 Remove unnecessary rm command from setup_env
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
2021-10-07 20:39:04 +00:00
Martin Kopec 2fff054f62 Switch testing to Yoga testing runtime
Upating the tetsing template to Yoga testing runtime:
https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I3e31a76e1ec55c60bac97e767652ef82f6b96143
2021-10-07 18:43:19 +00:00
Martin Kopec 0ab5f7ac61 Use UPPER_CONSTRAINTS_FILE when installing deps
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
2021-10-07 18:35:38 +00:00
lpiwowar 0851f4fdec Update default tempest tag
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
2021-08-26 10:54:50 +02:00
Martin Kopec fa73ef2524 Update Readme
* remove old links
* mention new options of setup_env script
* mention OpenStack Marketing Programs and interop repo
* mention ansible-role-refstack-client

Change-Id: Ia62b400d38eeeebd22e79b33616a04877b9ea33b
2021-06-18 13:50:09 +00:00
Martin Kopec 7fbf6dad17 Update zuul jobs for Xena cycle
Use Xena zuul job template which contains also py39 job
and add jobs to run refstack-client also on stable/wallaby
release.
Also per Xena testing runtime we need to support at least
py36 and py38:
https://governance.openstack.org/tc/reference/runtimes/xena.html

Depends-On: https://review.opendev.org/c/openstack/devstack/+/790353
Change-Id: Id65875ab48ce1b25bd929cb784a86a093c586e73
2021-05-09 08:50:01 +00:00
Martin Kopec d9924541d8 Remove concurrency workaround
After we bumped tempest version used in refstack to the commit
from Oct 2019 [1], we can remove concurrency workaround which
was needed only until the tempest version used in refstack
doesn't contain this commit [2] which is from Mar 2019.

[1] https://review.opendev.org/c/osf/refstack-client/+/782592
[2] https://review.opendev.org/c/openstack/tempest/+/641349

Change-Id: I17d5df4635b0451e4442ef693f4293ee3851ff6d
2021-04-18 20:44:15 +00:00
Martin Kopec a842efbf56 Update default tempest tag to Oct 2019
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
2021-03-23 19:31:53 +00:00
Martin Kopec 6bbd88fed8 Update default tempest tag to Oct 2018
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
2021-03-20 19:31:09 +00:00
Martin Kopec dab344ad3f Allow tests from plugins
Allow refstack-client run also tests from tempest plugins
by not filtering out all tests whoose names don't start
with tempest.

Change-Id: Ic880967287f7cf7064d2440fde2c35c781477873
2021-03-20 19:21:33 +00:00
Zuul 629db97d31 Merge "Inclusive jargon in tox.ini" 2021-01-14 10:43:17 +00:00
Thierry Carrez 028d13d74b Remove warning about deprecated signer function
Use of signer/verifier functions has been deprecated since
cryptography 2.0, and a deprecation warning is shown on
every use of the 'refstack-client sign' command.

Remove that warning by using the sign function instead
of the signer function, as described in:

https: //github.com/pyca/cryptography/blob/1.9/docs/hazmat/primitives/asymmetric/rsa.rst#signing
Change-Id: Id9d5ed33b601771cd75df421a15ed2894fcd4d92
2021-01-13 15:05:02 +01:00