Commit Graph

687 Commits

Author SHA1 Message Date
Hervé Beraud 4659000ce2 Remove python-dev from bindep
It is no longer supported by jammy and lead us to the following errors with the announce-release job.

```
No package matching 'python-dev' is available
```

Change-Id: I113f1f43718f954001b3e9f40c77f6115d754c4f
2022-11-07 10:51:05 +01:00
Zuul 6c06dc58f3 Merge "Dropped the python 3.6/3.7 in zed cycle testing runtime" 2022-05-16 01:24:43 +00:00
Cai Hui 3667fb2d6a Dropped the python 3.6/3.7 in zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: Ic8cf4bf0ba12043d15e1ff31832f42cc14b3e021
2022-05-15 09:09:05 +08:00
Carl caihui c2f619f635 Add arm ci jobs
Add arm ci jobs  "openstack-python3-zed-jobs-arm64"

Change-Id: Ie1823b36c491f2c6250ec876d3ff71e3fbab532a
2022-05-10 10:09:33 +00:00
Zuul 3c30a07ce7 Merge "Add zed unit tests" 2022-05-08 09:53:25 +00:00
Zuul f0f05aa655 Merge "Update master for stable/yoga" 2022-05-08 09:12:24 +00:00
Cai Hui 12b856d704 Add zed unit tests
Add zed unit tests.

Change-Id: I6a9f7bb3d03c18344ad8fa5ca15c26f98fe7879a
2022-05-08 16:57:11 +08:00
Zuul 6b364fd025 Merge "Updating python testing classifier as per Yoga testing runtime" 2022-05-08 08:53:49 +00:00
Ghanshyam Mann 2b5a26c470 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: Ie267542391366180089979e539c977c8e9f7550f
2022-04-30 15:44:46 -05:00
OpenStack Release Bot 24d24596de Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.

Sem-Ver: feature
Change-Id: If00bb30589291414c13babb544869e67f3bb7c87
2022-03-10 12:39:01 +00:00
Ghanshyam Mann 231c53d9a6 Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I59a40580f93bf8c133e0492659f2e3364aa71a4d
2021-12-14 02:45:35 +00:00
Zuul 8a477ffd8b Merge "Install paste file with PIP package" 2021-12-06 23:32:26 +00:00
Cai Hui 29dd109cbc Delete the func of build_app_v0()
The func of def build_app_v0 is not used any more.
Delete it.

Change-Id: I1d26cfc2f398cbf219adf59e2582096cb0600e73
2021-11-06 18:38:20 +08:00
Cai Hui 92844f55e6 Add python3.9 CI
Add python3.9 CI in tox.ini.

Change-Id: Ida07a13f5dcc152817bf2dd9353ad40f3dc61cbf
2021-11-06 10:01:07 +08:00
Carl caihui aa80bb77c8 Update gate CI
Add openstack-python3-yoga-jobs in .zuul.yaml

Change-Id: I814ce6b77d357574b86cceebd04978ccbe1f0cd1
2021-11-03 23:22:58 +00:00
Cai Hui 8e67288166 Remove unuseful func
Remove unuseful func and fix unit test error.

Change-Id: Ibf2a60ac110a95e4cccdc73d9edb7522d6c7b43b
2021-11-02 21:51:09 +08:00
Dmitriy Rabotyagov 4918534ff7 Install paste file with PIP package
For people using freezer it might be useful to retrieve api-paste
file with package rather then looking for it in the repo.

Change-Id: Ib18f00cd9c6aee4ab49f55a1f48f2388574b8fa4
2021-08-24 13:32:50 +03:00
Zuul ee8fc485e7 Merge "[ussuri][goal] Update contributor documentation" 2021-06-16 02:43:20 +00:00
Zuul 19891aaf19 Merge "setup.cfg: Replace dashes with underscores" 2021-06-11 07:40:18 +00:00
caihui 22d20337a8 Fix the error for the module of falcon
File "/home/zuul/src/opendev.org/openstack/freezer-api/freezer_api/common/exceptions.py", line 73, in handle
    status=falcon.status.HTTP_404,

    AttributeError: module 'falcon' has no attribute 'status'

