Commit Graph

373 Commits (13.1.0)

Author SHA1 Message Date
Alex Schultz 3a7d05a9e8 Drop six
With python2 not being supported anymore, let's drop six.

Change-Id: I22f3d28e22ad209806b78ad78f46671a74179157
2021-09-24 10:27:29 -06:00
Alex Schultz d1add682f3 Drop unused requirements
anyjson, eventlet, iso8601 are not actually used. Let's drop them.

Change-Id: Ia16a6f7a659f102a68f23c87980f7c5a61b9cbbf
2021-09-24 10:22:31 -06:00
Zuul 5ea6a4778c Merge "setup.cfg: Replace dashes with underscores" 2021-09-10 03:04:46 +00:00
yangyawei a309852c46 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: Id230197b1fcb09d16c7a9a66bfaa7c878d67e4ba
2021-05-27 02:37:56 +08:00
yangyawei 537440c66a 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: I7c495db4a467a07c648c052da4cb657e83c92e46
2021-05-14 16:10:54 +08:00
Alex Schultz 224af052af Bump hacking
This change bumps hacking to 4.x and adds W503, W504, and W605 to the
ignore list for now.

Change-Id: I2b5c7c671b1cd7c0f378992895434f86b02ed95e
2021-03-09 09:23:32 -07:00
Hervé Beraud cc519a7d48 Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is deprecated and TOX_CONSTRAINTS_FILE is
the new environment variable name that replaces it [1].

This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
[2] https://review.opendev.org/#/c/722814/

Change-Id: I53bc3db1ce7a150869fb7c113bf1b34769c1f2fa
2020-11-09 15:39:00 +00:00
Alex Schultz 271a5434ce Bump pyflakes
We need a python 3.9 compatible version.

Related PyCQA/pyflakes #367

Change-Id: Ia0011de7722311d17bfbc1192e08c134905edb29
2020-11-09 08:38:31 -07:00
Hervé Beraud 24245ce18e 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: Ib353cf9878334d91e551bf75121413c6fb2222ea
2020-06-09 19:28:11 +02:00
Hervé Beraud ab98550efd Drop python version constraints for sphinx
This project is now doesn't support py27 so we can remove sphinx
constraints related to python versions

Change-Id: I9bc105931a7e6772b88d04afd6cb7151f845e5c1
2020-06-09 19:28:11 +02:00
ricolin d1607f9f56 Add tls proxy support for Zaqar
Change-Id: I234a3d60333ee89a7c283b425e524d4624191577
2020-05-19 14:06:02 +00:00
Wes Hayutin 6dd0e536b9 Stop testing python2.7
Train was the last release supporting python2. Let's rip the bandaid
off.

Also includes remove tripleo jobs from os-collect-config master

Partial-Bug: #1879361
Co-Authored-By: xuanyandong <xuanyandong@inspur.com>
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
Change-Id: I46c79ce87f474a986f1983fa9164e6e4cbeaf8de
2020-05-19 08:05:35 -06:00
pengyuesheng 0558b20f5a Switch to Ussuri jobs
Change-Id: I378ffc96486327cb2f796a3fbda30b9ca08d369c
2019-10-24 14:22:31 +08:00
pengyuesheng 720165e737 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: I995ea245912d5eaa1470c7c5bdeb69bdce7cfcca
2019-10-10 14:19:22 +08:00
Zuul cecf934525 Merge "Fix config file documentation" 2019-10-01 03:41:51 +00:00
pengyuesheng b7e8c09315 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I619180004a27d6d96c7b83635891b966b9a9369e
2019-09-29 10:20:32 +08:00
Andreas Florath 461c30df29 Fix config file documentation
The documentation currently uses '[default]' (lower case).
This configuration is not picket up.
It needs to be upper case.

