Commit Graph

2924 Commits

Author SHA1 Message Date
Zuul 3ae7a19664 Merge "Replace deprecated readfp method with read_file" 2023-11-06 06:24:50 +00:00
Zuul 3265dd5263 Merge "Add wallaby job" 2023-11-06 06:24:48 +00:00
likui efc5ad8390 Add wallaby job
Change-Id: I4fbe0ab3515da726dad652d69073129923e2ac1d
2023-11-06 11:41:54 +08:00
guolimin.lc fcad794178 fix tox error
Change-Id: I62ac0a3e406829f303e88e6e4aa259a5a08415f1
2023-11-06 11:11:19 +08:00
Zuul d3730dcb92 Merge "Reuse the docs deps to benefit from constraints" 2023-11-06 02:01:14 +00:00
guolimin.lc a9321534cf Fixes the several problems/errors caused by tox 4
Change-Id: I6141f14c5c512ed6f9ead5d4427db8d7ec537dd1
2023-11-06 08:20:18 +08:00
Ghanshyam Mann f67f18fbde Fix zuul config error
Change-Id: Ia545db6d85f0771ab05721124feb15559cf0e049
2023-06-08 23:05:05 -05:00
zhouxinyong 9a88a310f3 setup.cfg: Replace dashes 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: I239799d7dd8e9162d254a5cfc75cad03e8650e91
2023-06-08 20:32:20 +08:00
ljhuang 39a1e33f7b Replace deprecated readfp method with read_file
The readfp method has been deprecated since version 3.2 [1].

[1] https://docs.python.org/3/library/configparser.html?highlight=deprecated#configparser.ConfigParser.readfp

Change-Id: Ibac238ce9787829b7bf69f878b5c3f604c37e142
2022-07-22 17:23:32 +08:00
likui 98063d3fd9 Add the missing ussuri and victoria jobs
Change-Id: I49ce70f4bb756777d9a2a07fc372dbf855812f60
2020-12-14 19:34:56 +08:00
likui 9b5a3934d1 Reuse the docs deps to benefit from constraints
Tox trying to install latest versions for building releasenotes,
doc which may not be supported by stable and lower branches,
so should be restricted by respective version's upper-constraints.txt

Change-Id: I286c0e8d657e78b7c7ddf2a1c2dcab6197cb853e
2020-12-03 17:33:33 +08:00
Luigi Toscano edcd88782b scenario tests: call ensure-tox and run them for real
Use the tox discovered by ensure-tox to run the tests.

It seems they have been broken for a while for a while.

Change-Id: I477b7af0a6733dd8e3d1c943f04118251c272134
2020-10-13 22:51:14 +02:00
Zuul 51817cc582 Merge "Add support for python 3.8" 2020-10-01 20:15:50 +00:00
Ghanshyam Mann 8c3c00c121 [goal] Migrate sahara tempest plugin jobs to focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Most of the Tempest jobs will be migrate automatically once devstack
base job start running on Focal(Depends-On).

Stable jobs testing stable branch needs to keep running on their supported
distro version which is bionic from stein till ussuri.

Depends-On: https://review.opendev.org/#/c/731207/

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html

Change-Id: I36865eaaad184d55abe6c8dd5f23b537defaf4e8
Story: #2007865
Task: #40216
2020-09-07 13:09:10 +00:00
Luigi Toscano a98a644373 Revert "Revert "Temporarily disable ceilometer (currently broken)""
Ceilometer integration is broken again:

gnocchi.cli.manage: Upgrading indexer SQLAlchemyIndexer: mysql+pymysql://***:***@127.0.0.1/gnocchi?charset=utf8
[...]
pymysql.err.OperationalError: (3822, "Duplicate check constraint name 'ck_started_before_ended'.")

This reverts commit afa2701268.

Change-Id: I3472faf2f3c2a1ab8f921bcb8a802e1461911f2d
2020-09-05 01:07:43 +02:00
Zuul 8cbf5dbe85 Merge "Fix URL of Maven Central Repository" 2020-08-23 11:45:54 +00:00
Luigi Toscano afa2701268 Revert "Temporarily disable ceilometer (currently broken)"
A fix is in place.

This reverts commit dc388e1614.

Depends-On: https://review.opendev.org/746034
Change-Id: I56bc169e728cb9f82ad18bdcd2c562525a8dc744
2020-08-13 11:47:39 +02:00
Luigi Toscano dc388e1614 Temporarily disable ceilometer (currently broken)
Story: 2008003
Change-Id: If36606a2aace2d6e34b716252076eef99d706cb9
2020-08-12 00:09:11 +02:00
Jeremy Freudberg 1eb866f646 Fix URL of Maven Central Repository
Change-Id: I180216b76d8010462312c1101ddd9761971dec11
Story: 2007996
Task: 40635
2020-08-10 09:52:10 -04:00
Zuul 337de39d71 Merge "Use unittest.mock instead of mock" 2020-06-25 15:01:17 +00:00
Luigi Toscano 8dd47f3769 scenario tests: use py2 on <=train branches
Those tests are used on the stable branches too, where they should
run using Python 2 (there is a specific py3 test there).