Change-Id: I3b77a5a3799f066ef189862e75de24b4c25c0569
2021-06-10 14:56:31 +08:00
Ghanshyam Mann 5ef2e7b8a5 [ussuri][goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Story: #2007236
Task: #38522
Change-Id: I16738f205ae235d9d8af2e54395d7decefded7d0
2021-05-31 20:30:51 +00:00
yangyawei e2c135078e 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: I684486e308850c3cefef64314bea01f813d196f6
2021-05-13 18:13:22 +08:00
Ghanshyam Mann e02a492817 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: I066488c47e1bb6502b27b8677988113f66b9b09b
2021-03-08 19:52:30 -06:00
Zuul d971f29f28 Merge "remove unicode from code" 2021-02-03 03:57:03 +00:00
gecong1973 719a3feb60 Fix a bug when unit test use the local conf O
AttributeError: 'Connection' object has no attribute 'iterdump'

Change-Id: I1bca4617d6d57dd6d62e38b11a109dc87cc6bfcd
2021-01-27 18:14:17 -08:00
caihui 34641efcf5 Fix pylint error
Use pylint = 2.6.0 , fix some errors.

Change-Id: I1fdb40c7a8ac986332e10b642ab86799fc5ff78d
2021-01-24 17:55:32 -08:00
liyou01 9ce1a11451 remove unicode from code
Change-Id: Ie452dbdd42ec7ef34993572ac0b456562aabab79
2021-01-07 14:37:16 +08:00
caihui c87d9cb29d Fix devstack install error
With the removal of screen support,tail_log is deprecated and removed after Queens.

Change-Id: Ia0dadd6cb403e98c988c99935d32804df9b7ed59
2020-11-26 23:47:46 -08:00
caihui f1012d7d61 Update package metadata
Change-Id: I92e67d7ef9366137a4107d0e6de7299478b784c8
2020-11-09 22:59:22 -08:00
caihui 6cf451d5c0 Remove unuseful yaml files for zuul V2 CI jobs.
The project CI jobs have  Migrated to  Zuul V3 CI jobs.
Remove  these yaml files for zuul v2 CI jobs.

Change-Id: I59bef0e9d072e50a1da9c12b41f6971914ad55bb
2020-11-09 18:09:47 -08:00
Zuul e1ada5da82 Merge "Add Python3 wallaby unit tests" 2020-10-07 02:27:00 +00:00
Zuul 59e70f837c Merge "Update master for stable/victoria" 2020-09-30 05:07:04 +00:00
OpenStack Release Bot b32f026793 Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I1570feb65a279a49133fd70ee3bde6be8a3921ef
2020-09-30 05:02:29 +00:00
gecong1973 58ca4675ab Fix a bug for api
Change-Id: I6b79d1e283dd043bf9650e29eb848244fadeb1e1
2020-09-29 06:44:45 +00:00
Zuul 70959c7805 Merge "[goal] Migrate testing to ubuntu focal" 2020-09-29 06:43:29 +00:00
OpenStack Release Bot 6d66cefb44 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.

Change-Id: I8d4159761acd6468bb5b8c57c6e84497f115c9a4
Sem-Ver: feature
2020-09-28 16:25:12 +00:00
Ghanshyam Mann d5d279232b [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.

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

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

Change-Id: I482ac98bc56f0e3cfb8b767f47649da11ed1afab
Story: #2007865
Task: #40184
2020-09-22 18:17:32 +00:00
Luigi Toscano db0c4dd3c7 zuul: use the freezer-tempest-plugins jobs and cleanup
- use the jobs already defined inside freezer-tempest-plugins
  instead of redefining them locally, as they are the same;
- remove the other legacy jobs, as they are not used and
  the jobs from freezer-tempest-plugins could be directly used
  or adapted if needed.

Change-Id: Iacc4c218c29d44dabbf2bc933291790e7c9b7480
2020-08-11 14:31:00 +02:00
Luigi Toscano 80de329bd8 Fix a few mock imports still not from unittests
Change-Id: Idde9a450e9ac4ffe786f5233ef22eacd7df6b8eb
2020-08-11 14:29:09 +02:00
Zuul ddf9eaed0a Merge "Fix pygments style" 2020-07-21 07:30:41 +00:00
Zuul 847225fb2c Merge "Add Devstack installation guide in README.rst" 2020-07-08 07:43:01 +00:00
Caihui 4bb4ec0383 Add Devstack installation guide in README.rst
Add  DevStak installation  guide for the freezer-api project.

Change-Id: I3187b652da0cf9e0b6211d8317d5cf3e50a4aba3
2020-07-08 00:19:03 -07:00
caihui b66bfa0365 Overriding configured project name (freezer-api)
[openstackdocstheme] overriding configured project name (freezer-api) with
name extracted from the package (freezer-api); you can disable this
behavior with the 'openstackdocs_auto_name' option

Change-Id: Icbe9ceff6ad25dc353a3c574f32b26bc007c7294
2020-07-05 20:36:40 -07:00
caihui b744d68b64 Fix docs output error
writing output... [ 33%] cli/freezer-manager-status
[openstackdocstheme] the 'repository_name' config option has been deprecated
 and replaced by the 'openstackdocs_repo_name' option; support for the former
 will be dropped in a future release
[openstackdocstheme] the 'bug_project' config option has been deprecated and
replaced by the 'openstackdocs_bug_project' option; support for the former
 will be dropped in a future release
[openstackdocstheme] the 'bug_tag' config option has been deprecated and
replaced by the 'openstackdocs_bug_tag' option; support for the former will
be dropped in a future release
writing output... [ 66%] cli/index
writing output... [100%] index

Change-Id: I55903e4f914673aba5ac986b845c2a6504830c19
2020-07-05 20:16:46 -07:00
caihui 11223563cd Add py38 in tox.
In new release, the project  is used  python38 to replace python37,
so drop py37,add py38 in tox.

Change-Id: Ie08f9bbb98cd21ebace4cc32c6090f2aa249738d
2020-07-01 23:46:40 -07:00
caihui 11dfa6a003 Use setstr to execute unittest test
The stestr[1] is parallel Python test runner designed to execute unittest test suites using multiple processes.
Test cases can be executed faster.

[1]https://github.com/mtreinish/stestr

Change-Id: Ic0b210685535f94a70a175385afdd9f399f4d690
2020-07-01 21:00:10 -07:00
Caihui 6fabbd4a41 Add publish-openstack-docs-pti job in check/gate CI
Add publish-openstack-docs-pti job in check/gate CI.

Change-Id: I8bbad3d615a3af29ed05d31a2e1cb1d3b99ae460
2020-06-24 03:06:40 -07:00
Caihui 6db9afe608 add docs check in tox.ini
Change-Id: I454d94f78c0699fe753f9c2acc72e9c82a52d57e
2020-06-24 00:00:00 -07:00
Zuul d5cc067766 Merge "Stop to use the __future__ module." 2020-06-09 08:30:13 +00:00
Hervé Beraud 355c68fb94 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: I2728250b2646af93c65ac7f18dbf7600fe5a286c
2020-06-02 20:13:25 +02:00