125 Commits

Author SHA1 Message Date
ef853bdbe8 Update TOX_CONSTRAINTS_FILE for stable/zed
Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org so that anyone working on this branch
will switch to the correct upper-constraints list automatically when
the requirements repository branches.

Until the requirements repository has as stable/zed branch, tests will
continue to use the upper-constraints list on master.

Change-Id: I0da880306ba1655010898dcf640b8fe0c687e5ac
zed-eom
2022-09-06 12:40:40 +00:00
9be68f315a Update .gitreview for stable/zed
Change-Id: Iffcff8016b10af3f458fa266981fb50dab25a0dc
2022-09-06 12:40:38 +00:00
zhangbailin
501d9f3e2c Switch openstack-python3-zed-jobs
In Zed, we decrepated the py36/py37 job, and this patch need to change
with zed job[1].

[1]https://opendev.org/openstack/openstack-zuul-jobs/src/branch/master/zuul.d/project-templates.yaml#L504

Change-Id: I7612d34b5d25d505f85dcb09b91ad1d3c3bacd44
2.0.0
2022-06-09 18:17:15 +08:00
Zuul
38cff4e184 Merge "Update python testing as per zed cycle teting runtime" 2022-06-09 07:13:35 +00:00
zhangbailin
749a47424d Bump oslo.log>=5.0.0 version
In zed cycle, OpenStack projects and oslo lib
has dropped the py3.6 and py3.7 support

- https://governance.openstack.org/tc/reference/runtimes/zed.html

With oslo not supporting the py3.6 and py3.7, we disscussed in cyborg
team, and we will remove the py3.6 and py3.7 support too, and we should
bump oslo.log>=5.0.0 to support.

Change-Id: Ie297062d3e274ff7d34af11bdc78cc7db67eb26d
2022-06-09 06:34:13 +00:00
zhangbailin
8f04a31e18 Remove py36 zuul task
In Zed, we have dropped the python 3.6/3.7[1] testing
and its support. Removing the py36 centos8 job as well as
updating the python classifier also to reflect the same.

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

Change-Id: Ie240decdaa1fac19a3b1a56f29741303329e2e28
2022-06-08 09:01:41 +08:00
songwenping
33c346753d Update python testing as per zed cycle teting runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Removing the py36 centos8 job as well as
updating the python classifier also to reflect the same.

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

Change-Id: I58124e928cb19b3cc7a95495a11f8e89c1826f68
2022-04-28 10:04:13 +08:00
3306696b68 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: I46b03cd55cecc03d09630f86e0bd020fb63b8460
2022-03-03 10:51:02 +00:00
Zuul
37026cc889 Merge "Updating python testing classifier as per Yoga testing runtime" 1.7.0 2021-12-25 09:53:21 +00:00
Zuul
a4bbbdcbb1 Merge "bump openstacksdk >=0.46.0" 2021-12-25 09:35:24 +00:00
zhangbailin
7d563bb373 bump openstacksdk >=0.46.0
Closes-Bug: #1955459

Change-Id: I8ff89a5691bdf2ac037e0a1e3149dfbba3afa0b9
2021-12-21 14:12:53 +08:00
Zuul
88a5bed8d8 Merge "Add support project-id for arq patch releasenote" 2021-12-21 05:41:09 +00:00
Zuul
0dc2bf1c77 Merge "Add support for show device profile by name releasenote" 2021-12-21 03:41:21 +00:00
songwenping
9c26ba7e4b Add support project-id for arq patch releasenote
Change-Id: Ie0c0a047ac2dd7341e1c66b6feb178e39b9ab433
2021-12-20 09:47:20 +00:00
songwenping
63d8d1f198 Add support for show device profile by name releasenote
Change-Id: I85d78ef9ed1a301fca6cc1821a4e0f0f5529214a
2021-12-20 09:29:10 +00:00
songwenping
2680c35ba5 Refactor the columns generate for device profile list
Change-Id: I8f0fc90849287efa915cffdcbb2f78f140560207
2021-12-20 06:42:45 +00:00
Ghanshyam Mann
9d00b7d2c9 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: I1c5735e598bbe6398186381f1584859ef7cc1d4d
2021-12-14 02:38:00 +00:00
ericxiett
e1cf238c5d Get device profile by name in cyborgclient
This patch adds the support that getting the device profile by its
name.

Implements: blueprint show-device-profile-with-name
Change-Id: I3587dce1555bf7a337661e2662165c171ddea57a
2021-12-01 07:48:14 +00:00
Zuul
0874496cdd Merge "Show description attr when list and get device profile" 1.6.0 2021-11-03 10:42:15 +00:00
songwenping
aaaa674625 Show description attr when list and get device profile
Show description attr and modify UT.

Change-Id: I88e481866217b3672f42aa390d3606810c4db513
2021-09-15 02:24:31 +00:00
790f074e07 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

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

Change-Id: I1e20369a42ae7e0bce4a050c77495b7d3af08112
2021-09-13 09:24:19 +00:00
462905dd1a Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

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

Sem-Ver: feature
Change-Id: If207978133f21d72e4c39815e882dd6c5d4d5e13
2021-09-13 09:24:17 +00:00
songwenping
2a8dc2449a Add description args for device profile create
The description param is optional and add unit test for device profile
create.