Change-Id: I64b3e6f0edaa2cc166ebeccbba5cd2cfffb452b0
2020-06-24 18:02:48 +02:00
Luigi Toscano 21c5b0be2d zuul: use the correct syntax for a jinja test (non filter)
The usage of jinja tests as filters was deprecated in Ansible 2.5
and removed in Ansible 2.9 (now used by zuul).

https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.5.html#jinja-tests-used-as-filters

Change-Id: I21684c3f0ae9ee9e67359b504d99679cfaa5ee13
2020-06-23 11:03:52 +02:00
Hervé Beraud ff53c4435d 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: Ib3847b49f41c054b998072d0fbd0648b5293af5b
2020-06-09 12:11:08 +02:00
Andreas Jaeger f119332390 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I626737549ce3aeff0eeef63c42e6330d70192a63
2020-06-09 05:46:51 +00:00
Hervé Beraud b31e53670c Add support for python 3.8
- Introduce support of python 3.8 [1].
- python 3.8 support only jsonschema 3.2.0 [2] (also supported by py37 & py36)
- remove py27 obsolete code

[1] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria
[2] https://github.com/Julian/jsonschema/pull/627

Change-Id: Iab5d3e2e4f58bc175119029d98b381a33b09b523
2020-05-28 16:37:53 +02:00
Masayuki Igawa d9695cd687
Remove .testr.conf
This commit removes .testr.conf since this repo already has
.stestr.conf. We just need .stestr.conf instead of .testr.conf.

Change-Id: I97b23b134ad055718905a20fb0294292c01e5b23
2020-05-19 15:47:10 +09:00
Ghanshyam Mann 7d33a65a92 Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I8381a68dfcc59e8dd5167faae1c05d2974db1315
2020-05-12 20:56:34 -05:00
Jeremy Freudberg 53f70d9d92 Ussuri contributor docs community goal
- Updated CONTRIBUTING.rst per goal guidelines
- Created doc/source/contributor/contributing.rst per goal guidelines

Change-Id: I524ca2f4e6e7d08f77ab904c9e079dd94f24526c
2020-04-23 09:11:26 -04:00
Andreas Jaeger 300baf7712 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I7dd841e8904a29d342e5f1968c272fafd2f5e5ac
2020-04-10 10:50:05 +02:00
Luigi Toscano 2cb44abfce Py2 cleanup: py3 on old branches (or none), remove py27
Make sure that the job running on master are py3 based,
according the established policy.
RGW must be used to provide the Swift API on Stein,
as devstack cannot properly deploy Swift/py2
in a Python 3 environment (old issue never fully solved).

Remove all EM releases where Python 3.6 is not available
and Tempest is not supported anymore. They will be gated
by sahara and python-saharaclient stable gates if needed;
the py2 variants are kept for this reason.
At the same time, remove the py35 unit test job,
as it is not supported anymore.

If an incompatible changes breaks an older branch,
an older sahara-tests version will be pinned there.

Remove the leftover py27 unit test jobs, which were
still needed when the py2 version of sahara-tests was
used on older branches (the py3 version is always used
even when the deployment is py2).

Finally, fix a multi-line issue with a shell command
which strangely happens for the master job only.

Change-Id: Id80ef7e186f6328ab162b92eebababd7e4886560
2020-04-10 10:49:17 +02:00
Ghanshyam Mann 752970e295 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

sahara-tests is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Noteworthy change:
- run sahara-scenario with Python 3 also against the older releases
  (up to rocky) which are Xenial-based.
- on the other hand, make sure that the jobs use a Python 2
  devstack environment when deploying the pre-Ussuri branches;
- add the missing scenario-test jobs for stein and train.

Co-Authored-By: Luigi Toscano <ltoscano@redhat.com>
Change-Id: I3666a9ed9047f7c6a358e40d2f7a1d1103f8563b
2020-01-14 18:37:59 +01:00
caowei cdfbaac4ed Remove nova-network
Co-Authored-By: jinke <jin.ke@99cloud.net>
Co-Authored-By:  caowei <cao.wei@99cloud.net>

Change-Id: I769089ef8f01935804b7b342212234539b4c366d
2019-09-26 11:20:27 +02:00
Luigi Toscano a225824efc sahara-scenario: set PYTHON when starting the test
Make sure that the internally-generated test uses the same PYTHON
variable that started sahara-scenario. Otherwise, when running inside
a virtualenv, the python executable from the venv is not used.

This change allows us to enable again the Python 3 scenario test.
Change-Id: I42d16b4acf72ff279d6b31840e11f2e7f939b113
2019-08-12 13:57:52 +02:00
Zuul 1e016405f8 Merge "Force the format of ssh key to PEM, at least for now" 2019-08-08 15:32:56 +00:00
Andreas Jaeger 20f56dc725 Update api-ref location and some links
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.