Change-Id: Icbc5e7ee5178be1054b045045245d384a3957a63
Signed-off-by: Andreas Florath <Andreas.Florath@telekom.de>
2019-09-12 13:09:55 +00:00
Corey Bryant 8cda3f6cc0 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I46590ec9b1fb9054388e3359d1d02217f396fbf6
Story: #2005924
Task: #34253
2019-07-12 16:24:08 -04:00
caoyuan fb5393461f Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I4e23b8ae531bf103a945e0e14610cde0c354a4ab
2019-04-26 18:02:45 +08:00
Zuul 4e27ed59f3 Merge "Change python3.5 job to python3.7 job on Stein+" 2019-04-23 02:18:31 +00:00
OpenDev Sysadmins 45d7c54730 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:42:57 +00:00
Ian Wienand 51cb5aa4ac 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: I8446d73326d833915374836c6ec1f5d6d46bc8de
2019-03-24 20:35:18 +00:00
Charles Short 48f03e53dc Change python3.5 job to python3.7 job on Stein+
python3.5 was the only supported python3 version on Xenial, now that we have
Bionic Beaver nodes that support python3.7, lets switch to testing with
python3.7 in addition with python3.6 in Stein and beyond.
See ML discussion here [1] for context. [

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135632.html

Change-Id: I43ee5f72cd20d8f95f6a258dc9e4da0c799c684b
Signed-off-by: Charles Short <chucks@redhat.com>
Story: #2004073
2019-02-14 15:39:03 +01:00
Zuul 6bdbc35fbc Merge "Change openstack-dev to openstack-discuss" 2019-01-18 01:37:44 +00:00
Alex Schultz 830e028c72 Drop baremetal job template
https://review.openstack.org/#/c/619337/ switched the jobs to a noop for
master and since this file is branched we no longer need to keep this
template definition in this project.

Change-Id: Ic3447b4c26b01a8f060ab495050602cf137ba396
2018-12-13 13:51:39 -07:00
malei 0bb4026275 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I9ed3f7573f66259ae0c24d52cb257c21faa1512b
2018-12-05 00:06:06 +08:00
Vieri 875bed48b0 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I5e855bcb2503b9e4696566175b09b2947b86de1b
Closes-Bug:  #1801452
2018-11-03 03:01:19 +00:00
Zuul 5c924cc95e Merge "Use templates for cover" 2018-10-03 23:10:24 +00:00
Ben Nemec 4fa30ae5d7 Don't ignore SIGPIPE
By default Python configures SIGPIPE to be SIG_IGN, which means to
ignore the signal. We don't want that as it causes problems when
journald restarts and our log calls start triggering SIGPIPEs.
Instead, we want to allow the SIGPIPE to kill the process so it can
be restarted by systemd.

Change-Id: I512139b96b2de8b372efc91e8a3fc8d33553405a
Closes-Bug: 1795030
2018-09-28 16:33:11 +00:00
Andreas Jaeger a799e58508 Use templates for cover
Small cleanups:

* Use openstack-tox-cover template, this runs the cover job
  in the check queue only. Remove individual cover jobs.
* Sort list of templates

Change-Id: I4def2320a34e6ab152edaccd59e01a1a5d502680
2018-09-22 17:55:07 +02:00
qingszhao baf2f0df9f add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I33a6c580372de6a40f8d01fa4117415528bd5782
Story: #2002586
Task: #24341
2018-08-24 05:01:13 +00:00
qingszhao be0b8dc6cf import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Icd037c89819618a976bef66cd3d6f3e3889cc5f4
Story: #2002586
Task: #24341
2018-08-24 04:57:42 +00:00
Zuul 8763b70935 Merge "Switch to stestr" 2018-08-09 09:54:52 +00:00
Feilong Wang 5bebbf1654 Add region support
Now Heat is missing the region support for software deployment
and so did os-collect-config. This patch fixes it but keeps the
backward compatibility.

For changes in Heat pls refer Iec6f3606c9fdf8474f393b0990356f34d38bcf75
and https://review.openstack.org/580470

For changes in Heat agents please refer
I8e0518fa61e237ec055834dd4bebe0fc87cd6627

Story: 2002781

Change-Id: I88182a9a9af74e9760b2ec9b500971f06293f0b8
2018-07-11 07:16:39 +12:00
Vu Cong Tuan e1d3430575 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I761feb4cfcdc9347cd3f74b8b355c28476301127
2018-07-10 18:53:52 +07:00
huang.zhiping dff8dabab0 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I859649b7f4f9ab70617309947375d4886e14a860
2018-06-09 19:05:46 +08:00
Doug Hellmann 7de2fd8444 uncap eventlet
We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.

Change-Id: I15006f3d958c0d376d6832be086f8a5e16cbcf9f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-11 11:52:27 -04:00
OpenStack Proposal Bot b996a6e042 Updated from global requirements
Change-Id: I52276925cd025a6013f63d0c0f85584fff4a9eab
2018-03-15 07:44:17 +00:00
OpenStack Proposal Bot 1eeb81bec7 Updated from global requirements
Change-Id: I72aa260d177b8e007ebc17c893d90cee1784cbdd
2018-03-14 05:54:34 +00:00
OpenStack Proposal Bot 38de28da3b Updated from global requirements
Change-Id: I7963de175becad32f5055437bfa8d1b96996ea9d
2018-03-13 07:19:36 +00:00
OpenStack Proposal Bot f9991ba3c0 Updated from global requirements
Change-Id: Ic8236b3a9a373003cbfee499b6d750a7a444dfe8
2018-03-10 13:40:22 +00:00
melissaml 356a482e42 Update links in README
Change the outdated links to the latest links in README

Change-Id: I1fc91142d8b82ae5fb7bac429f6e3600f433dc01
2018-03-02 18:01:13 +08:00
James E. Blair 4e48cfa2cc Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I276dc81d5da86d11001f0ba1b6d7e058dcf1bf87
2018-02-05 12:37:49 -08:00
Sagi Shnaidman 5f2835e7a0 Remove RH1 OVB jobs from configuration
Remove OVB RH1 jobs from configuration for this repo
Related-Bug: #1744763

Change-Id: I199b58c0000dc8da8a24dbc364b93d0fb5cf0856
2018-01-22 19:37:07 +00:00
OpenStack Proposal Bot 621029a27a Updated from global requirements
Change-Id: Ib565265cbd51c33b8b1879673ea799513cd79ec1
2018-01-18 03:21:20 +00:00
OpenStack Proposal Bot f9880d7c80 Updated from global requirements
Change-Id: I308b0d752f10661e7e038b7b57f5510c83efc510
2018-01-16 03:42:36 +00:00
Alex Schultz 69f0af9ccc Lower local collector log level
The local collector was added as the default but we're not properly
configuring it anywhere so this results in two log messages being
printed. Let's lower one of the messages to info and leave the one about
non-existing directory as a warning to indicate possible
mis-configuration.

Change-Id: I52ead32cce1eaf5f3816507e8e62b270f1a1a1cd
Closes-Bug: #1691003
2018-01-02 08:44:13 -07:00
Andreas Jaeger fd530b4294 Remove -U from pip install
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.

With tools/tox_install.sh - which a previous change of mine removed -
the -U was not harmful, but with the current set up, it might cause
upgrades, so remove it.

Change-Id: Iea38327f48caf8c060479dfa4f42f3124a87fee8
2017-12-02 19:25:24 +01:00
Andreas Jaeger 81d355ea32 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: Id5b1b0d8815c8324c53eca0fb9a32b1495617eba
2017-12-01 14:52:17 +01:00
OpenStack Proposal Bot 701438b9dd Updated from global requirements
Depends-On: Ifb85d41324ac997e30535f04e291244d6d02ecc6
Change-Id: Ia9d311c7e30d51888f2e22cb950b39913b300f90
2017-11-29 17:55:44 +00:00