Related-Bug: #1940810
Change-Id: I93d99d0edcfe8c417e3cd5c4aa3990f31322c6cb
xena-em 1.5.0
2021-09-02 10:01:21 +08:00
Zuul
d051769d9f Merge "Add test case for show arq" 1.4.0 2021-08-27 10:25:25 +00:00
songwenping
28f96220ac Add test case for show arq
Change-Id: I63527d222a6be6794334346f2dc4bbac6cc9b5c3
2021-08-26 11:00:36 +00:00
Zuul
5e14d2f027 Merge "Fix the bug of making device_profile_group_id parameter is optional" 2021-08-26 10:55:54 +00:00
songwenping
686ebac114 Fix the bug of making device_profile_group_id parameter is optional
Closes-Bug: #1940509
Change-Id: I382d9691301c74c6426668de39c4f05f4b2619fd
2021-08-24 10:14:35 +08:00
Zuul
d97b815909 Merge "Add checks for showing dp with name" 2021-08-23 10:37:25 +00:00
Zuul
08618e636b Merge "Replace deprecated inspect.getargspec" 2021-08-20 06:04:11 +00:00
wu.shiming
ec2a079753 Replace deprecated inspect.getargspec
inspect.getargspec was deprecated since Python 3.0 and
inspect.getfullargspec is its replacement with correct handling of
function annotations and keyword-only parameters[1].

[1] https://docs.python.org/3/library/inspect.html#inspect.getargspec

Change-Id: I2d3591e41ae35479b613487a81c43548c7cd3f9c
2021-08-13 16:51:31 +08:00
ericxiett
9d5bdc5f17 Hide the traceback when deleting a non-existent ARQ
This patch catches the 'ResourceNotFound' exception and adds
 some unittests.

Closes-Bug: #1937251
Change-Id: I1e07528e9b551ff192ee707d1988a8c07bf349a0
2021-07-26 04:55:08 +00:00
ericxiett
83c099d014 Add checks for showing dp with name
This patch adds checking input arg. If not uuid, raise CommandError with
 output like 'Only UUID of device_profile allowed'.

Closes-Bug: #1936877
Change-Id: I24999d0f39cbd027ef5c797ed2e9bf0bbfe8a793
2021-07-26 04:48:13 +00:00
Zuul
a10bf6348c Merge "[ussuri][goal] Update contributor documentation" 2021-07-08 06:34:56 +00:00
Ghanshyam Mann
72272fe978 [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: #38519
Change-Id: Ia738b3f37d1b0a477838c37a91afca14108f85e3
2021-05-31 20:29:47 +00:00
XinxinShen
b5f9486982 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: I83d80999568b7236044ac257b19c984fd5e788bb
2021-04-28 11:29:52 +08:00
Zuul
d8984778cb Merge "Revert "remove py37"" 2021-04-16 07:10:41 +00:00
Zuul
7f0935e01b Merge "Add Python3 xena unit tests" 2021-03-29 02:30:28 +00:00
Zuul
3fbc8d68eb Merge "Update master for stable/wallaby" 2021-03-24 10:14:11 +00:00
Zuul
b4faf588bf Merge "update error url" 2021-03-22 03:30:43 +00:00
Zuul
f4c9d2792f Merge "Add doc/requirements" 2021-03-22 02:29:27 +00:00
1d6d8e2f26 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

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

Change-Id: Ib2bb3b6f27f29ef7268e4411b669c9a094e3cd48
2021-03-19 16:18:23 +00:00
1c0a3b4b34 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

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

Sem-Ver: feature
Change-Id: Idf92f17f515f8a7da4b3edebf0fbb710a843dae2
2021-03-19 16:18:19 +00:00
Xinran Wang
2a674e6576 bug fix: tox wrongly install client from repo path.
This will cause version conflict:

Obtaining file:///opt/stack/python-cyborgclient
ERROR: Could not satisfy constraints for 'python-cyborgclient': installation from path or url cannot be constrained to a version

or

ERROR: Could not find a version that satisfies the requirement python-cyborgclient 1.3.1.dev1
ERROR: No matching distribution found for python-cyborgclient 1.3.1.dev1

Change-Id: I521f880606fa1aab25cd85875153275c5dd2e125
2021-03-19 07:12:40 +00:00
Hervé Beraud
6c93f13c54 Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removing specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: Ie4cc84c7159f4b59be52439ef6e4c5e60474866d
2021-03-17 03:02:00 +00:00
lvxianguo
8a9a48a329 update error url
Change-Id: I51e852a81e0337842f14296dda7613d85209c936
2021-03-12 04:16:19 +00:00
wu.shiming
18610ceaba Revert "remove py37"
Reason for revert: Python 3.7 *is* supported because it falls
in the range of supported Python versions (3.6-3.8).

Change-Id: I7365634864f09eb04a68d901ca4ca962fa4d7bb2
2021-01-15 17:20:53 +08:00
Zuul
db8479f5c2 Merge "remove unicode from code" wallaby-em 1.3.0 2021-01-03 08:31:11 +00:00
yangyawei
9a924dafd4 remove unicode from code
Change-Id: I4c7a02bfff3cfd314c71f2a22a1684897fda152c
2021-01-03 15:41:25 +08:00
XinxinShen
8e54fad94f remove py37
Remove python3.7 from setup.cfg, since Wallaby's python
supported runtimes are python 3.6 and python 3.8[1]:

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

Change-Id: Iaa89b4d36e9c391a2bd294e9b5e39d817d843559
2021-01-03 14:36:29 +08:00
Zuul
02d1bd0242 Merge "Remove six lib" 2021-01-03 04:43:27 +00:00