Note that redirects will be set up as well but let's point now to the
new location.

For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html

At the same time, fix the links that have been broken by
the separation between API v1.1 and v2.

Change-Id: Ic72c0cd85d3d42a62071825c242df599d2442f99
2019-07-30 19:44:06 +02:00
Luigi Toscano 9f57fcaa9f Force the format of ssh key to PEM, at least for now
Unfortunately it is not possible to switch to the new, more secure, native
format of OpenSSH >=6.5, because paramiko does not support it:
https://github.com/paramiko/paramiko/issues/602

A similar change has been applied to sahara some time ago:
https://review.opendev.org/605028

Story: 2003674
Task: 35983
Change-Id: I5683245c0a9373e299a647f7f61d3e6a2de284e6
2019-07-29 10:11:28 +02:00
Zuul 994b21aacd Merge "scenario tests: allow to use boot_from_volume on NGT" 2019-06-27 18:45:34 +00:00
Zuul 3eb57b4d4b Merge "Scenario tests: add the test templates for Stein" 2019-06-27 18:22:10 +00:00
Luigi Toscano 4ed9f32b3c scenario tests: allow to use boot_from_volume on NGT
The key boot_from_volume can now be configured when defining
node group templates.
Thi change works only when API v2 is enabled.

Change-Id: I1b23c2e457ceb6cf396addd5daa6d7bd36989167
2019-06-26 15:35:56 +02:00
Zuul f7c861806a Merge "doc: update the references to rally commands" 2019-06-20 15:26:27 +00:00
Luigi Toscano 1c8cb702c5 Properly handle authentication with Keystone v3
Address few previously unnoticed use cases.
- Use uri_v3 is available (in the Tempest plugin). When v2
  is not available (as in modern deployments) the old value
  cannot be relied upon.
- Otherwise just check whether v3 is there and adds it if not
  (as it happens for example on a TripleO deployment).

Change-Id: I593faafbe6b4c547db687d4f521e2a0b412d343a
2019-06-04 18:05:02 +02:00
Luigi Toscano 4c1d1645de CLI tests: more testing and Python 3 fixes
- when downloading the internal job binaries, compare it
  with the original file;
- simplify the string matching for the error messages in negative
  testing (job binary and node group templates). The returned string
  is a bit different when using python 3 (few \n remainings, maybe
  there is an interaction between string and byte arrays.)
- run the API v2 tests using Python 3. Python 3 and API v2 tests
  have been both added in Stein.
- define few data strings used for testing as bytes, so that they
  can work with both Python 2 and Python 3.

Change-Id: I1924239659072ec8f1ea67df8d3d5b9a2264beb8
2019-06-04 18:05:02 +02:00
Luigi Toscano 3333341a72 Unblock the gates (fix for bandit, workaround for stestr)
They are really two workarounds, even though the bandit one is more likely
to stay.
- bandit: exclude 1.6.0, which has a regression in the handling of patterns.
  A fix is in place in bandit master, so newer versions should work.
  The version is excluded there because is not handled by global requirements.
- stestr: exclude the only py3 test. The discovery seems to work with
  the current stestr master (most likely thanks to
  https://github.com/mtreinish/stestr/pull/241), but a new version does
  not seems in sight, so let's disable the test for now.

Change-Id: I041b5cd41b089b2c1dc043f1e252c1f6b3c29db3
2019-05-31 15:43:03 +02:00
Luigi Toscano 4680504fd4 Scenario tests: add the test templates for Stein
- add the needed new templates for Stein (basically a copy of the Rocky
  ones).
- remove the Ocata test templates.
- fix the name of the storm 1.2 image variable for stein and master.
- (minor change) fix a comments for CDH 5.11 on all supported versions.

Change-Id: I9b97c0241cdd99d5def8831de42be49e04a50465
2019-05-02 18:08:38 +02:00
Luigi Toscano baabb6fb78 Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org
counterparts.

Change-Id: Id191d21afb1710948e198440a0053b69bd6e37c8
2019-04-20 13:52:38 +02:00
OpenDev Sysadmins e663a7eab3 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:28:10 +00:00
Luigi Toscano bfe9cc1557 doc: update the references to rally commands
Update the link to the relevant section of the Rally quick start guide
(with slightly better wording) and use the correct parameter of the
`rally verify start` command (--pattern replaced --regex long time ago).

Story: 2003099
Task: 23193
Change-Id: I2ae35e2a330ef4d10c359ae2231d7cc2b4ec2eb0
2019-04-17 01:35:08 +02:00
Zuul 101b519fd3 Merge "Scenario test runner: support for S3 testing" 2019-03-28 15:44:44 +00:00
Zuul 80ab67657b Merge "More Python 3 jobs: scenario (by default) and devstack" 2019-03-28 15:32:03 +00:00
Ian Wienand 45985a74e0 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I8b0459fd519dd259a2f445b22db797388202a432
2019-03-24 20:36:05 +00:00